Skip to content

Commit bfed508

Browse files
authored
Erratum: Typo in Naive Bayes formula
Update 05.05-Naive-Bayes.ipynb
2 parents 2b4b785 + a569ddc commit bfed508

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notebooks/05.05-Naive-Bayes.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"If we are trying to decide between two labels—let's call them $L_1$ and $L_2$—then one way to make this decision is to compute the ratio of the posterior probabilities for each label:\n",
5252
"\n",
5353
"$$\n",
54-
"\\frac{P(L_1~|~{\\rm features})}{P(L_1~|~{\\rm features})} = \\frac{P({\\rm features}~|~L_1)}{P({\\rm features}~|~L_2)}\\frac{P(L_1)}{P(L_2)}\n",
54+
"\\frac{P(L_1~|~{\\rm features})}{P(L_2~|~{\\rm features})} = \\frac{P({\\rm features}~|~L_1)}{P({\\rm features}~|~L_2)}\\frac{P(L_1)}{P(L_2)}\n",
5555
"$$\n",
5656
"\n",
5757
"All we need now is some model by which we can compute $P({\\rm features}~|~L_i)$ for each label.\n",

0 commit comments

Comments
 (0)