ksuit.schedules.linear.increasing

Classes

LinearIncreasingSchedule

A scheduler that increases linearly from the minimum to maximum value over the total number of steps.

Module Contents

class ksuit.schedules.linear.increasing.LinearIncreasingSchedule(config)

Bases: ksuit.schedules.base.IncreasingProgressSchedule

A scheduler that increases linearly from the minimum to maximum value over the total number of steps.

Example

>>> schedule_config:
>>>   kind: ksuit.schedules.LinearIncreasingSchedule
>>>   max_value: ${model.optim.lr}
>>>   start_value: 0.0

Initialize the scheduler.

Parameters:
  • start_value – The initial and thus minimum value of the scheduler.

  • max_value – The final and thus maximum value of the scheduler.

  • config (ksuit.schemas.scheduler.IncreasingProgressScheduleConfig)