AI from Zero · Lesson 2 of 6

How AI learns

The single most important idea in modern AI, with zero maths: how a computer gets smart by seeing examples instead of being told the rules.

Beginner10 minute read

Old-fashioned software follows rules a human wrote. But how do you write a rule for "is this a cat?" You cannot, not really. There are too many cats, too many angles, too many exceptions. So modern AI does something cleverer: instead of being told the rules, it is shown thousands of examples and works out the pattern for itself. That process is called machine learning, and it is the engine behind almost every AI you have heard of.

Rules vs examples

Picture teaching a child what a dog is. You do not hand them a rulebook ("four legs, fur, wet nose, barks"). You point at dogs. "That's a dog. That's a dog too. That one's a cat." After enough examples, they just get it, even for breeds they have never seen.

Machine learning works the same way. You feed the computer a big pile of labelled examples, the training data, and it gradually adjusts itself until it can label new ones correctly. Nobody ever writes the rule for "dog". The machine discovers it from the examples.

The whole idea in one line
Traditional software: a human writes the rules. Machine learning: the computer works out the rules from examples. That flip is what makes modern AI possible.

What is "a model"?

You will hear the word model constantly. It just means the thing that comes out of training: the pattern the computer learned, saved so it can be used on new data. Training a model is the learning phase; using the model to make a prediction is called inference. When people say "an AI model", they mean this learned pattern, nothing more mysterious.

Three ways to learn

There are three broad styles of machine learning. You do not need the details yet, just the flavour of each.

Supervised learning
Learn from labelled examples. Show it thousands of photos tagged "cat" or "dog", and it learns to tell them apart. This is the most common kind.
Unsupervised learning
Find patterns in data with no labels at all, like sorting customers into natural groups nobody defined in advance.
Reinforcement learning
Learn by trial and error with rewards, the way you might train a dog with treats. This is how AI masters games.

Try it: more examples, smarter machine

The single biggest factor in how well an AI learns is how much good data it sees. Drag the slider to give a model more training examples and watch how accurate it gets.

Interactive

Watch it learn

More examples means a smarter model, but notice the gains get smaller near the top.
60
Model accuracy
50%
With no examples, the model may as well flip a coin: 50 percent.
Two lessons hide here: with too little data an AI is barely better than guessing, and past a point, extra data helps less and less.
Rubbish in, rubbish out
A model is only as good as its examples. If the training data is biased, incomplete, or wrong, the model learns those flaws faithfully. This is why so many real AI problems are really data problems.
Scroll to Top