edu.mit.util.weka
Class LBFGSWrapper

java.lang.Object
  extended by edu.mit.util.weka.LBFGSWrapper
Direct Known Subclasses:
CuCoSeg.PriorOptimizer, DPSeg.PriorOptimizer

public abstract class LBFGSWrapper
extends Object


Field Summary
protected  boolean m_debug
           
 double m_eps
           
protected  double[] m_estimate
           
protected  int m_max_its
           
 int m_num_corrections
           
protected  int m_num_parameters
           
protected  double m_value
           
protected  double xtol
           
 
Constructor Summary
LBFGSWrapper(int num_parameters)
           
 
Method Summary
abstract  double[] evaluateGradient(double[] x)
           
 double[] findArgmin()
           
 double getMinFunction()
           
 double[] getVarbValues()
           
abstract  double objectiveFunction(double[] x)
           
 void setDebug(boolean debug)
           
 void setEstimate(double[] estimate)
          setEstimate Use this to initialize the search
 void setMaxIteration(int max_its)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_max_its

protected int m_max_its

m_eps

public double m_eps

xtol

protected double xtol

m_num_corrections

public int m_num_corrections

m_estimate

protected double[] m_estimate

m_value

protected double m_value

m_num_parameters

protected int m_num_parameters

m_debug

protected boolean m_debug
Constructor Detail

LBFGSWrapper

public LBFGSWrapper(int num_parameters)
Method Detail

objectiveFunction

public abstract double objectiveFunction(double[] x)
                                  throws Exception
Throws:
Exception

evaluateGradient

public abstract double[] evaluateGradient(double[] x)
                                   throws Exception
Throws:
Exception

getVarbValues

public double[] getVarbValues()

getMinFunction

public double getMinFunction()

setEstimate

public void setEstimate(double[] estimate)
setEstimate Use this to initialize the search


setDebug

public void setDebug(boolean debug)

setMaxIteration

public void setMaxIteration(int max_its)

findArgmin

public double[] findArgmin()
                    throws Exception
Throws:
Exception


Copyright © 2008 MIT. All Rights Reserved.