Skip to content

Spam Classifier using Logistic Regression and TF-IDF .

Notifications You must be signed in to change notification settings

OmarDawoud4/logistic

Repository files navigation

Spam Classifier

A simple machine learning web app that classifies SMS messages as Spam or Ham using Logistic Regression & TF-IDF. Built with Python, Flask, and Scikit-Learn.


📓 Google Colab Notebook

This repository contains a Google Colab notebook that you can open and run directly in your browser.

Open in Colab


🌐 Live Demo

🚀 Hosted at: spam-classifier You can access and interact with the spam clssifier modules directly through the hosted web interface.


Features

  • Text preprocessing & TF-IDF vectorization
  • Logistic Regression for classification
  • Flask web app for user interaction

Project Structure

sms-spam-classifier
│── static/
│── templates/
│── SMSSpamCollection │── spam_model.pkl
│── tfidf_vectorizer.pkl │── train_model.py
│── app.py


1️⃣ Clone the Repository

git clone https://github.com/OmarDawoud4/Logistic.git
cd Logistic

Train The Model

python train_model.py
python train_spam_models.py

Run the Flask App

python app.py

The app will start running at local host


👨‍💻 Contributors


Omar Dawood

ML Developer

AbdAlRahman Hesham

Backend Developer

Ahmed Sanad

Backend Developer

Abdallah

Frontend Developer

Ahmad Asal

Ali Abd Al Rehem

Backend Developer

Omar Wagih

Frontend Developer

About

Spam Classifier using Logistic Regression and TF-IDF .

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •