pub struct SGD {
pub learning_rate: f64,
}
Expand description
Stochastic Gradient Descent (SGD).
A basic optimizer that updates the weights based on the gradients of the loss function with respect to the weights multiplied by a learning rate.
Fields§
§learning_rate: f64
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SGD
impl RefUnwindSafe for SGD
impl Send for SGD
impl Sync for SGD
impl Unpin for SGD
impl UnwindSafe for SGD
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