pub struct SGDConfig<T: NabledReal = f64> {
pub learning_rate: T,
pub max_iterations: usize,
pub tolerance: T,
}Expand description
Configuration for SGD.
Fields§
§learning_rate: TFixed learning rate.
max_iterations: usizeMaximum optimization iterations.
tolerance: TGradient norm tolerance for convergence.
Trait Implementations§
Source§impl<T: NabledReal> Default for SGDConfig<T>
impl<T: NabledReal> Default for SGDConfig<T>
impl<T: Copy + NabledReal> Copy for SGDConfig<T>
Auto Trait Implementations§
impl<T> Freeze for SGDConfig<T>where
T: Freeze,
impl<T> RefUnwindSafe for SGDConfig<T>where
T: RefUnwindSafe,
impl<T> Send for SGDConfig<T>
impl<T> Sync for SGDConfig<T>
impl<T> Unpin for SGDConfig<T>where
T: Unpin,
impl<T> UnsafeUnpin for SGDConfig<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for SGDConfig<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