Skip to content

mdamalie/Spam-Detection-Using-Logistic-Regression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Spam Detection Using Logistic Regression

This project builds a spam detection model using Logistic Regression to classify text messages as spam or ham. The workflow includes data cleaning, text preprocessing, TF-IDF feature extraction, model training, and evaluation using standard machine learning metrics.


πŸ“Œ Project Summary

  • Uses a labeled SMS dataset (spam.csv)
  • Converts text into numerical vectors using TF-IDF
  • Trains a Logistic Regression classifier with scikit-learn
  • Evaluates performance using accuracy and classification metrics
  • Fully implemented in a Jupyter Notebook

βš™οΈ Technologies Used

  • Python
  • Pandas
  • NumPy
  • Scikit-learn
  • Jupyter Notebook

πŸ“ Dataset

The dataset spam.csv contains two main columns:

  • text β€” message content
  • label β€” spam or ham

Ensure spam.csv is located in the project folder.


πŸš€ How to Run

Install dependencies:

pip install scikit-learn pandas numpy

About

This project builds a spam detection model using Logistic Regression to classify text messages as spam or ham

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published