public class ClassificationResultUtils extends Object
ClassificationResults| Modifier and Type | Method and Description |
|---|---|
static <CLASS> CLASS |
getHighestConfidenceClass(ClassificationResult<CLASS> result)
Get the class with the highest confidence
|
static <CLASS> List<ObjectDoublePair<CLASS>> |
getSortedClassesAndConfidences(ClassificationResult<CLASS> result)
Get the all classes and confidences, sorted by decreasing confidence
|
public static <CLASS> CLASS getHighestConfidenceClass(ClassificationResult<CLASS> result)
result - the ClassificationResult to work withpublic static <CLASS> List<ObjectDoublePair<CLASS>> getSortedClassesAndConfidences(ClassificationResult<CLASS> result)
result - the ClassificationResult to work with