pub trait LrSchedulerV2: Send {
// Required methods
fn step(&mut self) -> f64;
fn current_lr(&self) -> f64;
fn reset(&mut self);
fn steps_taken(&self) -> usize;
// Provided method
fn completed_cycle(&self) -> bool { ... }
}Expand description
Trait for learning rate schedulers.
Required Methods§
Sourcefn current_lr(&self) -> f64
fn current_lr(&self) -> f64
Return the current learning rate without advancing.
Sourcefn steps_taken(&self) -> usize
fn steps_taken(&self) -> usize
Total number of steps taken.
Provided Methods§
Sourcefn completed_cycle(&self) -> bool
fn completed_cycle(&self) -> bool
Whether the scheduler has completed a cycle (if applicable).