Struct renforce::util::graddesc::GradDescMomentum
[−]
[src]
pub struct GradDescMomentum<F: Float> { /* fields omitted */ }
Basic gradient descent with momentum
Methods
impl<F: Float> GradDescMomentum<F>
[src]
fn new(momentum: F) -> GradDescMomentum<F>
Creates a new GradDescMomentum
Trait Implementations
impl<F: Clone + Float> Clone for GradDescMomentum<F>
[src]
fn clone(&self) -> GradDescMomentum<F>
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<F: Debug + Float> Debug for GradDescMomentum<F>
[src]
impl<F: Float> GradientDescAlgo<F> for GradDescMomentum<F>
[src]
fn calculate(&mut self, grad: Vec<F>, lr: F) -> Vec<F>
Calculates local step for minimizing function
impl Default for GradDescMomentum<f64>
[src]
fn default() -> GradDescMomentum<f64>
Returns the "default value" for a type. Read more