pub struct MultiStepLrScheduler {
pub initial_lr: f64,
pub milestones: Vec<usize>,
pub gamma: f64,
/* private fields */
}Expand description
Multi-step learning rate scheduler.
Decays the learning rate by gamma at specified milestones (epochs). This is useful when you know specific points where you want to reduce LR.
Fields§
§initial_lr: f64Initial learning rate.
milestones: Vec<usize>Milestones (epochs) at which to decay LR.
gamma: f64Multiplicative factor of learning rate decay.
Implementations§
Trait Implementations§
Source§impl Clone for MultiStepLrScheduler
impl Clone for MultiStepLrScheduler
Source§fn clone(&self) -> MultiStepLrScheduler
fn clone(&self) -> MultiStepLrScheduler
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MultiStepLrScheduler
impl Debug for MultiStepLrScheduler
Source§impl LrScheduler for MultiStepLrScheduler
impl LrScheduler for MultiStepLrScheduler
Auto Trait Implementations§
impl Freeze for MultiStepLrScheduler
impl RefUnwindSafe for MultiStepLrScheduler
impl Send for MultiStepLrScheduler
impl Sync for MultiStepLrScheduler
impl Unpin for MultiStepLrScheduler
impl UnwindSafe for MultiStepLrScheduler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more