pub struct Sgd {
pub momentum: f64,
pub dampening: f64,
pub wd: f64,
pub nesterov: bool,
}
Expand description
Parameters for the SGD optimizer.
Fields§
§momentum: f64
§dampening: f64
§wd: f64
§nesterov: bool
Trait Implementations§
source§impl OptimizerConfig for Sgd
impl OptimizerConfig for Sgd
impl Copy for Sgd
Auto Trait Implementations§
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