Previous topic

medpy.metric.binary.assd

Next topic

medpy.metric.binary.recall

This Page

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.

Returns:

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.

See also

recall

Notes

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

References

[R13]http://en.wikipedia.org/wiki/Precision_and_recall
[R14]http://en.wikipedia.org/wiki/Confusion_matrix#Table_of_confusion