-
Notifications
You must be signed in to change notification settings - Fork 222
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
Fixing extended trace failure for Adam and AdaMax and generalising alpha
parameter to accept callable object (scheduler)
#1115
base: master
Are you sure you want to change the base?
Conversation
I am fine with these changes and thank you for fixing the original error. I do have to ask you to update the docstrings of the types to reflect the new feature and also add tests for the bug that was fixed as well as the new feature. Thanks! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1115 +/- ##
==========================================
+ Coverage 85.26% 85.75% +0.49%
==========================================
Files 45 45
Lines 3502 3518 +16
==========================================
+ Hits 2986 3017 +31
+ Misses 516 501 -15 ☔ View full report in Codecov by Sentry. |
…nded_trace=true case
Thank you for checking the PR and for the comments. I have added:
|
Thank you |
I am glad, would be happy to know if you recommend any corrections or changes to make it merge ready. Is it possible to run the CI workflow tests to check if the tests work fine? (locally they ran successfully) |
Running now :) |
Seem to fail, not sure why it failed in a newton test. |
Thanks a lot for running the CI. It unclear to me as well as to why Newton tests failed, and that too on MacOS. I ll investigate and get back. |
Not sure what happened to be honest.. This time it worked |
That's great! Thank you for re-running. Where can I check the earlier CI failure? (It somehow disappeared after new the CI runs) |
Ok I found the earlier CI runs to trace the failure: CI says I have a feeling some related issues: |
Thank you for looking into it. We'll have to see if it reappears but it is not relevant to the resolution of this pr. |
This is a small PR for Adam and AdaMax methods (thanks a lot for adding them to
Optim.jl
) toextended_trace=true
) by addingalpha
to the respectiveState
structs, so thatcommon_trace!
works out of the box.alpha
(and effectedupdate_state!
) for bothAdam
andAdaMax
such that they can accept a callable object - a function or in particular a scheduler. This helps in using the functionality from ParameterSchedulers.jl seamlessly, without adding it as a dependency.