From b66b3dce2e5e5a53c16824879d05d4ad90001cfc Mon Sep 17 00:00:00 2001 From: Vladimir Chernyy <57420464+brainabuser@users.noreply.github.com> Date: Thu, 21 Oct 2021 21:58:24 +0300 Subject: [PATCH] weighted average -> harmonic mean According to https://en.wikipedia.org/wiki/Harmonic_mean --- sklearn/metrics/_classification.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sklearn/metrics/_classification.py b/sklearn/metrics/_classification.py index b4316053c0f74..e95ca48257aec 100644 --- a/sklearn/metrics/_classification.py +++ b/sklearn/metrics/_classification.py @@ -991,7 +991,7 @@ def f1_score( ): """Compute the F1 score, also known as balanced F-score or F-measure. - The F1 score can be interpreted as a weighted average of the precision and + The F1 score can be interpreted as a harmonic mean of the precision and recall, where an F1 score reaches its best value at 1 and worst score at 0. The relative contribution of precision and recall to the F1 score are equal. The formula for the F1 score is::