Lab2 - Bayes Classification
Lab2 - Bayes Classification
Working of Naïve Bayes' Classifier can be understood with the help of the below example:
Suppose we have a dataset of weather conditions and corresponding target variable "Play". So
using this dataset we need to decide that whether we should play or not on a particular day
according to the weather conditions. So to solve this problem, we need to follow the below
steps:
Code in Python:
Result: This model is giving an accuracy of 90% .
------------------------------x--------------------------------------------x---------------