Struct optimization::StochasticGradientDescent [] [src]

pub struct StochasticGradientDescent { /* fields omitted */ }

Provides stochastic Gradient Descent optimization.

Methods

impl StochasticGradientDescent
[src]

Creates a new StochasticGradientDescent optimizer using the following defaults:

  • step_width = 0.01
  • mini_batch = 1
  • max_iterations = 1000

The used random number generator is randomly seeded.

Seeds the random number generator using the supplied seed.

This is useful to create re-producable results.

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

Adjusts the mini batch size, i.e., how many terms are considered in one step at most.

Adjusts the step size applied for each mini batch.

Trait Implementations

impl<F: Summation1> Minimizer<F> for StochasticGradientDescent
[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