noether.core.schedules.constant

Classes

ConstantScheduleConfig

ConstantSchedule

Constant value schedule that returns the same value for all steps.

Module Contents

class noether.core.schedules.constant.ConstantScheduleConfig(/, **data)

Bases: noether.core.schedules.schemas.ScheduleBaseConfig

Parameters:

data (Any)

kind: Literal['noether.core.schedules.ConstantSchedule'] = 'noether.core.schedules.ConstantSchedule'

The fully qualified class name of the scheduler.

value: float

The constant value that will be returned for all steps. Value should be equal to the learning rate defined in the optimizer.

class noether.core.schedules.constant.ConstantSchedule(config)

Bases: noether.core.schedules.base.ScheduleBase

Constant value schedule that returns the same value for all steps.

Example

schedule_config:
    kind: noether.core.schedules.ConstantSchedule
    value: ${model.optim.lr}
Parameters:

config (ConstantScheduleConfig) – Configuration of the constant schedule. See ConstantScheduleConfig for details.

value