public class Precision extends Object implements ClassificationMeasure
PPV = TP / (TP + FP)
| Constructor and Description |
|---|
Precision() |
| Modifier and Type | Method and Description |
|---|---|
double |
measure(int[] truth,
int[] prediction)
Returns an index to measure the quality of classification.
|
String |
toString() |
public double measure(int[] truth,
int[] prediction)
ClassificationMeasuremeasure in interface ClassificationMeasuretruth - the true class labels.prediction - the predicted class labels.Copyright © 2015. All rights reserved.