ConstantSchedule#
- class empulse.optimizers.ConstantSchedule(value)[source]#
Constant schedule – always returns value.
- Parameters:
- valuefloat
The constant value to return at every epoch.
Examples
from empulse.optimizers import ConstantSchedule schedule = ConstantSchedule(0.01) assert schedule(0) == schedule(999) == 0.01