Methods inherited from class cc.mallet.grmm.learning.DefaultAcrfTrainer |
callEvaluator, getMaxer, getRandom, incrementalTrain, incrementalTrain, isRethrowExceptions, setMaxer, setOutputPrefix, setRethrowExceptions, someUnsupportedTrain, test, test, train, train, train, train, train, train |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
printGradient
public static boolean printGradient
NO_WRONG_WRONG
public static final int NO_WRONG_WRONG
- See Also:
- Constant Field Values
CONDITION_WW
public static final int CONDITION_WW
- See Also:
- Constant Field Values
PwplACRFTrainer
public PwplACRFTrainer()
createOptimizable
public Optimizable.ByGradientValue createOptimizable(ACRF acrf,
InstanceList training)
- Overrides:
createOptimizable
in class DefaultAcrfTrainer
getWrongWrongThreshold
public double getWrongWrongThreshold()
setWrongWrongThreshold
public void setWrongWrongThreshold(double wrongWrongThreshold)
setWrongWrongType
public void setWrongWrongType(int wrongWrongType)
setWrongWrongIter
public void setWrongWrongIter(int wrongWrongIter)
train
public boolean train(ACRF acrf,
InstanceList trainingList,
InstanceList validationList,
InstanceList testSet,
ACRFEvaluator eval,
int numIter,
Optimizable.ByGradientValue macrf)
- Specified by:
train
in interface ACRFTrainer
- Overrides:
train
in class DefaultAcrfTrainer
reportTrainingLikelihood
public static void reportTrainingLikelihood(ACRF acrf,
InstanceList trainingList)