Struct rusty_machine::learning::optim::grad_desc::StochasticGD [] [src]

pub struct StochasticGD { /* fields omitted */ }

Stochastic Gradient Descent algorithm.

Uses basic momentum to control the learning rate.

Methods

impl StochasticGD
[src]

Construct a stochastic gradient descent algorithm.

Requires the learning rate, momentum rate and iteration count to be specified.

Examples

use rusty_machine::learning::optim::grad_desc::StochasticGD;

let sgd = StochasticGD::new(0.1, 0.3, 5);

Trait Implementations

impl Clone for StochasticGD
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for StochasticGD
[src]

impl Debug for StochasticGD
[src]

Formats the value using the given formatter.

impl Default for StochasticGD
[src]

The default Stochastic GD algorithm.

The defaults are:

Returns the "default value" for a type. Read more

impl<M> OptimAlgorithm<M> for StochasticGD where M: Optimizable<Inputs=Matrix<f64>, Targets=Matrix<f64>>
[src]

Return the optimized parameter using gradient optimization. Read more