Exp 4
Exp 4
Theory:
Program:
import numpy as np
from sklearn.naive_bayes import GaussianNB
Output:
Conclusion:
In conclusion, the experiment involving the Naive Bayes classifier demonstrated its
effectiveness in classifying data based on probabilistic assumptions and independence
assumptions between features. The classifier showed promising performance in terms
of speed and efficiency, making it a viable choice for text classification, spam
filtering, and other similar applications.