medpy.metric.binary.precision#
- medpy.metric.binary.precision(result, reference)[source]#
Precison.
- 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:
- precisionfloat
The precision between two binary datasets, here mostly binary objects in images, which is defined as the fraction of retrieved instances that are relevant. The precision is not symmetric.
See also
Notes
Not symmetric. The inverse of the precision is
recall
. High precision means that an algorithm returned substantially more relevant results than irrelevant.References