Stochastic Gradient Descent Minimizer.
The basic way to use the minimizer is with a null constructor, then
the simple minimize method:
Minimizer smd = new InefficientSGDMinimizer(); DiffFunction df = new SomeDiffFunction(); //Note that it must be a incidence of AbstractStochasticCachingDiffFunction double tol = 1e-4; double initial = getInitialGuess(); int maxIterations = someSafeNumber;
double minimum = qnm.minimize(df,tol,initial,maxIterations);
Constructing with a null constructor will use the default values of
batchSize = 15; initialGain = 0.1;
NOTE: This class was previously called SGDMinimizer. SGDMinimizer is now what was StochasticInPlaceMinimizer. New projects should use that class.
Nested Class Summary
Nested classes/interfaces inherited from class edu.stanford.nlp.optimization.StochasticMinimizer