Skip to content

Repository files navigation

📧 Machine Learning Email / SMS Spam Detection

A simple Machine Learning project that detects spam vs ham (not spam) messages using text classification techniques in Python with scikit-learn.

This project demonstrates a complete ML pipeline including data loading, text preprocessing, feature extraction, model training, and prediction.


🚀 Features

  • Spam detection using Naive Bayes
  • Text vectorization using TF-IDF
  • Supports SMS / Email-style text
  • Beginner-friendly implementation
  • Fast and lightweight execution

🧠 Machine Learning Workflow

  1. Load the SMS Spam dataset
  2. Preprocess and clean text
  3. Convert text into numerical features (TF-IDF)
  4. Train a classification model
  5. Predict spam or ham messages

📂 Project Structure

MACHINE-LEARNING-EMAIL-SPAM-DETECTION/
│
├── spam_detector.py          # Main Python script for training & prediction
├── sample_sms.csv            # Sample SMS dataset
├── SMSSpamCollection         # Full SMS Spam Collection dataset
├── smsspamcollection.zip     # Zipped version of dataset
├── requirements.txt          # Project dependencies
├── run.log                   # Program execution logs
├── README.md                 # Project documentation

About

A machine learning project that detects spam emails using text classification techniques in Python.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages