-
Notifications
You must be signed in to change notification settings - Fork 3
master: Fixed hyperparameter collisions #806
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
7baea73
fixed issue where hyperparameters are colliding
MatteoWohlrapp 07086a2
changed id to name for model identification
MatteoWohlrapp 871374a
Solved gamma_reg naming collision by introducing functionality to pas…
MatteoWohlrapp b680380
Merge branch 'master' into gamma_reg_collision
MatteoWohlrapp 4be4a02
fixed codacy
MatteoWohlrapp 394d23a
fixed codacy
MatteoWohlrapp f720bf7
Merge branch 'master' into gamma_reg_collision
smilesun cc650ad
Removed diva from tests and yaml for gamma hyperparam
MatteoWohlrapp b64fe6b
Merge branch 'master' into gamma_reg_collision
smilesun 8fef65d
Merge branch 'master' into gamma_reg_collision
smilesun febe876
Increased test coverage
MatteoWohlrapp fd36056
fixed codacity
MatteoWohlrapp 6520834
fixed codacity
MatteoWohlrapp c5e3e6a
fixed codacity
MatteoWohlrapp 884682b
Added quotes around variables
MatteoWohlrapp 57ceef7
Merge branch 'master' into gamma_reg_collision
smilesun 91ce3c5
Merge branch 'master' into gamma_reg_collision
smilesun aac6510
Merge branch 'master' into gamma_reg_collision
smilesun 0a1b0b9
Merge branch 'master' into gamma_reg_collision
smilesun be59cf2
Merge branch 'master' into gamma_reg_collision
smilesun 32360dd
Merge branch 'master' into gamma_reg_collision
smilesun 5d2fb82
Fixed codacity
570e8a8
fixed codacity
1198eeb
Corrected doc for gamma_reg, added docstring to call method in argpar…
bc060ba
Merge branch 'master' into gamma_reg_collision
smilesun 97d9320
Update arg_parser.py, update documentation , remove diva gamma_reg
smilesun 05d228b
Update doc_usage_cmd.md, remove diva gamma_reg in doc
smilesun 5c0f6b1
Update doc_usage_cmd.md
smilesun 5ff5fd3
merge commit
MatteoWohlrapp 31ce1ec
fixed argparser syntax, renamed argument
MatteoWohlrapp 6392ac5
Update vlcs_diva_mldg_dial.yaml
smilesun 0d62919
Update test_hyperparameter_retrieval.py, comments in unit test
smilesun bdf84c2
style
smilesun File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| """ | ||
| retrieval for hyperparameters | ||
| """ | ||
|
|
||
| def get_gamma_reg(args, component_name): | ||
| """ | ||
| Retrieves either a shared gamma regularization, or individual ones for each specified object | ||
| """ | ||
| gamma_reg = args.gamma_reg | ||
| if isinstance(gamma_reg, dict): | ||
| if component_name in gamma_reg: | ||
| return gamma_reg[component_name] | ||
| if 'default' in gamma_reg: | ||
| return gamma_reg['default'] | ||
| raise ValueError("""If a gamma_reg dict is specified, | ||
| but no value set for every model and trainer, | ||
| a default value must be specified.""") | ||
| return gamma_reg # Return the single value if it's not a dictionary |
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.