Skip to content

Commit 0c039a1

Browse files
authored
Update Naive Bayes Classifier from scratch.ipynb
1 parent 63ecf10 commit 0c039a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classical ML/Probabilistic models/Naive Bayes Classifier from scratch.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@
516516
"cell_type": "markdown",
517517
"source": [
518518
"$$ \n",
519-
"P(x_i \\mid y = k) = \\frac{\\textcolor{red}{\\delta} + N(x_i,\\ y = k)}{\\sum_{t = 1}^{|V|}{(\\textcolor{red}{\\delta} + N(x_t,\\ y = k)})} = \\frac{\\textcolor{red}{\\delta} + N(x_i,\\ y = k)}{\\textcolor{red}{\\delta \\cdot |V|} + \\sum_{t = 1}^{|V|}{N(x_t,\\ y = k)}}\n",
519+
"\\Huge{P(x_i \\mid y = k) = \\frac{\\textcolor{red}{\\delta} + N(x_i,\\ y = k)}{\\sum_{t = 1}^{|V|}{(\\textcolor{red}{\\delta} + N(x_t,\\ y = k)})} = \\frac{\\textcolor{red}{\\delta} + N(x_i,\\ y = k)}{\\textcolor{red}{\\delta \\cdot |V|} + \\sum_{t = 1}^{|V|}{N(x_t,\\ y = k)}}}\n",
520520
"$$"
521521
],
522522
"metadata": {

0 commit comments

Comments
 (0)