sdt-metrics logo

Previous topic

recall

Next topic

specificity

This Page

f1

Download [hi-res] [pdf]

f1__lores.png
class sdt_metrics.f1(methodname, add_prob_method=False)

f1: a.k.a. F1-Score, F-measure

The harmonic mean of precision and recall [1]

Note

This metric cannot be calculated from probabilities

[1]van Rijsbergen, C. J. (1979). Information Retrieval (2nd ed.). Butterworth. http://bit.ly/8yAjR
classmethod direct(*args)

Calculates metric based on hit, miss, correct rejection, and false alarm counts

classmethod __call__(*args)

based on the number of args and the availability of .prob routes call to appropriate method.