An open API service indexing awesome lists of open source software.

https://github.com/blinksta1ker/spam-mail-classification

Supervised ML model using Logistic Regression model to classify an email as Ham or Spam
https://github.com/blinksta1ker/spam-mail-classification

jupyter-notebook logistic-regression machine-learning numpy pandas python sklearn supervised-machine-learning

Last synced: about 2 months ago
JSON representation

Supervised ML model using Logistic Regression model to classify an email as Ham or Spam

Awesome Lists containing this project

README

          

# Spam-Mail-Classification

This project is a machine learning-based spam email detection system. It uses a logistic regression model to classify emails as either "spam" or "ham" (legitimate). The system is implemented in Python and leverages natural language processing (NLP) techniques to transform email text into feature vectors.

## Features
- Preprocesses email data to handle missing values.
- Encodes target labels for classification.
- Extracts features using **TF-IDF Vectorizer**.
- Trains a logistic regression model for classification.
- Evaluates the model's performance on training and test data.
- Allows for input-based email classification.

## Technologies Used
- Python
- Pandas for data manipulation
- Scikit-learn for machine learning and NLP
- TF-IDF Vectorizer for feature extraction