pub struct MomentumConfig<T: NabledReal = f64> {
pub learning_rate: T,
pub momentum: T,
pub max_iterations: usize,
pub tolerance: T,
}Expand description
Configuration for momentum gradient descent.
Fields§
§learning_rate: TBase learning rate.
momentum: TMomentum coefficient in [0, 1).
max_iterations: usizeMaximum optimization iterations.
tolerance: TGradient norm tolerance for convergence.
Trait Implementations§
Source§impl<T: Clone + NabledReal> Clone for MomentumConfig<T>
impl<T: Clone + NabledReal> Clone for MomentumConfig<T>
Source§fn clone(&self) -> MomentumConfig<T>
fn clone(&self) -> MomentumConfig<T>
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<T: Debug + NabledReal> Debug for MomentumConfig<T>
impl<T: Debug + NabledReal> Debug for MomentumConfig<T>
Source§impl<T: NabledReal> Default for MomentumConfig<T>
impl<T: NabledReal> Default for MomentumConfig<T>
impl<T: Copy + NabledReal> Copy for MomentumConfig<T>
Auto Trait Implementations§
impl<T> Freeze for MomentumConfig<T>where
T: Freeze,
impl<T> RefUnwindSafe for MomentumConfig<T>where
T: RefUnwindSafe,
impl<T> Send for MomentumConfig<T>
impl<T> Sync for MomentumConfig<T>
impl<T> Unpin for MomentumConfig<T>where
T: Unpin,
impl<T> UnsafeUnpin for MomentumConfig<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for MomentumConfig<T>where
T: UnwindSafe,
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