noether.core.schedules.linear¶
Classes¶
A scheduler that decreases linearly from the maximum to minimum value over the total number of steps. |
|
A scheduler that increases linearly from the minimum to maximum value over the total number of steps. |
Module Contents¶
- class noether.core.schedules.linear.LinearDecreasingSchedule(config)¶
Bases:
noether.core.schedules.base.DecreasingProgressScheduleA scheduler that decreases linearly from the maximum to minimum value over the total number of steps.
Example
schedule_config: kind: noether.core.schedules.LinearDecreasingSchedule max_value: ${model.optim.lr} end_value: 0.0
Initialize the scheduler.
- Parameters:
config (noether.core.schemas.schedules.DecreasingProgressScheduleConfig)
- class noether.core.schedules.linear.LinearIncreasingSchedule(config)¶
Bases:
noether.core.schedules.base.IncreasingProgressScheduleA scheduler that increases linearly from the minimum to maximum value over the total number of steps.
Example
schedule_config: kind: noether.core.schedules.LinearIncreasingSchedule max_value: ${model.optim.lr} start_value: 0.0
Initialize the scheduler.
- Parameters:
config (noether.core.schemas.schedules.IncreasingProgressScheduleConfig)