cc.mallet.optimize
Class ConjugateGradient

java.lang.Object
  extended by cc.mallet.optimize.ConjugateGradient
All Implemented Interfaces:
Optimizer

public class ConjugateGradient
extends java.lang.Object
implements Optimizer


Nested Class Summary
 
Nested classes/interfaces inherited from interface cc.mallet.optimize.Optimizer
Optimizer.ByBatches
 
Constructor Summary
ConjugateGradient(Optimizable.ByGradientValue function)
           
ConjugateGradient(Optimizable.ByGradientValue function, double initialStepSize)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 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()