Skip to content

Commit

Permalink
Update Naive Bayes Classifier from scratch.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzagcoffee authored Dec 23, 2022
1 parent 071c512 commit 46d8aeb
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@
{
"cell_type": "markdown",
"source": [
"$$\huge{P(y=k)=\\frac{N(y=k)}{\\sum\\limits_{i}N(y=i)}}, $$"
"$$\\huge{P(y=k)=\\frac{N(y=k)}{\\sum\\limits_{i}N(y=i)},} $$"
],
"metadata": {
"id": "TJ-yfnt_3zV4"
Expand All @@ -470,7 +470,7 @@
{
"cell_type": "markdown",
"source": [
"$$\huge{P(x| y=k)=P(x_1, \\dots, x_n|y=k).} $$"
"$$\\huge{P(x| y=k)=P(x_1, \\dots, x_n|y=k).} $$"
],
"metadata": {
"id": "X5BPueRm35N_"
Expand All @@ -488,7 +488,7 @@
{
"cell_type": "markdown",
"source": [
"$$\huge{P(x| y=k)=P(x_1, \\dots, x_n|y=k)=\\prod\\limits_{t=1}^nP(x_t|y=k).} $$"
"$$\\huge{P(x| y=k)=P(x_1, \\dots, x_n|y=k)=\\prod\\limits_{t=1}^nP(x_t|y=k).} $$"
],
"metadata": {
"id": "fAONSfCF4Ac3"
Expand All @@ -497,7 +497,7 @@
{
"cell_type": "markdown",
"source": [
"$$\huge{P(x_i|y=k)=\\frac{N(x_i, y=k)}{\\sum\\limits_{t=1}^{|V|}N(x_t, y=k)},} $$"
"$$\\huge{P(x_i|y=k)=\\frac{N(x_i, y=k)}{\\sum\\limits_{t=1}^{|V|}N(x_t, y=k)},} $$"
],
"metadata": {
"id": "YT_q0PLF4EAh"
Expand Down

0 comments on commit 46d8aeb

Please sign in to comment.