Add explanation for the assumption of what counts as signal in BRSA, correct default optimizer of BRSA#337
Merged
mihaic merged 47 commits intobrainiak:masterfrom Feb 21, 2018
lcnature:add_explanation
Merged
Add explanation for the assumption of what counts as signal in BRSA, correct default optimizer of BRSA#337mihaic merged 47 commits intobrainiak:masterfrom lcnature:add_explanation
mihaic merged 47 commits intobrainiak:masterfrom
lcnature:add_explanation
Conversation
added 13 commits
July 13, 2017 23:05
…rom traditional RSA on what counts as signal. Also corrected the mismatch between documentation and actual implementation of the default optimizer. L-BFGS-B appears to require less memory and fits faster in each iteration than BFGS. But it is possible that more iterations are needed because Hessian is approximated, so the default max number of iteration is increased
mihaic
requested changes
Feb 16, 2018
brainiak/reprsimil/brsa.py
Outdated
|
|
||
| Parameters | ||
| ---------- | ||
| n_iter : int. Default: 50 |
brainiak/reprsimil/brsa.py
Outdated
|
|
||
| Parameters | ||
| ---------- | ||
| n_iter : int. Default: 50 |
Member
There was a problem hiding this comment.
This a good example for why we should not list defaults in docstrings: it creates the need to change values in an additional place, which is frequently forgotten, such as in this PR.
My recommendation: do not list the default in the docstring; it is already visible in the HTML docs in the function definition.
tests/reprsimil/test_brsa.py
Outdated
| n_nureg = 1 | ||
| brsa = BRSA(rank=rank, n_nureg=n_nureg, tol=2e-3, | ||
| n_iter=4, init_iter=4, auto_nuisance=True) | ||
| n_iter=20, init_iter=4, auto_nuisance=True) |
Member
There was a problem hiding this comment.
Is this the minimum number that works with L-BFGS-B? Just trying to minimize required time for tests.
Member
Contributor
Author
|
@mihaic Yes! I will resubmit today :) |
…educed number of iteration in test code and increased that in brsa module.
mihaic
approved these changes
Feb 21, 2018
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
add notes in the documentation for the different assumption in BRSA from traditional RSA on what counts as signal. Also corrected the mismatch between documentation and actual implementation of the default optimizer. L-BFGS-B appears to require less memory and fits faster in each iteration than BFGS. But it is possible that more iterations are needed because Hessian is approximated, so the default max number of iteration is increased