Enum leaf::solver::LRPolicy [] [src]

pub enum LRPolicy {
    Fixed,
    Step,
    Exp,
}

Learning Rate Policy for a Solver

The variables mentioned below are defined in the SolverConfig apart from iter, which is the current iteration of the solver, that is supplied as a parameter for the learning rate calculation.

Variants

Fixed

always return base_lr

Step

learning rate decays every step iterations. return base_lr * gamma ^ (floor(iter / step))

Exp

return base_lr * gamma ^ iter

Trait Implementations

Derived Implementations

impl Clone for LRPolicy

fn clone(&self) -> LRPolicy

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

impl Copy for LRPolicy

impl Debug for LRPolicy

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