forked from pytorch/ignite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
State parameter scheduler (pytorch#2090)
* pytorch#1913 Add any parameter scheduling to enlarge the actual scope of ParamScheduler * code style fixes * update doc * fix docstring warnings * Rename Any* to State* classes Rm previously introduced OptimizerParam class to ensure BC * rm useless import * fix docstring rename test file * Introduce BaseParamScheduler class for State* Optimizer* parameters schedulers. Add examples. * Naming changes. * fix flake8 errors * fix docstring / parametrize tests * naming changes * parametrize tests * fix flake8 * try to remove lines in pytest configs * Update ignite/handlers/state_param_scheduler.py Co-authored-by: vfdev <[email protected]> * LinearState to PwLinearState ( implemented from PiecewiseLinear ParamScheduler class) * Update ignite/handlers/state_param_scheduler.py Co-authored-by: vfdev <[email protected]> * Update ignite/handlers/state_param_scheduler.py Co-authored-by: vfdev <[email protected]> * Re-naming : PwLinearStateScheduler to PiecewiseLinearStateScheduler * add test for state_dict and docstring examples * Update ignite/handlers/state_param_scheduler.py Co-authored-by: Sylvain Desroziers <[email protected]> * improve docstring / change lambda_fn to lambda_obj for LambdaStateScheduler / add tests * rm duplicated test * fix code fmt * add test LambdaState object must be callable * add test on asserts * Apply suggestions from code review * autopep8 fix * Apply suggestions from code review Co-authored-by: vfdev <[email protected]> Co-authored-by: Sylvain Desroziers <[email protected]> Co-authored-by: vfdev-5 <[email protected]>
- Loading branch information
1 parent
89b530e
commit 81e13e1
Showing
6 changed files
with
963 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.