Skip to content

Commit f3f527d

Browse files
Dhanunjaya-Ellurisantiviquez
authored andcommitted
Updated F-beta score in terms of precision and recall
1 parent c943dfc commit f3f527d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

book/3-classification.tex

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -446,13 +446,15 @@ \subsection{F-beta}
446446
\node[inner sep=2pt, font=\Large] (a) {
447447
{
448448
$\displaystyle
449-
F_{\beta} = \frac{(1 + \beta^2) {\color{nmlred}TP}}{(1 + \beta^2) {\color{nmlred}TP} + {\color{nmlpurple}FP} + \beta^2 {\color{teal!70!green}FN}}
449+
F_{\beta} = \frac{(1 + \beta^2) {\color{nmlred}TP}}{(1 + \beta^2) {\color{nmlred}TP} + {\color{nmlpurple}FP} + \beta^2 {\color{teal!70!green}FN}} = \frac{(1 + \beta^2) \cdot {\color{nmlcyan}P} \cdot {\color{nmlyellow}R}}{\beta^2 \cdot {\color{nmlcyan}P} + {\color{nmlyellow}R}}
450450
$
451451
}
452452
};
453-
\draw[-latex, nmlred, semithick] ($(a.north)+(1.5, 0.05)$) to[bend left=15] node[pos=1, right] {True positives} +(1,.5);
454-
\draw[-latex, nmlpurple, semithick] ($(a.south)+(1.2, -0.05)$) to[bend left=15] node[pos=1, left] {False positives} +(-1,-.5);
455-
\draw[-latex, teal!70!green, semithick] ($(a.south)+(3.1,-0.05)$) to[bend right=15] node[pos=1, right] {False negatives} +(1,-.5);
453+
\draw[-latex, nmlred, semithick] ($(a.north)+(-0.5, 0.05)$) to[bend right=20] node[pos=1, left] {True positives} +(-1,.5);
454+
\draw[-latex, nmlcyan, semithick] ($(a.north)+(4.6,0.05)$) -- +(0,0.65) node[above, yshift=2pt] {Precision};
455+
\draw[-latex, nmlpurple, semithick] ($(a.south)+(-0.8, -0.05)$) to[bend left=15] node[pos=1, left] {False positives} +(-1,-.5);
456+
\draw[-latex, teal!70!green, semithick] ($(a.south)+(1.2,-0.05)$) -- +(0,-0.6) node[below, yshift=-2pt] {False negatives};
457+
\draw[-latex, nmlyellow, semithick] ($(a.south)+(4.8,-0.05)$) -- +(0,-0.6) node[below, yshift=-2pt] {Recall};
456458
}
457459
\end{center}
458460

0 commit comments

Comments
 (0)