Package cc.mallet.fst
Class CRFTrainerByValueGradients.OptimizableCRF
- java.lang.Object
-
- cc.mallet.fst.CRFTrainerByValueGradients.OptimizableCRF
-
- All Implemented Interfaces:
Optimizable
,Optimizable.ByGradientValue
,java.io.Serializable
- Enclosing class:
- CRFTrainerByValueGradients
public class CRFTrainerByValueGradients.OptimizableCRF extends java.lang.Object implements Optimizable.ByGradientValue, java.io.Serializable
An optimizable CRF that contains a collection of objective functions.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface cc.mallet.optimize.Optimizable
Optimizable.ByBatchGradient, Optimizable.ByCombiningBatchGradient, Optimizable.ByGISUpdate, Optimizable.ByGradient, Optimizable.ByGradientValue, Optimizable.ByHessian, Optimizable.ByValue, Optimizable.ByVotedPerceptron
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
OptimizableCRF(CRF crf, InstanceList ilist)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getNumParameters()
double
getParameter(int index)
void
getParameters(double[] buffer)
double
getValue()
Returns the log probability of the training sequence labels and the prior over parameters.void
getValueGradient(double[] buffer)
void
setParameter(int index, double value)
void
setParameters(double[] buff)
-
-
-
Constructor Detail
-
OptimizableCRF
protected OptimizableCRF(CRF crf, InstanceList ilist)
-
-
Method Detail
-
getNumParameters
public int getNumParameters()
- Specified by:
getNumParameters
in interfaceOptimizable
-
getParameters
public void getParameters(double[] buffer)
- Specified by:
getParameters
in interfaceOptimizable
-
getParameter
public double getParameter(int index)
- Specified by:
getParameter
in interfaceOptimizable
-
setParameters
public void setParameters(double[] buff)
- Specified by:
setParameters
in interfaceOptimizable
-
setParameter
public void setParameter(int index, double value)
- Specified by:
setParameter
in interfaceOptimizable
-
getValue
public double getValue()
Returns the log probability of the training sequence labels and the prior over parameters.- Specified by:
getValue
in interfaceOptimizable.ByGradientValue
-
getValueGradient
public void getValueGradient(double[] buffer)
- Specified by:
getValueGradient
in interfaceOptimizable.ByGradientValue
-
-