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

fix: decay defaults for optimizers #492

Closed
wants to merge 4 commits into from
Closed

fix: decay defaults for optimizers #492

wants to merge 4 commits into from

Conversation

polvalente
Copy link
Contributor

Fixes defaults for :decay option in some optimizers.
RMSProp wasn't using the option, but I'm not sure if momentum is being used correctly there

@polvalente polvalente self-assigned this Apr 26, 2023
@@ -771,7 +771,7 @@ defmodule Axon.Updates do
Adds random Gaussian noise to the input.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The trace function in this file uses a decay-like algorithm with :decay defaulting to 0.9. Should we use this default throughout?

@polvalente
Copy link
Contributor Author

@seanmor5 Optax actually uses adamw decay ~ 0 by default, instead of ~ 1. It's best if you validate these defaults before reviewing the PR. Maybe the tests are checking agains unusual values.

https://optax.readthedocs.io/en/latest/api.html#optax.adamw

@seanmor5
Copy link
Contributor

@polvalente if you add a test without the defaults do they pass?

@polvalente polvalente closed this Jun 8, 2023
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.

None yet

2 participants