public static class Classifications.Classification
extends java.lang.Object
Classification stores the classification result for a single class on a single
input.| Constructor and Description |
|---|
Classification(java.lang.String className,
double probability)
Constructs a single class result for a classification.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getClassName()
Returns the class name.
|
double |
getProbability()
Returns the probability.
|
java.lang.String |
toString() |
public Classification(java.lang.String className,
double probability)
className - the class name of the resultprobability - the probability of the resultpublic java.lang.String getClassName()
public double getProbability()
Probability explains how accurately the classifier identified the target class.
public java.lang.String toString()
toString in class java.lang.Object