This page explains how spam works, what signs to look for, and lets you test a machine-learning model that classifies emails using TF-IDF + Logistic Regression.
Often includes scams, phishing, fake prizes, or aggressive marketing. Goal: get you to click, pay, or share personal info.
Email text is converted to numeric features via TF-IDF; a trained classifier predicts Spam (0) or Ham (1).
ML models aren’t perfect. Borderline or novel spam may slip through. Combine automated detection with human judgment.
Use /predict
endpoint with JSON body {"message": "your text"}
to classify via API.