Skip to content

Commit

Permalink
Merge pull request #7 from cvnlab/jacob-port
Browse files Browse the repository at this point in the history
minor ports to python: example01 description and changing wantshrinkage default to True
  • Loading branch information
jacob-prince authored Apr 28, 2024
2 parents e8d5bd1 + 9e13a7b commit ecb1cfd
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 35 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ target/
# Jupyter Notebook
.ipynb_checkpoints

# Matlab data files
*.mat

# IPython
profile_default/
ipython_config.py
Expand Down
76 changes: 43 additions & 33 deletions examples/example1.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions gsn/perform_gsn.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def perform_gsn(data, opt=None):
opt (dict, optional): A dictionary with the following optional fields:
wantverbose (bool, optional): Whether to print status statements. Default is True.
wantshrinkage (bool, optional): Whether to use shrinkage in the estimation of covariance. Default is False.
wantshrinkage (bool, optional): Whether to use shrinkage in the estimation of covariance. Default is True.
Returns:
results: A dictionary with the results containing:
Expand Down Expand Up @@ -47,7 +47,7 @@ def perform_gsn(data, opt=None):
if 'wantverbose' not in opt or opt['wantverbose'] is None:
opt['wantverbose'] = 1
if 'wantshrinkage' not in opt or opt['wantshrinkage'] is None:
opt['wantshrinkage'] = 0
opt['wantshrinkage'] = 1

# Prepare opt for rsa_noise_ceiling.py
opt['mode'] = 1
Expand Down

0 comments on commit ecb1cfd

Please sign in to comment.