Skip to content

Bug fixes to parse learning rate from configs #169

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 1 commit into from
Jun 4, 2021

Conversation

rfriedman22
Copy link
Contributor

Reference Issues/PRs

Fixes #167

What does this implement/fix? Explain your changes.

Fix parsing of configs file to check for None instead of "None". Also check for the edge case when learning rate is not specified at all, in which case, a ValueError is thrown.

What testing did you do to verify the changes in this PR?

Read in config_examples/train.yml and then call selene_sdk.utils.parse_configs_and_run as-is (i.e. no learning rate), with a learning rate added to the function arguments, or a learning rate added to the configs.

@kathyxchen
Copy link
Collaborator

Thanks @rfriedman22 for finding and fixing this bug! :) Really appreciate your contribution. LGTM

@kathyxchen kathyxchen merged commit df5e706 into FunctionLab:master Jun 4, 2021
@rfriedman22
Copy link
Contributor Author

Glad I can help @kathyxchen!

@rfriedman22 rfriedman22 deleted the lr-parse-bugfixes branch September 9, 2021 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bugs checking for learning rate during config parsing
2 participants