Skip to content

Commit ae48c95

Browse files
Update Naive-Bayes.md for equation rendering
1 parent f1985ba commit ae48c95

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/Machine Learning/Naive Bayes classifier/Naive-Bayes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ Where:
3232

3333
The Naive Bayes classifier extends this to classify data points into categories. It assumes that the presence of a particular feature in a class is unrelated to the presence of any other feature (the "naive" assumption).
3434

35-
For a data point $X = (x_1, x_2, ..., x_n)$ and a class variable $C$:
35+
For a data point $X = (x_1, x_2, ..., x_n)$ and a class variable $$:
3636

3737
$$ P(C|X) = \frac{P(X|C) \cdot P(C)}{P(X)} $$
3838

3939
The classifier chooses the class with the highest posterior probability:
4040

41-
$$ C^* = \underset{c \in C}{\operatorname{argmax}} P(X|c) \cdot P(c) $$
41+
$$ C^* = \underset{c \in C}{argmax} P(X|c) \cdot P(c) $$
4242

4343
### Mathematical Formulation
4444

@@ -93,4 +93,4 @@ print(f"Accuracy: {accuracy:.2f}")
9393
- Real-time Prediction.
9494
- Multi-class Prediction.
9595
- Text classification/ Spam Filtering/ Sentiment Analysis.
96-
- Recommendation Systems.
96+
- Recommendation Systems.

0 commit comments

Comments
 (0)