Level 2 · Module 4 · 10 minutes
When the rules are too hard to write
- Recognise a task where writing rules by hand would be impractical.
- Explain what it means for a model to learn patterns from examples.
- Explain why a large amount of one-sided data does not guarantee a useful model.
Some decisions feel easy for a person but are almost impossible to write down as rules. You recognise a damaged parcel at a glance. You notice that a message sounds unlike a friend. You hear a recording and know the speaker is unhappy. If someone asked you to write step-by-step rules that cover every case, you would get stuck, because the variation is too wide and many of the cues are invisible even to you.
Patterns hidden in examples
Machine learning takes a different route. Instead of writing rules, you supply many examples with the answer attached. For damaged parcels, those are photos marked damaged or fine. For unhappy callers, recordings marked calm or upset. The training software searches for patterns that separate the groups and stores them as numbers inside the model. That is why the approach is called learning from examples.
A model trained this way can be useful without ever spelling out a rule you could read. It may notice combinations of colour, shape and texture that people do not consciously describe. That is the strength of the method, and it is also why the model can fail in ways that are hard to explain.
When machine learning fits
- The task repeats often enough to be worth automating.
- Past examples exist that show what good and bad look like.
- The pattern is stable enough that older examples still describe new cases.
- Some error is acceptable, or a person checks the output.
If a shop only handles a few returns each month, a short written rule may be cheaper than collecting photos and training. Machine learning is not automatically the better choice.
More examples is not always better
Examples teach the model what to imitate. If every damaged parcel photo was taken in the same warehouse under the same light, the model may learn that lamp as a sign of damage. Thousands of near-identical examples do not fix that. A varied, honest set does. The phrase more data hides a harder question: more of which data?
Real training or a rehearsal?
Sorting labelled photos into piles on a desk is a rehearsal of the idea. It teaches the logic of learning from examples, but no numbers are adjusted and nothing is stored. Real training needs software that compares predictions with the answers again and again and shifts internal values each time. The output of that process is a model file. A person sorting cards produces a finished pile, not a model.
Common misconception
If you collect enough data, a machine learning model will figure out any task. The examples decide what can be learned. If the data is one-sided, mislabelled or unrelated to the decision, more of it makes the model more confident about the wrong things. What matters is relevance and variety, not just volume.
Guided practice
Choose three tasks from a workplace or home: one that a fixed rule could handle, one that would need examples because the variations are too hard to list, and one you are unsure about. Write one sentence for each explaining the reason. For the uncertain task, list what you would inspect in the data before deciding. Keep this on paper; it is a reasoning exercise, not model training.
Knowledge check
Independent practice
Write a short example from your own work or daily life and decide whether it is AI, ordinary software or a mixture. Then explain why. Save it in your notes; no account is required.
Last reviewed: · Report a problem