public class SGDToQNMinimizer extends java.lang.Object implements Minimizer<DiffFunction>, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
double |
gain |
boolean |
outputIterationsToFile |
int |
QNPasses |
int |
SGDPasses |
Constructor and Description |
---|
SGDToQNMinimizer(double SGDGain,
int batchSize,
int SGDPasses,
int QNPasses) |
SGDToQNMinimizer(double SGDGain,
int batchSize,
int sgdPasses,
int qnPasses,
int hessSamples,
int QNMem) |
SGDToQNMinimizer(double SGDGain,
int batchSize,
int sgdPasses,
int qnPasses,
int hessSamples,
int QNMem,
boolean outputToFile) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getName() |
double[] |
minimize(DiffFunction function,
double functionTolerance,
double[] initial)
Attempts to find an unconstrained minimum of the objective
function starting at initial , accurate to
within functionTolerance (normally implemented as
a multiplier of the range value to give range tolerance). |
double[] |
minimize(DiffFunction function,
double functionTolerance,
double[] initial,
int maxIterations)
Attempts to find an unconstrained minimum of the objective
function starting at initial , accurate to
within functionTolerance (normally implemented as
a multiplier of the range value to give range tolerance), but
running only for at most maxIterations iterations. |
void |
shutUp() |
public boolean outputIterationsToFile
public double gain
public int SGDPasses
public int QNPasses
public SGDToQNMinimizer(double SGDGain, int batchSize, int SGDPasses, int QNPasses)
public SGDToQNMinimizer(double SGDGain, int batchSize, int sgdPasses, int qnPasses, int hessSamples, int QNMem)
public SGDToQNMinimizer(double SGDGain, int batchSize, int sgdPasses, int qnPasses, int hessSamples, int QNMem, boolean outputToFile)
public void shutUp()
protected java.lang.String getName()
public double[] minimize(DiffFunction function, double functionTolerance, double[] initial)
Minimizer
function
starting at initial
, accurate to
within functionTolerance
(normally implemented as
a multiplier of the range value to give range tolerance).minimize
in interface Minimizer<DiffFunction>
function
- The objective functionfunctionTolerance
- A double
valueinitial
- An initial feasible pointpublic double[] minimize(DiffFunction function, double functionTolerance, double[] initial, int maxIterations)
Minimizer
function
starting at initial
, accurate to
within functionTolerance
(normally implemented as
a multiplier of the range value to give range tolerance), but
running only for at most maxIterations
iterations.minimize
in interface Minimizer<DiffFunction>
function
- The objective functionfunctionTolerance
- A double
valueinitial
- An initial feasible pointmaxIterations
- Maximum number of iterations