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

pub struct GradientDesc { /* fields omitted */ }

Batch Gradient Descent algorithm

Methods

impl GradientDesc
[src]

Construct a gradient descent algorithm.

Requires the step size and iteration count to be specified.

Examples

use rusty_machine::learning::optim::grad_desc::GradientDesc;

let gd = GradientDesc::new(0.3, 10000);

Trait Implementations

impl Clone for GradientDesc
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for GradientDesc
[src]

impl Debug for GradientDesc
[src]

Formats the value using the given formatter.

impl Default for GradientDesc
[src]

The default gradient descent algorithm.

The defaults are:

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

impl<M: Optimizable> OptimAlgorithm<M> for GradientDesc
[src]

Return the optimized parameter using gradient optimization. Read more