edu.umass.cs.mallet.base.fst
Class CRFByGISUpdate.MinimizableCRF

java.lang.Object
  extended byedu.umass.cs.mallet.base.fst.CRFByGISUpdate.MinimizableCRF
All Implemented Interfaces:
Minimizable, Minimizable.ByGISUpdate, java.io.Serializable
Enclosing class:
CRFByGISUpdate

public class CRFByGISUpdate.MinimizableCRF
extends java.lang.Object
implements Minimizable.ByGISUpdate, java.io.Serializable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class edu.umass.cs.mallet.base.minimize.Minimizable
Minimizable.ByGISUpdate, Minimizable.ByGradient, Minimizable.ByHessian
 
Constructor Summary
protected CRFByGISUpdate.MinimizableCRF(InstanceList ilist, CRFByGISUpdate crf)
           
 
Method Summary
 double getCost()
           
 void getGISUpdate(Matrix params, Matrix updates)
          Returns a GIS update for the current parameter setting specified by params
 Matrix getNewMatrix()
           
 int getNumParameters()
           
 double getParameter(int[] indices)
           
 Matrix getParameters(Matrix m)
           
 void setParameter(int[] indices, double value)
           
 void setParameters(Matrix m)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CRFByGISUpdate.MinimizableCRF

protected CRFByGISUpdate.MinimizableCRF(InstanceList ilist,
                                        CRFByGISUpdate crf)
Method Detail

getNewMatrix

public Matrix getNewMatrix()
Specified by:
getNewMatrix in interface Minimizable

getNumParameters

public int getNumParameters()

getParameters

public Matrix getParameters(Matrix m)
Specified by:
getParameters in interface Minimizable

setParameters

public void setParameters(Matrix m)
Specified by:
setParameters in interface Minimizable

getParameter

public double getParameter(int[] indices)
Specified by:
getParameter in interface Minimizable

setParameter

public void setParameter(int[] indices,
                         double value)
Specified by:
setParameter in interface Minimizable

getCost

public double getCost()
Specified by:
getCost in interface Minimizable

getGISUpdate

public void getGISUpdate(Matrix params,
                         Matrix updates)
Returns a GIS update for the current parameter setting specified by params

Specified by:
getGISUpdate in interface Minimizable.ByGISUpdate
Parameters:
params - feature weights of current model
updates - Matrix Object in which to store the updates