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