This is a simple Machine learning project made using Multilayer Perceptron (Neural Network). It classifies every example email body into either "Ham" or "Spam".
dataset used --> Kaggle-Spam-collection-dataset
- Uses Tokenization
- Porter Stemming
- No Stopwords
- F1 score of 0.98
Make sure you have latest version of python installed. Run this followed commands if using pip:
# Making sure you have latest version of pip
pip3 install --upgrade pip
# Installing jupyter notebook
pip3 install jupyter
If using anaconda installer:
-
Download Anaconda. We recommend downloading Anaconda’s latest Python 3 version (currently Python 3.7).
-
Install the version of Anaconda which you downloaded, following the instructions on the download page.
-
Congratulations, you have installed Jupyter Notebook. To run the notebook:
#run this command:
jupyter notebook
The packages I used to run the code in the book are listed in requirements.txt (Note that some of these exact version numbers may not be available on your platform: you may have to tweak them for your own use). To install the requirements using conda, run the following at the command-line:
#run this command:
$ conda install --file requirements.txt
If you want to say thank you and/or support the active development of SpamClassifier:
- Add a GitHub Star to the project.
- Tweet about the project on your Twitter.
- Write a review mail at tilakraj7050@gmail.com.
- Support the project by donating a cup of coffee.
MIT license Copyright (c) 2022 Tilak raj.