sed_eval.metric.accuracy2

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

Accuracy

Implements metric described by [R1].

[R1]Dixon, S. “On the computer recognition of solo piano music”. Proceedings of Australasian Computer Music Conference, July 2000, Brisbane, Australia, pp. 31–37. http://www.eecs.qmul.ac.uk/~simond/pub/2000/acmc.pdf
Parameters:

Ntp : int >= 0

Number of true positives.

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