|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcc.mallet.grmm.learning.DefaultAcrfTrainer
cc.mallet.grmm.learning.PwplACRFTrainer
public class PwplACRFTrainer
Implementation of piecewise PL (Sutton and McCallum, 2007) NB The wrong-wrong options are for an extension that we tried that never quite worked Created: Mar 15, 2005
| Nested Class Summary | |
|---|---|
class |
PwplACRFTrainer.Maxable
|
| Nested classes/interfaces inherited from class cc.mallet.grmm.learning.DefaultAcrfTrainer |
|---|
DefaultAcrfTrainer.FileEvaluator, DefaultAcrfTrainer.LogEvaluator, DefaultAcrfTrainer.TestResults |
| Field Summary | |
|---|---|
static int |
CONDITION_WW
|
static int |
NO_WRONG_WRONG
|
static boolean |
printGradient
|
| Constructor Summary | |
|---|---|
PwplACRFTrainer()
|
|
| Method Summary | |
|---|---|
Optimizable.ByGradientValue |
createOptimizable(ACRF acrf,
InstanceList training)
|
double |
getWrongWrongThreshold()
|
static void |
reportTrainingLikelihood(ACRF acrf,
InstanceList trainingList)
|
void |
setWrongWrongIter(int wrongWrongIter)
|
void |
setWrongWrongThreshold(double wrongWrongThreshold)
|
void |
setWrongWrongType(int wrongWrongType)
|
boolean |
train(ACRF acrf,
InstanceList trainingList,
InstanceList validationList,
InstanceList testSet,
ACRFEvaluator eval,
int numIter,
Optimizable.ByGradientValue macrf)
|
| 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 |
| Field Detail |
|---|
public static boolean printGradient
public static final int NO_WRONG_WRONG
public static final int CONDITION_WW
| Constructor Detail |
|---|
public PwplACRFTrainer()
| Method Detail |
|---|
public Optimizable.ByGradientValue createOptimizable(ACRF acrf,
InstanceList training)
createOptimizable in class DefaultAcrfTrainerpublic double getWrongWrongThreshold()
public void setWrongWrongThreshold(double wrongWrongThreshold)
public void setWrongWrongType(int wrongWrongType)
public void setWrongWrongIter(int wrongWrongIter)
public boolean train(ACRF acrf,
InstanceList trainingList,
InstanceList validationList,
InstanceList testSet,
ACRFEvaluator eval,
int numIter,
Optimizable.ByGradientValue macrf)
train in interface ACRFTrainertrain in class DefaultAcrfTrainer
public static void reportTrainingLikelihood(ACRF acrf,
InstanceList trainingList)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||