#### Previous topic

medpy.metric.binary.assd

#### Next topic

medpy.metric.binary.recall

# medpy.metric.binary.precision¶

medpy.metric.binary.precision(result, reference)[source]

Precison.

Parameters: result : array_like Input data containing objects. Can be any type but will be converted into binary: background where 0, object everywhere else. reference : array_like Input data containing objects. Can be any type but will be converted into binary: background where 0, object everywhere else. precision : float 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.

Notes

Not symmetric. The inverse of the precision is recall. High precision means that an algorithm returned substantially more relevant results than irrelevant.

References