Skip to content
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

methods default lr unless specified #342

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kamil2oster
Copy link
Contributor

The argument for the init method is lr=1 which is okay for LBFGS. However, Adam won't function well with such high lr. lr=1 is the default learning rate in LBFGS itself (while Adam's lr = 0.001).
Instead, the argument in init is lr=None and extra lines in the code to change the lr if it's actually provided. It doesn't change the flow but ensures that Adam will work correctly if the user forgets to change the lr.

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.

1 participant