Package cc.mallet.optimize
Class LimitedMemoryBFGS
- java.lang.Object
-
- cc.mallet.optimize.LimitedMemoryBFGS
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface cc.mallet.optimize.Optimizer
Optimizer.ByBatches
-
-
Constructor Summary
Constructors Constructor Description LimitedMemoryBFGS(Optimizable.ByGradientValue function)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getIteration()
Optimizable
getOptimizable()
boolean
isConverged()
boolean
optimize()
boolean
optimize(int numIterations)
void
reset()
Resets the previous gradients and values that are used to approximate the Hessian.void
setEvaluator(OptimizerEvaluator.ByGradient eval)
void
setLineOptimizer(LineOptimizer.ByGradient lineOpt)
Sets the LineOptimizer.ByGradient to use in L-BFGS optimization.void
setTolerance(double newtol)
-
-
-
Constructor Detail
-
LimitedMemoryBFGS
public LimitedMemoryBFGS(Optimizable.ByGradientValue function)
-
-
Method Detail
-
getOptimizable
public Optimizable getOptimizable()
- Specified by:
getOptimizable
in interfaceOptimizer
-
isConverged
public boolean isConverged()
- Specified by:
isConverged
in interfaceOptimizer
-
setLineOptimizer
public void setLineOptimizer(LineOptimizer.ByGradient lineOpt)
Sets the LineOptimizer.ByGradient to use in L-BFGS optimization.- Parameters:
lineOpt
- line optimizer for L-BFGS
-
setTolerance
public void setTolerance(double newtol)
-
setEvaluator
public void setEvaluator(OptimizerEvaluator.ByGradient eval)
-
getIteration
public int getIteration()
-
reset
public void reset()
Resets the previous gradients and values that are used to approximate the Hessian. NOTE - If theOptimizable
object is modified externally, this method should be called to avoid IllegalStateExceptions.
-
-