-
Notifications
You must be signed in to change notification settings - Fork 1
Naïve Bayes
Naive Bayes methods are a set of supervised learning algorithms based on applying Bayes’ theorem with the “naive” assumption of conditional independence between every pair of features given the value of the class variable.
Assumptions,
- Independence among features
$x_i$ when class is given - The features
$x_i$ make an equal contribution to the probability of the class $P(x_1,x_2,...,x_n|y)=P(x_1|y)\times P(x_2|y)... \times P(x_n|y)$ - Can estimate
$P(x_i|y_j)$ for all$x_i$ and$y_j$
where
Posterior probability
A drugs dataset (Kaggle) was used with the columns as,
- Age
- Sex
- BP
- Cholesterol
- Na_to_K
- Drug class (y – dependent variable)
The dataset can be used to classify which person is on which drug. There are 5 classes of drugs – drugY, drugC, drugX, drugA, drugB.
-
To learn more about Artificial Intelligence concepts, see Artificial Intelligence, Machine Learning, and Deep Learning..
-
Learn ML with Google Machine Learning Crash Course.
- Home
-
Machine Learning
- Supervised Learning
- Unsupervised Learning
- Deep Learning
- Recommender Systems