Struct vikos::teacher::GradientDescentAl [] [src]

pub struct GradientDescentAl {
    pub l0: f64,
    pub t: f64,
}

Gradient descent with annealing learning rate

For the i-th event the learning rate is l = l0 * (1 + i/t)

Fields

Start learning rate

Smaller t will decrease the learning rate faster

After t events the start learning rate will be a half l0, after two t events the learning rate will be one third l0 and so on.

Trait Implementations

impl<M> Teacher<M> for GradientDescentAl where M: Model
[src]

Contains state which changes during the training, but is not part of the expertise Read more

Creates an instance holding all mutable state of the algorithm

Changes models coefficents so they minimize the cost function (hopefully)