SPAM or HAM classification using Logistic regression on SMS data
sudo pip install -r requirements.txt
Once dependencies are installed, just run this to see it in your terminal.
cd src/
python test.py
That's it! If you performed everything correctly you will see the following.
sample instances:
0 1
0 ham Go until jurong point, crazy.. Available only ...
1 ham Ok lar... Joking wif u oni...
2 spam Free entry in 2 a wkly comp to win FA Cup fina...
3 ham U dun say so early hor... U c already then say...
4 ham Nah I don't think he goes to usf, he lives aro...
Accuracy on test data:
Accuracy: 0.966259870782
Cross Validation Accuracy:
Accuracy: 0.90 (+/- 0.02)