edu.cmu.minorthird.classify.sequential
Class TrivialSequenceClassifier
java.lang.Object
edu.cmu.minorthird.classify.sequential.TrivialSequenceClassifier
- All Implemented Interfaces:
- SequenceClassifier, SequenceConstants
public class TrivialSequenceClassifier
- extends java.lang.Object
- implements SequenceClassifier, SequenceConstants
Apply a classifier to each item in a sequence in turn,
using as history the previous predicted items.
- Author:
- William Cohen
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TrivialSequenceClassifier
public TrivialSequenceClassifier(Classifier classifier,
int historySize)
classification
public ClassLabel[] classification(Instance[] sequence)
- Description copied from interface:
SequenceClassifier
- Return a predicted type for each element of the sequence.
- Specified by:
classification
in interface SequenceClassifier
explain
public java.lang.String explain(Instance[] sequence)
- Description copied from interface:
SequenceClassifier
- Return some string that 'explains' the classification
- Specified by:
explain
in interface SequenceClassifier
getExplanation
public Explanation getExplanation(Instance[] sequence)
- Description copied from interface:
SequenceClassifier
- Return and explanation for a classification
- Specified by:
getExplanation
in interface SequenceClassifier