sed_eval.metric.accuracy

sed_eval.metric.accuracy(Ntp, Ntn, Nfp, Nfn, eps=2.220446049250313e-16)[source]

Accuracy

Parameters:

Ntp : int >= 0

Number of true positives.

Ntn : int >= 0

Number of true negatives.

Nfp : int >= 0

Number of false positives.

Nfn : int >= 0

Number of false negatives.

eps : float

eps. Default value numpy.spacing(1)

Returns:

acc: float

Accuracy