Package cc.mallet.optimize
Class ConjugateGradient
- java.lang.Object
-
- cc.mallet.optimize.ConjugateGradient
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface cc.mallet.optimize.Optimizer
Optimizer.ByBatches
-
-
Constructor Summary
Constructors Constructor Description ConjugateGradient(Optimizable.ByGradientValue function)
ConjugateGradient(Optimizable.ByGradientValue function, double initialStepSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getInitialStepSize()
Optimizable
getOptimizable()
double
getStepSize()
boolean
isConverged()
boolean
optimize()
boolean
optimize(int numIterations)
void
reset()
void
setEvaluator(OptimizerEvaluator.ByGradient eval)
void
setInitialStepSize(double initialStepSize)
void
setLineMaximizer(LineOptimizer.ByGradient lineMaximizer)
void
setTolerance(double t)
-
-
-
Constructor Detail
-
ConjugateGradient
public ConjugateGradient(Optimizable.ByGradientValue function, double initialStepSize)
-
ConjugateGradient
public ConjugateGradient(Optimizable.ByGradientValue function)
-
-
Method Detail
-
getOptimizable
public Optimizable getOptimizable()
- Specified by:
getOptimizable
in interfaceOptimizer
-
isConverged
public boolean isConverged()
- Specified by:
isConverged
in interfaceOptimizer
-
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()
-
setTolerance
public void setTolerance(double t)
-
reset
public void reset()
-
-