medpy.metric.binary.specificity#
- medpy.metric.binary.specificity(result, reference)[source]#
Specificity.
- Parameters:
- resultarray_like
Input data containing objects. Can be any type but will be converted into binary: background where 0, object everywhere else.
- referencearray_like
Input data containing objects. Can be any type but will be converted into binary: background where 0, object everywhere else.
- Returns:
- specificityfloat
The specificity between two binary datasets, here mostly binary objects in images, which denotes the fraction of correctly returned negatives. The specificity is not symmetric.
See also
Notes
Not symmetric. The completment of the specificity is
sensitivity
. High recall means that an algorithm returned most of the irrelevant results.References