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.
impl LrScheduler for LearningRate
Available on crate feature
std only.Source§fn step(&mut self) -> LearningRate
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
fn to_record(&self) -> LrSchedulerRecord
Get the current state of the scheduler as a record.
Source§fn load_record(&mut self, _record: LrSchedulerRecord)
fn load_record(&mut self, _record: LrSchedulerRecord)
Load the state of the scheduler from a record.