Downloads · 30 days
0
kaushik-harsh-99/Spam-Detection-Model
Spam-Detection-Model is a machine learning model from kaushik-harsh-99. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This project implements a complete spam detection pipeline using multiple machine learning approaches, progressing from classical models to deep learning and finally to a compressed model using knowledge distillation.
Downloads · 30 days
0
Access
Public
Updated Apr 22, 2026
Repo size
315 MB
Likes
2
Public
Click a slice to open those files.
.pt192 MB · 100%
From the Hugging Face model README
This project implements a complete spam detection pipeline using multiple machine learning approaches, progressing from classical models to deep learning and finally to a compressed model using knowledge distillation.
The system performs multi-class classification, where each email is categorized into one of three classes:
It focuses on achieving high accuracy while also optimizing model size and efficiency for deployment.
These models serve as strong baselines for text classification.
This model achieves the highest performance and captures complex patterns in text.
Smaller model trained to mimic the teacher
Reduced vocabulary (~20k) and embedding size (128d)
Uses both:
This allows significant model compression while maintaining high accuracy.
| Model | Test Accuracy | Notes |
|---|---|---|
| Logistic Regression | ~95.3% | TF-IDF baseline |
| SVM | ~95.4% | Improved margin-based classifier |
| Neural Network (Teacher) | ~98.38% | High-capacity model |
| Distilled Model (Student) | ~98.12% | Lightweight + efficient |
| Model | Parameters | Purpose |
|---|---|---|
| Teacher | ~80M | Maximum accuracy |
| Student | ~2M | Fast + deployable |
The distilled model achieves near-teacher performance with a fraction of the size.