Ch 10 · Mini-Project — A Spam Classifier · Machine Learning & AI

Topic 10 of 13 in Machine Learning & AI — Foundations — 2 lessons.

Learn From Examples

Train on labelled messages by counting which words lean spammy, then score new messages — the same idea behind early email filters.

The Real-World Version

In production you would not hand-count words — you would vectorise text and fit a model. And you can run it right here: scikit-learn is live in the playground.

All topics in Machine Learning & AI Beginner

  1. What Is Machine Learning?
  2. Data — Features, Labels & Splitting
  3. Linear Regression — Fitting a Line
  4. How Models Learn — Gradient Descent
  5. Classification — Predicting Categories
  6. Decision Trees
  7. Evaluating a Model Honestly
  8. Overfitting & the Bias-Variance Tradeoff
  9. The ML Workflow
  10. Mini-Project — A Spam Classifier
  11. Clustering — Finding Groups Without Labels
  12. Your First Real scikit-learn Model
  13. Words as Numbers — A Taste of NLP