edu.cmu.minorthird.classify.sequential
Class MarginPerceptronLearner
java.lang.Object
edu.cmu.minorthird.classify.sequential.CollinsPerceptronLearner
edu.cmu.minorthird.classify.sequential.MarginPerceptronLearner
- All Implemented Interfaces:
- BatchSequenceClassifierLearner, SequenceClassifierLearner, SequenceConstants
public class MarginPerceptronLearner
- extends CollinsPerceptronLearner
Sequential learner based on the perceptron algorithm that takes the
top-k viterbi paths and subtracts those within a margin of beta of
the correct.
- Author:
- Sunita Sarawagi
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MarginPerceptronLearner
public MarginPerceptronLearner()
MarginPerceptronLearner
public MarginPerceptronLearner(int numberOfEpochs)
MarginPerceptronLearner
public MarginPerceptronLearner(int historySize,
int numberOfEpochs,
float beta)
MarginPerceptronLearner
public MarginPerceptronLearner(int historySize,
int numberOfEpochs,
float beta,
int topK)
batchTrain
public SequenceClassifier batchTrain(SequenceDataset dataset)
- Specified by:
batchTrain
in interface BatchSequenceClassifierLearner
- Overrides:
batchTrain
in class CollinsPerceptronLearner