Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion notebooks/05.05-Naive-Bayes.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"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",
"\n",
"$$\n",
"\\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",
"\\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",
"$$\n",
"\n",
"All we need now is some model by which we can compute $P({\\rm features}~|~L_i)$ for each label.\n",
Expand Down