public class SGDWithAdaGradAndFOBOS<T extends Function> extends Object implements Minimizer<T>, HasEvaluators
| Modifier and Type | Class and Description |
|---|---|
static class |
SGDWithAdaGradAndFOBOS.Prior |
| Modifier and Type | Field and Description |
|---|---|
protected double |
alpha |
protected int |
bSize |
protected Random |
gen |
protected double |
initRate |
protected double |
lambda |
protected long |
maxTime |
protected int |
numPasses |
protected boolean |
quiet |
protected double[] |
x |
| Constructor and Description |
|---|
SGDWithAdaGradAndFOBOS(double initRate,
double lambda,
int numPasses) |
SGDWithAdaGradAndFOBOS(double initRate,
double lambda,
int numPasses,
int batchSize) |
SGDWithAdaGradAndFOBOS(double initRate,
double lambda,
int numPasses,
int batchSize,
String priorType,
double alpha) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getName() |
double[] |
minimize(Function function,
double functionTolerance,
double[] initial)
Attempts to find an unconstrained minimum of the objective
function starting at initial, within
functionTolerance. |
double[] |
minimize(Function f,
double functionTolerance,
double[] initial,
int maxIterations) |
protected void |
say(String s) |
protected void |
sayln(String s) |
void |
setEvaluators(int iters,
Evaluator[] evaluators) |
void |
setTerminateOnEvalImprovementNumOfEpoch(int terminateOnEvalImprovementNumOfEpoch) |
void |
shutUp() |
void |
suppressTestPrompt(boolean suppressTestPrompt) |
void |
terminateOnEvalImprovement(boolean toTerminate) |
boolean |
toContinue(double[] x,
double currEval) |
protected double[] x
protected double initRate
protected double lambda
protected double alpha
protected boolean quiet
protected final int numPasses
protected int bSize
protected Random gen
protected long maxTime
public SGDWithAdaGradAndFOBOS(double initRate,
double lambda,
int numPasses)
public SGDWithAdaGradAndFOBOS(double initRate,
double lambda,
int numPasses,
int batchSize)
public SGDWithAdaGradAndFOBOS(double initRate,
double lambda,
int numPasses,
int batchSize,
String priorType,
double alpha)
public void terminateOnEvalImprovement(boolean toTerminate)
public void suppressTestPrompt(boolean suppressTestPrompt)
public void setTerminateOnEvalImprovementNumOfEpoch(int terminateOnEvalImprovementNumOfEpoch)
public boolean toContinue(double[] x,
double currEval)
public void shutUp()
protected String getName()
public void setEvaluators(int iters,
Evaluator[] evaluators)
setEvaluators in interface HasEvaluatorspublic double[] minimize(Function function, double functionTolerance, double[] initial)
Minimizerfunction starting at initial, within
functionTolerance.public double[] minimize(Function f, double functionTolerance, double[] initial, int maxIterations)
protected void sayln(String s)
protected void say(String s)