Struct rusty_machine::learning::optim::fmincg::ConjugateGD [] [src]

pub struct ConjugateGD {
    pub rho: f64,
    pub sig: f64,
    pub int: f64,
    pub ext: f64,
    pub max: usize,
    pub ratio: f64,
    pub iters: usize,
}

Conjugate Gradient Descent algorithm

Fields

rho: f64

Constant in the Wolfe-Powell conditions.

sig: f64

Constant in the Wolfe-Powell conditions.

int: f64

Don't reevaluate within int of the limit of the current bracket.

ext: f64

Extrapolate max of ext times the current bracket.

max: usize

Max of max function evaluations per line search

ratio: f64

The maximum allowed slope ratio

iters: usize

The default number of max iterations.

Trait Implementations

impl Debug for ConjugateGD
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Copy for ConjugateGD
[src]

impl Clone for ConjugateGD
[src]

fn clone(&self) -> ConjugateGD

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Default for ConjugateGD
[src]

The default Conjugate GD algorithm.

The defaults are:

fn default() -> ConjugateGD

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

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

fn optimize(&self, model: &M, start: &[f64], inputs: &M::Inputs, targets: &M::Targets) -> Vec<f64>

Return the optimized parameter using gradient optimization. Read more