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 Default for ConjugateGD
[src]

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], data: &M::Data, outputs: &M::Target) -> Vec<f64>

Return the optimized parameter using gradient optimization. Read more