Introduction to Machine Learning with Python: A Guide for Beginners in Data Science by Daniel Nedal & Peters Morgan

Introduction to Machine Learning with Python: A Guide for Beginners in Data Science by Daniel Nedal & Peters Morgan

Author:Daniel Nedal & Peters Morgan [Nedal, Daniel]
Language: eng
Format: epub
Publisher: AI Sciences LLC
Published: 2018-07-25T23:00:00+00:00


How to Build a Basic Model Using Naive Bayes in Python

For our hands on example we would build a Naive Bayes model in Python to tackle a spam classification problem. We would use the SMS spam collection dataset which is a set of 5,574 English text messages annotated to indicate the category. There are two categories - ham or legitimate messages and spam. The dataset can be downloaded from the following URL (https://www.kaggle.com/uciml/sms-spam-collection-dataset/downloads/spam.csv/1).

We would use the multinomial Naive Bayes classifier from Scikit-Learn machine learning library. As always, we begin by importing the libraries we would utilize.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.