pub struct Optimizer<F>where
    F: Fn(&Vec<f64>, Vec<AD>) -> Option<Vec<AD>>,
{ /* private fields */ }
Expand description

Optimizer for optimization (non-linear regression)

Methods

  • Gradient Descent
  • Gauss Newton
  • Levenberg Marquardt

Caution

  • func should be boxed. (This allows more generic function)

Implementations

Get domain

Get error

Get hyperparameter (learning rate or lambda or etc.)

Set initial parameter

Set maximum iteration

Set optimization method

Set learning rate for GradientDescent

Set initial lambda for LevenbergMarquardt

Set maximum lambda for LevenbergMarquardt

Main function for optimization

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.