sed_eval.metric.precision

sed_eval.metric.precision(Ntp, Nsys, eps=2.220446049250313e-16)[source]

Precision.

Wikipedia entry https://en.wikipedia.org/wiki/Precision_and_recall

Parameters:

Ntp : int >=0

Number of true positives.

Nsys : int >=0

Amount of system output.

eps : float

eps. Default value numpy.spacing(1)

Returns:

precision: float

Precision