vaibhavmagon / Python-Spam-Ham-SMS

The easiest way to classify SMS data (Spam/Ham) using python. 📟
14 stars 7 forks source link
classification hacktoberfest hacktoberfest-accepted hacktoberfest2021 machine-learning naive-bayes-classifier python spam-filtering

Python Spam Ham SMS Bifurcation Script 📟

The code contains step by step process to classify a set of over 5,000 SMS using python in Naive Bayes Classification Algorithm.

More on Naive Bayes: https://machinelearningmastery.com/naive-bayes-classifier-scratch-python/

To Run

python spam.py

Data

Data folder containes the spam-ham.csv file with data.

Apart from this it contains a split of 2 different files to train on test data and then run on real data (production):
1. spam-sms.py (to train)
2. spam-real.py (to run in production)

ROC Curve for current Data

screen shot 2018-09-08 at 11 59 27 am

Prerequisits

Contributers