|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cc.mallet.fst.TransducerTrainer cc.mallet.fst.MEMMTrainer
public class MEMMTrainer
Trains and evaluates a MEMM
.
Nested Class Summary | |
---|---|
class |
MEMMTrainer.MEMMOptimizableByLabelLikelihood
Represents the terms in the objective function. |
Nested classes/interfaces inherited from class cc.mallet.fst.TransducerTrainer |
---|
TransducerTrainer.ByIncrements, TransducerTrainer.ByInstanceIncrements, TransducerTrainer.ByOptimization |
Constructor Summary | |
---|---|
MEMMTrainer(MEMM memm)
|
Method Summary | |
---|---|
int |
getIteration()
|
MEMMTrainer.MEMMOptimizableByLabelLikelihood |
getOptimizableMEMM(InstanceList trainingSet)
|
Transducer |
getTransducer()
|
boolean |
isFinishedTraining()
|
void |
printInstanceLists()
|
boolean |
train(InstanceList training)
Trains a MEMM until convergence. |
boolean |
train(InstanceList training,
InstanceList validation,
InstanceList testing,
TransducerEvaluator eval,
int numIterations,
int numIterationsPerProportion,
double[] trainingProportions)
Not implemented yet. |
boolean |
train(InstanceList training,
int numIterations)
Trains a MEMM for specified number of iterations or until convergence whichever occurs first; returns true if training converged within specified iterations. |
boolean |
trainWithFeatureInduction(InstanceList trainingData,
InstanceList validationData,
InstanceList testingData,
TransducerEvaluator eval,
int numIterations,
int numIterationsBetweenFeatureInductions,
int numFeatureInductions,
int numFeaturesPerFeatureInduction,
double trueLabelProbThreshold,
boolean clusteredFeatureInduction,
double[] trainingProportions,
java.lang.String gainName)
Not implemented yet. |
Methods inherited from class cc.mallet.fst.TransducerTrainer |
---|
addEvaluator, addEvaluators, removeEvaluator, runEvaluators |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MEMMTrainer(MEMM memm)
Method Detail |
---|
public MEMMTrainer.MEMMOptimizableByLabelLikelihood getOptimizableMEMM(InstanceList trainingSet)
public boolean train(InstanceList training)
train
in class TransducerTrainer
public boolean train(InstanceList training, int numIterations)
train
in class TransducerTrainer
public boolean train(InstanceList training, InstanceList validation, InstanceList testing, TransducerEvaluator eval, int numIterations, int numIterationsPerProportion, double[] trainingProportions)
java.lang.UnsupportedOperationException
public boolean trainWithFeatureInduction(InstanceList trainingData, InstanceList validationData, InstanceList testingData, TransducerEvaluator eval, int numIterations, int numIterationsBetweenFeatureInductions, int numFeatureInductions, int numFeaturesPerFeatureInduction, double trueLabelProbThreshold, boolean clusteredFeatureInduction, double[] trainingProportions, java.lang.String gainName)
java.lang.UnsupportedOperationException
public void printInstanceLists()
public int getIteration()
getIteration
in class TransducerTrainer
public Transducer getTransducer()
getTransducer
in class TransducerTrainer
public boolean isFinishedTraining()
isFinishedTraining
in class TransducerTrainer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |