pub struct CyclicalLR { /* private fields */ }Expand description
Cyclical learning rate policy with different modes
Implementations§
Source§impl CyclicalLR
impl CyclicalLR
pub fn new(base_lr: f64, max_lr: f64, step_size: usize) -> Self
pub fn with_mode(self, mode: CyclicalMode) -> Self
pub fn with_gamma(self, gamma: f64) -> Self
pub fn with_scale_mode(self, scale_mode: ScaleMode) -> Self
Trait Implementations§
Source§impl Clone for CyclicalLR
impl Clone for CyclicalLR
Source§fn clone(&self) -> CyclicalLR
fn clone(&self) -> CyclicalLR
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 CyclicalLR
impl Debug for CyclicalLR
Source§impl LearningRateScheduler for CyclicalLR
impl LearningRateScheduler for CyclicalLR
Auto Trait Implementations§
impl Freeze for CyclicalLR
impl RefUnwindSafe for CyclicalLR
impl Send for CyclicalLR
impl Sync for CyclicalLR
impl Unpin for CyclicalLR
impl UnwindSafe for CyclicalLR
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