org.apache.mahout.classifier.bayes
Class ByScoreLabelResultComparator
java.lang.Object
org.apache.mahout.classifier.bayes.ByScoreLabelResultComparator
- All Implemented Interfaces:
- Serializable, Comparator<ClassifierResult>
public final class ByScoreLabelResultComparator
- extends Object
- implements Comparator<ClassifierResult>, Serializable
Compare two results of classification and return the lowest valued one
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByScoreLabelResultComparator
public ByScoreLabelResultComparator()
compare
public int compare(ClassifierResult cr1,
ClassifierResult cr2)
- Specified by:
compare
in interface Comparator<ClassifierResult>
Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.