[][src]Struct neuro::optimizers::SGD

pub struct SGD { /* fields omitted */ }

Stochastic Gradient Descent

Methods

impl SGD[src]

pub fn new(learning_rate: PrimitiveType) -> SGD[src]

Creates a Stochastic Gradient Descent optimizer.

pub fn with_param(learning_rate: PrimitiveType, momentum: PrimitiveType) -> SGD[src]

Creates a Stochastic Gradient Descent optimizer with momentum estimation.

Trait Implementations

impl Optimizer for SGD[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,