Simple spam email classifier was implemented by logistic regression, neural network and svm.
-
install python virtual enviroment
pip install virtualenv virtualenv venv cd venv source ./bin/activate
-
install requirements.txt library
pip install -r requirements.txt
-
preprocess the email corpus
-
generate email dictionary and tfidf model for tfidf weights
-
train the models
-
evaluate the models
-
predict whether the email is spam or not