Skip to main content

LearningRate

Type Alias LearningRate 

Source
pub type LearningRate = f64;
Expand description

Type alias for the learning rate.

LearningRate also implements learning rate scheduler so it can be used for constant learning rate.

Trait Implementations§

Source§

impl LrScheduler for LearningRate

Available on crate feature std only.
Source§

fn step(&mut self) -> LearningRate

Perform the scheduler step, potentially updating its state, and returning the effective learning rate.
Source§

fn to_record(&self) -> LrSchedulerRecord

Get the current state of the scheduler as a record.
Source§

fn load_record(&mut self, _record: LrSchedulerRecord)

Load the state of the scheduler from a record.