noether.core.schedules.polynomial¶
Classes¶
A scheduler that decreases polynomially from the maximum to minimum value over the total number of steps. |
|
A scheduler that increases polynomially from the minimum to maximum value over the total number of steps. |
Module Contents¶
- class noether.core.schedules.polynomial.PolynomialDecreasingScheduleConfig(/, **data)¶
Bases:
noether.core.schedules.schemas.DecreasingProgressScheduleConfig- Parameters:
data (Any)
- kind: Literal['noether.core.schedules.PolynomialDecreasingSchedule'] = 'noether.core.schedules.PolynomialDecreasingSchedule'¶
The fully qualified class name of the scheduler.
- class noether.core.schedules.polynomial.PolynomialDecreasingSchedule(config)¶
Bases:
noether.core.schedules.base.DecreasingProgressScheduleA scheduler that decreases polynomially from the maximum to minimum value over the total number of steps.
- Parameters:
config (PolynomialDecreasingScheduleConfig) – Configuration for the polynomial decreasing schedule. See
PolynomialDecreasingScheduleConfigfor details.
Example
schedule_config: kind: noether.core.schedules.PolynomialDecreasingSchedule power: 2.0 start_value: ${model.optim.lr} # reference to the lr defined above end_value: 1e-6
- power¶
- class noether.core.schedules.polynomial.PolynomialIncreasingScheduleConfig(/, **data)¶
Bases:
noether.core.schedules.schemas.IncreasingProgressScheduleConfig- Parameters:
data (Any)
- kind: Literal['noether.core.schedules.PolynomialIncreasingSchedule'] = 'noether.core.schedules.PolynomialIncreasingSchedule'¶
The fully qualified class name of the scheduler.
- class noether.core.schedules.polynomial.PolynomialIncreasingSchedule(config)¶
Bases:
noether.core.schedules.base.IncreasingProgressScheduleA scheduler that increases polynomially from the minimum to maximum value over the total number of steps.
- Parameters:
config (PolynomialIncreasingScheduleConfig) – Configuration for the polynomial increasing schedule. See
PolynomialIncreasingScheduleConfigfor details.
Example
schedule_config: kind: noether.core.schedules.PolynomialIncreasingSchedule power: 2.0 start_value: 1e-6 max_value: ${model.optim.lr} # reference to the lr defined above
- power¶