Machine Learning Tutorial Python - 15: Naive Bayes Classifier Algorithm Part 2

preview_player
Показать описание
In this python machine learning tutorial for beginners we will build email spam classifier using naive bayes algorithm. We will use sklearn CountVectorizer to convert email text into a matrix of numbers and then use sklearn MultinomialNB classifier to train our model. The model score
with this approach comes out to be very high (around 98%). Sklearn pipeline allows us to handle pre processing transformations easily with its convenient api. In the end there is an exercise where you need to classify sklearn wine dataset using naive bayes.

#MachineLearning #PythonMachineLearning #MachineLearningTutorial #Python #PythonTutorial #PythonTraining #MachineLearningCource #NaiveBayes #sklearntutorials #scikitlearntutorials

Topics that are covered in this Video:

00:00 explore spam email dataset
02:33 sklearn CountVectorizer
04:30 types of naive bayes classifiers
05:23 sklearn MultinomialNB classifier
06:48 sklearn pipeline
09:35 Exercise

Next Video:

Populor Playlist:

Tools and Libraries:
Scikit learn tutorials
Sklearn tutorials
Machine learning with scikit learn tutorials
Machine learning with sklearn tutorials

Рекомендации по теме
Комментарии
Автор

Sir You are amazing, an experience of 25 years is really brilliant, Thanks for Guiding us

vishalgupta
Автор

Excellent channel to start learning the ML concepts...Way better than almost all the paid courses out their

r
Автор

Thanks a lot for this playlist of such amazing tutorials.
at test_size=0.2, GaussianNB: 97.2% and MultinonialNB: 77.3%

kamalsingh
Автор

Solved the exercise, got these answers:
Using Gaussian : 1.0
Using Multinominal : 0.889

anujvyas
Автор

The Guassian model is more accurate. As mentioned in the video, the Gussian model is more accurate for cases where the features have continuous values, which is the case for the Wine dataset.

moeintorabi
Автор

i can just say that you are a perfect teacher, Thank you very much. This is a best channel to learn all about datascience!!!

bechirmariam
Автор

I got
100% accuracy with Gaussian NB
96% accuracy with Multinomial NB


Thanks for explaining in a very easy and convenient way :)

Yash
Автор

it is the most practical and easiest to understand series for begineers

OmkarShelke-wj
Автор

For comparing the models I used Cross Validation (CV = 4) as you explained in the previous videos.
Average Gaussian Score =
Average Multinomial score =

moeintorabi
Автор

GaussianNaiveBayes 0.972/ MultinomialNaiveBayes 0.94. MinMaxScaler train dataset. This series of tutorials are strongly recommended. Help me a lot

tsai
Автор

I think you might be the most valuable resource online for ML beginners.

Gaussian: 100%
Multinomial: 86.1%

austinwhite
Автор

Thank you for this wonderful tutorial
Exercise scores
GaussianNB score - 94.5%
MultinomialNB score - 84.5%

gajanantayde
Автор

outstanding video series! greetings from Turkey, I learn too much from this channel. It's now my primary go-to resource to learn machine learning from scratch

mehmetyigitakn
Автор

All your ML videos are wonderful. Good job. Difficult things explained easily. Thanks

navneetkaurpopli
Автор

Gaussian: 1.0
Multinomial: 0.833
Keep up the good work you're doing

larrybuluma
Автор

Thanks a lot for the tuto. Your series is best because it contains the exercises.
My exercise result: GaussianNB = 0.96, MultinomialNB = 0.84. I also applied cross validation =5

userhandle-ub
Автор

I don't know why some people have disliked this video. How beautifully he is explaining the M.L algorithms.

premnathmagi
Автор

My scores are : Multinomial NB = 0.84, Gaussian NB = 0.97. Thank you so much for these videos :)

TheNobody
Автор

Amazing tutorial, you teach far better than university professors. Following many of your playlist thoroughly !!! Thank you very much

charmindesai
Автор

Exercise answer:
Gaussian : 1.0
MultinomialNB : 0.889

Sir u use random state in your solution.Thank you sir i learned something new

piyushjha