-
-
Notifications
You must be signed in to change notification settings - Fork 615
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
State parameter scheduler #2090
Conversation
Rm previously introduced OptimizerParam class to ensure BC
rename test file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @fco-dv , I haven't yet go into details but would like to propose few global naming changes
Co-authored-by: Sylvain Desroziers <sylvain.desroziers@gmail.com>
…eduler / add tests
…eduler # Conflicts: # ignite/handlers/param_scheduler.py
keys_to_remove = ["save_history"] | ||
for key in keys_to_remove: | ||
if key in scheduler_kwargs: | ||
del scheduler_kwargs[key] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fco-dv Could we test this part ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, but what do you have in mind precisely :) ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A test that executes this function and thus cover this line 99.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @fco-dv , finally we can land it
* #2090 make work EMAHandler with StateParamScheduler * #2295 update docstring for parameter `create_new` * #2295 fixing attach method logic and update associated tests * #2295 fix unused import / remove useless test * #2295 fix tests * #2295 rm else statement * Update ignite/handlers/state_param_scheduler.py Co-authored-by: vfdev <vfdev.5@gmail.com> * Update ignite/handlers/state_param_scheduler.py Co-authored-by: vfdev <vfdev.5@gmail.com> * #2295 update tests assert messages * #2295 update tests, add working example with EMAHandler Co-authored-by: vfdev <vfdev.5@gmail.com>
* pytorch#2090 make work EMAHandler with StateParamScheduler * pytorch#2295 update docstring for parameter `create_new` * pytorch#2295 fixing attach method logic and update associated tests * pytorch#2295 fix unused import / remove useless test * pytorch#2295 fix tests * pytorch#2295 rm else statement * Update ignite/handlers/state_param_scheduler.py Co-authored-by: vfdev <vfdev.5@gmail.com> * Update ignite/handlers/state_param_scheduler.py Co-authored-by: vfdev <vfdev.5@gmail.com> * pytorch#2295 update tests assert messages * pytorch#2295 update tests, add working example with EMAHandler Co-authored-by: vfdev <vfdev.5@gmail.com>
* pytorch#2090 make work EMAHandler with StateParamScheduler * pytorch#2295 update docstring for parameter `create_new` * pytorch#2295 fixing attach method logic and update associated tests * pytorch#2295 fix unused import / remove useless test * pytorch#2295 fix tests * pytorch#2295 rm else statement * Update ignite/handlers/state_param_scheduler.py Co-authored-by: vfdev <vfdev.5@gmail.com> * Update ignite/handlers/state_param_scheduler.py Co-authored-by: vfdev <vfdev.5@gmail.com> * pytorch#2295 update tests assert messages * pytorch#2295 update tests, add working example with EMAHandler Co-authored-by: vfdev <vfdev.5@gmail.com>
Fixes #1913
Description:
Enlarge the scope of
ParamScheduler
like it is done in MONAI to schedule any hyperparameter while ensuring backward compatibility.Check list: