public final class Fmincg extends AbstractMinimizer
| Modifier and Type | Field and Description |
|---|---|
static double |
EXT |
| Constructor and Description |
|---|
Fmincg() |
| Modifier and Type | Method and Description |
|---|---|
de.jungblut.math.DoubleVector |
minimize(CostFunction f,
de.jungblut.math.DoubleVector theta,
int length,
boolean verbose)
Minimizes the given costfunction with the starting parameter theta.
|
static de.jungblut.math.DoubleVector |
minimizeFunction(CostFunction f,
de.jungblut.math.DoubleVector theta,
int maxIterations,
boolean verbose)
Minimizes the given CostFunction with Nonlinear conjugate gradient method.
|
addIterationCompletionCallback, onIterationFinishedpublic static de.jungblut.math.DoubleVector minimizeFunction(CostFunction f, de.jungblut.math.DoubleVector theta, int maxIterations, boolean verbose)
http://en.wikipedia.org/wiki/Nonlinear_conjugate_gradient_method f - the cost function to minimize.theta - the input vector, also called starting pointmaxIterations - the number of iterations to makeverbose - output the progress to STDOUTpublic final de.jungblut.math.DoubleVector minimize(CostFunction f, de.jungblut.math.DoubleVector theta, int length, boolean verbose)
Minimizerf - the costfunction to minimize.theta - the starting parameters.length - the number of iterations to do.verbose - if TRUE it will print progress.Copyright © 2016. All rights reserved.