cc.mallet.classify
Class PRAuxClassifierOptimizable
java.lang.Object
cc.mallet.classify.PRAuxClassifierOptimizable
- All Implemented Interfaces:
- Optimizable, Optimizable.ByGradientValue
public class PRAuxClassifierOptimizable
- extends java.lang.Object
- implements Optimizable.ByGradientValue
Optimizable for training auxiliary model (q) for E-step/I-projection in PR training.
- Author:
- Gregory Druck gdruck@cs.umass.edu
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PRAuxClassifierOptimizable
public PRAuxClassifierOptimizable(InstanceList trainingData,
double[][] baseDistribution,
PRAuxClassifier classifier)
getNumParameters
public int getNumParameters()
- Specified by:
getNumParameters
in interface Optimizable
getParameters
public void getParameters(double[] buffer)
- Specified by:
getParameters
in interface Optimizable
getParameter
public double getParameter(int index)
- Specified by:
getParameter
in interface Optimizable
setParameters
public void setParameters(double[] params)
- Specified by:
setParameters
in interface Optimizable
setParameter
public void setParameter(int index,
double value)
- Specified by:
setParameter
in interface Optimizable
getValueAndGradient
public double getValueAndGradient(double[] gradient)
getValue
public double getValue()
- Specified by:
getValue
in interface Optimizable.ByGradientValue
getValueGradient
public void getValueGradient(double[] gradient)
- Specified by:
getValueGradient
in interface Optimizable.ByGradientValue