from F value Why is the F value the harmonic mean?
What is F value http://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html
-
F1 = 2 * (precision * recall) / (precision + recall)
-
Max 1 Min 0
-
When precision == recall, F value is the same value
-
When either precision or recall is 0, F1 is also 0.
-
TP: True Positive
-
FP: False Positive
-
FN: False Negative
-
TN: True Negative
-
Precision:
-
-
Recall:
-
-
Sum of reciprocals
-
-
F1 score is the harmonic mean of P and R
-
-
-
Normalized Symmetric Difference http://www.dcs.gla.ac.uk/Keith/pdf/Chapter7.pdf p.128
-
-
F1 and E add 1: F1 + E = 1
-
Fβ Score
-
-
-
In short, Recall with weighted harmonic mean
-
Why instead of ?
-
-
The coefficients are omitted and written as Z
-
-
That is, the gradients match when [$ \beta P = R
-
The fact that the gradients match means that “the effect on the score is the same when P and R are moved by the same amount.
-
Does it mean that equilibrium is reached when R is β times greater than P?
This page is auto-translated from /nishio/F値はなぜ調和平均なのか using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I’m very happy to spread my thought to non-Japanese readers.