harmonic_mean

emlib.mathlib.harmonic_mean(numbers)[source]

The harmonic mean is used to calculate F1 score.

(https://en.wikipedia.org/wiki/F-score)

Return type:

TypeVar(T, bound= Union[Rational, float])