edu.cmu.minorthird.classify.ranking
Class RankingPerceptron

java.lang.Object
  extended by edu.cmu.minorthird.classify.BatchClassifierLearner
      extended by edu.cmu.minorthird.classify.BatchBinaryClassifierLearner
          extended by edu.cmu.minorthird.classify.ranking.BatchRankingLearner
              extended by edu.cmu.minorthird.classify.ranking.RankingPerceptron
All Implemented Interfaces:
BinaryClassifierLearner, ClassifierLearner, java.lang.Cloneable

public class RankingPerceptron
extends BatchRankingLearner

A ranking method based on a voted perceptron.


Field Summary
 
Fields inherited from class edu.cmu.minorthird.classify.BatchClassifierLearner
classifier, dataset
 
Constructor Summary
RankingPerceptron()
           
RankingPerceptron(int numEpochs)
           
 
Method Summary
 Classifier batchTrain(Dataset data)
          subclasses should use this method to implement a batch supervised learning algorithm.
 
Methods inherited from class edu.cmu.minorthird.classify.ranking.BatchRankingLearner
listsWithOneExampleEach, sortByScore, splitIntoRankings
 
Methods inherited from class edu.cmu.minorthird.classify.BatchBinaryClassifierLearner
batchTrainBinary, getBinaryClassifier, getSchema, setSchema
 
Methods inherited from class edu.cmu.minorthird.classify.BatchClassifierLearner
addExample, completeTraining, copy, getClassifier, hasNextQuery, nextQuery, reset, setInstancePool
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.cmu.minorthird.classify.ClassifierLearner
addExample, completeTraining, copy, getClassifier, hasNextQuery, nextQuery, reset, setInstancePool
 

Constructor Detail

RankingPerceptron

public RankingPerceptron()

RankingPerceptron

public RankingPerceptron(int numEpochs)
Method Detail

batchTrain

public Classifier batchTrain(Dataset data)
Description copied from class: BatchClassifierLearner
subclasses should use this method to implement a batch supervised learning algorithm.

Specified by:
batchTrain in class BatchClassifierLearner