Skip to content

Latest commit

Β 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“§ Spam Mail Prediction using Machine Learning

A simple yet powerful machine learning project to classify emails as Spam or Not Spam based on their content.


πŸ“Œ Project Overview

This project demonstrates the use of Natural Language Processing (NLP) and Machine Learning to detect spam messages. It transforms text data into numeric vectors and applies ML models for classification.


πŸ—‚οΈ Dataset


βš™οΈ Tech Stack

  • Python
  • Pandas, NumPy
  • Scikit-learn
  • NLTK (Natural Language Toolkit)
  • Jupyter Notebook / Google Colab

🧠 ML Models Used

  • Naive Bayes Classifier
  • Support Vector Machine (SVM)
  • Logistic Regression
  • Decision Tree
  • Random Forest

πŸ§ͺ NLP Techniques

  • Tokenization
  • Stopword Removal
  • Lemmatization
  • TF-IDF Vectorization

πŸ“Š Evaluation Metrics

  • Accuracy
  • Precision
  • Recall
  • F1-Score
  • Confusion Matrix

▢️ How to Run

git clone https://github.com/saheli56/Spam-Mail-Prediction-using-Machine-Learning.git
cd Spam-Mail-Prediction-using-Machine-Learning
Open the .ipynb file in Jupyter Notebook or Google Colab
Run all the cells sequentially

βœ… Key Features

  • Cleaned and preprocessed text data
  • Built and evaluated multiple ML models
  • Visualized confusion matrix and performance metrics
  • Identified most effective model for spam classification

About

Spam detection model using Logistic Regression & TF-IDF. The notebook preprocesses email data, extracts features, trains a model, evaluates accuracy, and provides a predictive system. Ideal for learning basic NLP and machine learning for text classification.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages