public class Accuracy extends java.lang.Object implements ClassificationMeasure
| Constructor and Description |
|---|
Accuracy() |
| Modifier and Type | Method and Description |
|---|---|
double |
measure(int[] truth,
int[] prediction)
Returns an index to measure the quality of classification.
|
java.lang.String |
toString() |
public double measure(int[] truth,
int[] prediction)
ClassificationMeasuremeasure in interface ClassificationMeasuretruth - the true class labels.prediction - the predicted class labels.public java.lang.String toString()
toString in class java.lang.Object