pub enum StepSchedule {
Constant(f64),
DiminishingSqrt(f64),
Polyak {
f_star: f64,
},
}Expand description
Step size schedule for subgradient methods.
Variants§
Constant(f64)
Constant step: η_k = η.
DiminishingSqrt(f64)
Diminishing step: η_k = η / sqrt(k + 1).
Polyak
Polyak step (requires lower bound f*): η_k = (f(x_k) - f*) / ‖g_k‖².
Trait Implementations§
Source§impl Clone for StepSchedule
impl Clone for StepSchedule
Source§fn clone(&self) -> StepSchedule
fn clone(&self) -> StepSchedule
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 StepSchedule
impl Debug for StepSchedule
impl Copy for StepSchedule
Auto Trait Implementations§
impl Freeze for StepSchedule
impl RefUnwindSafe for StepSchedule
impl Send for StepSchedule
impl Sync for StepSchedule
impl Unpin for StepSchedule
impl UnsafeUnpin for StepSchedule
impl UnwindSafe for StepSchedule
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