cc.mallet.optimize
Class ConjugateGradient
java.lang.Object
cc.mallet.optimize.ConjugateGradient
- All Implemented Interfaces:
- Optimizer
public class ConjugateGradient
- extends java.lang.Object
- implements Optimizer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConjugateGradient
public ConjugateGradient(Optimizable.ByGradientValue function,
double initialStepSize)
ConjugateGradient
public ConjugateGradient(Optimizable.ByGradientValue function)
getOptimizable
public Optimizable getOptimizable()
- Specified by:
getOptimizable
in interface Optimizer
isConverged
public boolean isConverged()
- Specified by:
isConverged
in interface Optimizer
setEvaluator
public void setEvaluator(OptimizerEvaluator.ByGradient eval)
setLineMaximizer
public void setLineMaximizer(LineOptimizer.ByGradient lineMaximizer)
setInitialStepSize
public void setInitialStepSize(double initialStepSize)
getInitialStepSize
public double getInitialStepSize()
getStepSize
public double getStepSize()
optimize
public boolean optimize()
- Specified by:
optimize
in interface Optimizer
setTolerance
public void setTolerance(double t)
optimize
public boolean optimize(int numIterations)
- Specified by:
optimize
in interface Optimizer
reset
public void reset()