lazyslide.metrics.segmentation.sensitivity#
- sensitivity(stats)#
Compute sensitivity (true positive rate) from segmentation statistics.
Sensitivity measures the proportion of actual positive instances that were correctly identified. This is identical to recall and represents the ability of the model to correctly identify positive cases.
- Parameters:
- statsSegmentationStats
Segmentation statistics containing true positives (tp) and false negatives (fn).
- Returns:
- float
Sensitivity score in the range [0, 1], where 1 indicates perfect sensitivity. This function delegates to the recall function for computation.
See also
recallEquivalent function with the same computation.
Notes
Sensitivity = TP / (TP + FN) Sensitivity is mathematically identical to recall and true positive rate (TPR).