|
Mila 0.13.48
Deep Neural Network Library
|
Abstract base for learning-rate schedulers. More...

Public Member Functions | |
| virtual | ~LearningRateScheduler ()=default |
| virtual double | getLearningRate (std::size_t step) const =0 |
| Get the learning rate for the provided (zero-based) step. | |
| virtual std::string | toString () const =0 |
| Human-readable description of the scheduler. | |
Abstract base for learning-rate schedulers.
Implementations compute a scalar learning rate for a given step index. The step argument is a zero-based iteration/step count. Implementations must be thread-safe for concurrent const calls.
|
virtualdefault |
|
pure virtual |
Get the learning rate for the provided (zero-based) step.
| step | Zero-based step index. |
Implemented in Mila::Dnn::ConstantLRScheduler, Mila::Dnn::CosineLRScheduler, and Mila::Dnn::LinearLRScheduler.
|
pure virtual |
Human-readable description of the scheduler.
Implemented in Mila::Dnn::ConstantLRScheduler, Mila::Dnn::CosineLRScheduler, and Mila::Dnn::LinearLRScheduler.