noether.core.schedules.base¶
Classes¶
Base class for schedules. |
|
Base class for schedules that progress monotonically in value over time. |
|
Base class for schedules that monotonically decrease in value over time. |
|
Base class for schedules that monotonically increase in value over time. |
|
A scheduler that switches between multiple schedules based on the percentage of steps completed. |
|
A scheduler that switches between multiple schedules based on the step number. |
Module Contents¶
- class noether.core.schedules.base.ScheduleBase(overhang_percent=None, overhang_steps=None)¶
Base class for schedules.
Initialize the scheduler.
- Parameters:
- overhang_percent = None¶
- overhang_steps = None¶
- get_value(step, total_steps)¶
Get the value of the schedule at a given step.
This function includes the correction for overhangs in percent or steps and then calls the _get_value method. Therefore, it should not be overwritten by subclasses. Instead, the _get_value method should be implemented.
- class noether.core.schedules.base.ProgressSchedule(config, start_value, delta)¶
Bases:
ScheduleBaseBase class for schedules that progress monotonically in value over time.
Initialize the scheduler.
- Parameters:
- start_value¶
- delta¶
- exclude_first¶
- exclude_last¶
- class noether.core.schedules.base.DecreasingProgressSchedule(config)¶
Bases:
ProgressScheduleBase class for schedules that monotonically decrease in value over time.
Initialize the scheduler.
- Parameters:
config (noether.core.schemas.schedules.DecreasingProgressScheduleConfig)
- class noether.core.schedules.base.IncreasingProgressSchedule(config)¶
Bases:
ProgressScheduleBase class for schedules that monotonically increase in value over time.
Initialize the scheduler.
- Parameters:
config (noether.core.schemas.schedules.IncreasingProgressScheduleConfig)
- class noether.core.schedules.base.SequentialPercentScheduleConfig¶
- schedule: ScheduleBase¶
- class noether.core.schedules.base.SequentialPercentSchedule(schedule_configs)¶
Bases:
ScheduleBaseA scheduler that switches between multiple schedules based on the percentage of steps completed.
Initialize the scheduler.
- Parameters:
schedule_configs (collections.abc.Sequence[SequentialPercentScheduleConfig]) – A list of schedule configurations.
**kwargs – Additional arguments to pass to the parent class.
- schedule_configs¶
- get_sequential_schedule_config(step, total_steps)¶
- Parameters:
- Return type:
- class noether.core.schedules.base.SequentialStepScheduleConfig¶
- schedule: ScheduleBase¶
- class noether.core.schedules.base.SequentialStepSchedule(schedule_configs, **kwargs)¶
Bases:
ScheduleBaseA scheduler that switches between multiple schedules based on the step number.
Initialize the scheduler.
- Parameters:
schedule_configs (collections.abc.Sequence[SequentialStepScheduleConfig]) – A list of schedule configurations.
**kwargs – Additional arguments to pass to the parent class.
- schedule_configs¶
- get_sequential_schedule_config(step)¶
- Parameters:
step (int)
- Return type:
SequentialStepScheduleConfig | None