Skip to content

Commit cad6c21

Browse files
purandurpurandur
authored andcommitted
Naive Bayes Classification is added
1 parent 195c816 commit cad6c21

File tree

2 files changed

+2
-27
lines changed

2 files changed

+2
-27
lines changed

2.Classification/5.Naive_Bayes Classification/.ipynb_checkpoints/NBClassifier-checkpoint.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"metadata": {},
1313
"source": [
1414
"Naive Bayes classification is based on Bayes Theorem. Formula for Bayes theorem is \n",
15-
"![title](formula.png)\n",
15+
"![image](formula.png)\n",
1616
"\n",
1717
"where \n",
1818
"1. P(Ck/x) is the posterior Probability that a given datapoint will belong to class Ck given the features x.\n",

2.Classification/5.Naive_Bayes Classification/NBClassifier.ipynb

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,39 +12,14 @@
1212
"metadata": {},
1313
"source": [
1414
"Naive Bayes classification is based on Bayes Theorem. Formula for Bayes theorem is \n",
15-
"![title](formula.png)\n",
15+
"![image](formula.png)\n",
1616
"\n",
1717
"where \n",
1818
"1. P(Ck/x) is the posterior Probability that a given datapoint will belong to class Ck given the features x.\n",
1919
"2. P(x/Ck) is the Likelyhood function, that is in simple case where the underlying labels are observed in the training data\n",
2020
"3. P(Ck) is prior probability function, that is out of all data points, how many examples are present which belong to class Ck.\n"
2121
]
2222
},
23-
{
24-
"cell_type": "code",
25-
"execution_count": 18,
26-
"metadata": {},
27-
"outputs": [
28-
{
29-
"data": {
30-
"text/html": [
31-
"<img src=\"formula.png\"/>"
32-
],
33-
"text/plain": [
34-
"<IPython.core.display.Image object>"
35-
]
36-
},
37-
"execution_count": 18,
38-
"metadata": {},
39-
"output_type": "execute_result"
40-
}
41-
],
42-
"source": [
43-
"from IPython.display import Image\n",
44-
"from IPython.core.display import HTML \n",
45-
"Image(url= \"formula.png\")"
46-
]
47-
},
4823
{
4924
"cell_type": "code",
5025
"execution_count": 1,

0 commit comments

Comments
 (0)