edu.umass.cs.mallet.base.fst
Class CRF4.MaximizableCRF

java.lang.Object
  extended byedu.umass.cs.mallet.base.fst.CRF4.MaximizableCRF
All Implemented Interfaces:
Maximizable, Maximizable.ByGradient, java.io.Serializable
Direct Known Subclasses:
CRF_PL.MaximizableCRF_PL, MEMM.MaximizableMEMM
Enclosing class:
CRF4

public class CRF4.MaximizableCRF
extends java.lang.Object
implements Maximizable.ByGradient, java.io.Serializable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class edu.umass.cs.mallet.base.maximize.Maximizable
Maximizable.ByGISUpdate, Maximizable.ByGradient, Maximizable.ByHessian, Maximizable.ByValue, Maximizable.ByVotedPerceptron
 
Constructor Summary
protected CRF4.MaximizableCRF(InstanceList ilist, CRF4 crf)
           
 
Method Summary
protected  void gatherConstraints(InstanceList ilist)
           
protected  double getExpectationValue()
           
 Matrix getNewMatrix()
           
 int getNumParameters()
           
 double getParameter(int index)
           
 void getParameters(double[] buffer)
           
 double getValue()
           
 void getValueGradient(double[] buffer)
           
 void setCurIter(int curIter)
           
 void setParameter(int index, double value)
           
 void setParameters(double[] buff)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CRF4.MaximizableCRF

protected CRF4.MaximizableCRF(InstanceList ilist,
                              CRF4 crf)
Method Detail

gatherConstraints

protected void gatherConstraints(InstanceList ilist)

setCurIter

public void setCurIter(int curIter)

getNewMatrix

public Matrix getNewMatrix()

getNumParameters

public int getNumParameters()
Specified by:
getNumParameters in interface Maximizable

getParameters

public void getParameters(double[] buffer)
Specified by:
getParameters in interface Maximizable

getParameter

public double getParameter(int index)
Specified by:
getParameter in interface Maximizable

setParameters

public void setParameters(double[] buff)
Specified by:
setParameters in interface Maximizable

setParameter

public void setParameter(int index,
                         double value)
Specified by:
setParameter in interface Maximizable

getExpectationValue

protected double getExpectationValue()

getValue

public double getValue()
Specified by:
getValue in interface Maximizable.ByGradient

getValueGradient

public void getValueGradient(double[] buffer)
Specified by:
getValueGradient in interface Maximizable.ByGradient