By Team Edtoolkits · AI learning
Contrast a keyword rule and a tiny learned classifier without changing the evaluation examples mid-comparison.
Use the guide alongside the working tool.
Open Rules vs Learning: How Machines Find Their Own Rules →Explore the lesson
Watch a rule box and a learning box sort the same emails.
Write your own spam rule and slide how many examples the learner sees.
Flip the memory card and answer the quick check.
A comparison to try
Use the same invented email test set for both approaches. Inspect a spam message whose wording differs from the keyword rule, then compare the learner trained on the available examples.
Read the result
A written rule succeeds when its condition matches; a learned rule depends on evidence in its training slice. Read which messages are wrong as well as the total correct count, especially false positives on legitimate mail.
A mistake to avoid
The twelve messages and word-count learner illustrate the distinction rather than evaluating a production spam filter. The accuracy helper counts correct examples. No real inbox is inspected, and success on these messages cannot establish reliable filtering elsewhere.
Teaching model and privacy
The learner is a tiny word-counting teaching model trained on twelve made-up emails. Real spam filters use far more data and cleverer methods. Everything runs in your browser.
Ready to apply this workflow?
Try Rules vs Learning: How Machines Find Their Own Rules →Explore a related workflow
- Choose a course entry point and verify saved progress
Use prior knowledge to select a starting chapter while distinguishing local progress from an account or a qualification.
- AI Tokens: Inspect Pieces, Spaces and Stable Teaching IDs
Compare common words, rare words and numbers without using the playground as an exact provider counter.
- Inspect candidates before continuing text
Compare normalized next-word probabilities with the choices sampled from them.
- Choose complexity using held-out error
Compare training and test curves before calling a detailed fit an improvement.
Found unclear instructions or an unexpected result? Contact Team Edtoolkits.