public class Sensitivity extends Object implements ClassificationMeasure
TPR = TP / P = TP / (TP + FN)
Sensitivity and specificity are closely related to the concepts of type I and type II errors. For any test, there is usually a trade-off between the measures. This trade-off can be represented graphically using an ROC curve.
In this implementation, the class label 1 is regarded as positive and all others are regarded as negative.
| Constructor and Description |
|---|
Sensitivity() |
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.