pub struct SGD<T> {
pub learning_rate: T,
}Expand description
Stochastic Gradient Descent optimizer
Updates weights: w = w - learning_rate * gradient
Fields§
§learning_rate: TImplementations§
Auto Trait Implementations§
impl<T> Freeze for SGD<T>where
T: Freeze,
impl<T> RefUnwindSafe for SGD<T>where
T: RefUnwindSafe,
impl<T> Send for SGD<T>where
T: Send,
impl<T> Sync for SGD<T>where
T: Sync,
impl<T> Unpin for SGD<T>where
T: Unpin,
impl<T> UnsafeUnpin for SGD<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for SGD<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