Struct rusty_machine::learning::optim::grad_desc::AdaGrad
[−]
[src]
pub struct AdaGrad { /* fields omitted */ }
Adaptive Gradient Descent
The adaptive gradient descent algorithm (Duchi et al. 2010).
Methods
impl AdaGrad
[src]
fn new(alpha: f64, tau: f64, iters: usize) -> AdaGrad
Constructs a new AdaGrad algorithm.
Examples
use rusty_machine::learning::optim::grad_desc::AdaGrad; // Create a new AdaGrad algorithm with step size 0.5 // and adaptive scaling constant 1.0 let gd = AdaGrad::new(0.5, 1.0, 100);