Chapter 0 · Start here
Rules vs learning
Classic programs follow rules people write; machine learning finds the rules from examples.
Chapter 0 · Start here
Classic programs follow rules people write; machine learning finds the rules from examples.
if “free” → spamSpam ✓The rule box does exactly what a person wrote, and nothing more. The learning box was shown examples and worked out its own rules, so it can handle emails nobody planned for.
A programmer thinks of every case and writes it down: if the email says “free”, call it spam. It is exact and easy to check, but it only knows what you thought of.
Both try ten tricky emails they have never seen. Add keywords to your rule, and change how many examples the learner studies. This is a tiny teaching learner.
What the learner found spammy:
Who writes the rules in a classic program?
What does a machine learning system start from?
Your spam rule only looks for the word 'free'. What is its weakness?