edu.umass.cs.mallet.base.classify
Class Classification
java.lang.Object
edu.umass.cs.mallet.base.classify.Classification
- public class Classification
- extends java.lang.Object
The result of classifying a single instance.
Contains the instance, the classifier used, and the labeling the
classifier produced.
Also has methods for comparing the correct (true) label contained in the
target field of the instance with the one produced by the classifier.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Classification
public Classification(Instance instance,
Classifier classifier,
Labeling labeling)
getInstance
public Instance getInstance()
getClassifier
public Classifier getClassifier()
getLabeling
public Labeling getLabeling()
getLabelVector
public LabelVector getLabelVector()
bestLabelIsCorrect
public boolean bestLabelIsCorrect()
valueOfCorrectLabel
public double valueOfCorrectLabel()
print
public void print()