What Is Machine Learning?
From hand-written rules to learning patterns from examples. The paradigm shift that makes AI possible.
For decades, programming meant writing explicit instructions. If you wanted to detect a cat in a photo, you had to write a rule for every pixel, ear shape, and shadow. It failed because the real world is too messy for if/else statements.
The paradigm shift
Machine learning flips the approach. Instead of giving the computer the rules, you give it the answers (labels, ) and the data (inputs, ). The algorithm finds the rules that map to automatically.
Three ways to learn
Supervised learning gets explicit answers. Unsupervised learning just gets raw data and has to find the hidden structure itself. Reinforcement learning learns by interacting with an environment and collecting rewards or penalties over time.
The true test
Memorising the training data is useless. The entire point of training a model is for it to handle new, unseen data. This ability to apply learned patterns to fresh inputs is called generalisation.
Where It Breaks
A model is only as good as its training data. If the data it encounters in production has shifted or contains unexpected edge cases, the model will fail silently and confidently.
The Quick Version
- Traditional programming writes the rules; ML learns them.
- You provide the inputs and outputs; the algorithm finds the mapping.
- Supervised, unsupervised, and reinforcement are the three main paradigms.
- The goal is generalisation to unseen data, not memorisation.
- Distribution shifts and bad training data will break the model.