gradient_descent

Function gradient_descent 

Source
pub fn gradient_descent<F>(
    f: F,
    initial: &[f64],
    config: &OptimizationConfig,
) -> MathResult<OptimizationResult>
where F: Fn(&[f64]) -> f64,
Expand description

Simple gradient descent optimizer.

Minimizes a function using steepest descent with numerical gradients.