pub struct Sgd;Expand description
Stochastic gradient descent with momentum and acceleration (the default;
C++ NullOptimizerPolicy). The rates are the network’s
set_learning_rate, set_momentum_rate and set_acceleration_rate. In
fixed point the step learning rate * gradient rounds to nearest
(Scalar::mul_round_nearest), so steps below one LSB do not drift one
way, and the momentum and acceleration products round toward zero
(Scalar::mul_round_toward_zero), so a delta weight no gradient
refreshes decays to 0.
Trait Implementations§
impl Copy for Sgd
impl Eq for Sgd
impl StructuralPartialEq for Sgd
Auto Trait Implementations§
impl Freeze for Sgd
impl RefUnwindSafe for Sgd
impl Send for Sgd
impl Sync for Sgd
impl Unpin for Sgd
impl UnsafeUnpin 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