Skip to content

About

An implements of a spam email classifier using Support Vector Machines (SVM) with a Bag of Words model. Also submitted to Kaggle (see Kaggle/eladmoshe98)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Email Spam Classifier – SVM

A spam/ham email classifier built with Support Vector Machines (SVM) and a Bag of Words text representation. Also submitted to Kaggle — see eladmoshe98.

Approach

  • Text preprocessing: tokenization, stop-word removal, stemming
  • Feature extraction: Bag of Words (CountVectorizer / TF-IDF)
  • Primary classifier: SVM (linear kernel)
  • Comparison classifiers: Naive Bayes, Logistic Regression, Random Forest

Running

pip install scikit-learn pandas numpy jupyter
jupyter notebook spam_classifier.ipynb

Tech Stack

Python · scikit-learn · pandas · NLTK

About

An implements of a spam email classifier using Support Vector Machines (SVM) with a Bag of Words model. Also submitted to Kaggle (see Kaggle/eladmoshe98)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages