96.5% Accurate Spam Filter, and the 58 Spam Messages It Let Through
My spam classifier scores 96.5% accuracy on the test set. That sounds great. The confusion matrix tells a more useful story. The setup The dataset is mail_data.csv , with 5,572 messages: 4,825 ham (86.6%) and 747 spam (13.4%), no missing values. I mapped labels to 0 (spam) and 1 (ham), split 70/30…
Read the full story at DEV Community — Machine Learning ↗
Timeline · 1 report
- 2026-10-09 04:00 · DEV Community — Machine Learning
96.5% Accurate Spam Filter, and the 58 Spam Messages It Let Through