Struct optimization::GradientDescent [] [src]

pub struct GradientDescent<T> { /* fields omitted */ }

A simple Gradient Descent optimizer.

Methods

impl GradientDescent<ArmijoLineSearch>
[src]

Creates a new GradientDescent optimizer using the following defaults:

  • line_search = ArmijoLineSearch(0.5, 1.0, 0.5)
  • gradient_tolerance = 1e-4
  • max_iterations = None

impl<T: LineSearch> GradientDescent<T>
[src]

Specifies the line search method to use.

Adjusts the gradient tolerance which is used as abort criterion to decide whether we reached a plateau.

Adjusts the number of maximally run iterations. A value of None instructs the optimizer to ignore the nubmer of iterations.

Trait Implementations

impl<F: Function1, S: LineSearch> Minimizer<F> for GradientDescent<S>
[src]

Type of the solution the Minimizer returns.

Performs the actual minimization and returns a solution that might be better than the initially provided one. Read more