A beginner-friendly machine learning project that classifies text messages as spam or not spam using a Naive Bayes classifier.
- 99.2% accuracy on test data
- Trained on the SMS Spam Collection Dataset
- Used
CountVectorizerto convert text to numeric features - Trained using
Multinomial Naive Bayes(a classic for spam detection) - Evaluated with precision, recall, F1-score, and confusion matrix
- Python 3.x
- Pandas
- Scikit-learn
- Matplotlib
- Seaborn
- Clone the repo
git clone https://github.com/ogetynarendra/spam-classifier.git cd spam-classifier