edu.umass.cs.mallet.base.fst
Class CRFByGISUpdate.MinimizableCRF
java.lang.Object
edu.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CRFByGISUpdate.MinimizableCRF
protected CRFByGISUpdate.MinimizableCRF(InstanceList ilist,
CRFByGISUpdate crf)
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 modelupdates
- Matrix Object in which to store the updates