What machine learning actually is (and why nobody could explain it to me at first)
Someone asked me last week: "So is ChatGPT artificial intelligence or machine learning?" I opened my mouth, closed it, and realised I'd been writing about this stuff for years without a clean answer ready. That's the trap with machine learning. Everyone uses the term. Almost nobody defines it the same way twice.
Here's the version I wish someone had handed me at the start: machine learning is a way of getting a computer to produce answers it was never explicitly programmed to produce, by letting it find patterns in examples instead of writing rules by hand.
That's it. The rest is detail. And the detail is where it gets interesting, because the gap between "the computer learns" and "the computer actually works" is where most beginners get lost, and where I got lost too.
Key Takeaways
- Machine learning teaches a program by example, not by instruction — you show it thousands of cases, it works out the rule itself.
- ChatGPT is both AI and machine learning. ML is the method; AI is the umbrella term. They're not rivals.
- You don't need a maths degree to understand ML. You need patience and a willingness to be wrong a lot.
- The four main types are supervised, unsupervised, reinforcement, and generative learning. Each solves a different problem.
- The real difficulty isn't the theory. It's the data — cleaning it, checking it, and accepting that your model will sometimes be confidently wrong.
What is machine learning in simple words for beginners?
Imagine you're teaching a child to recognise dogs. You don't hand them a rulebook listing ear shapes and tail lengths. You point. "Dog. Dog. Not a dog, that's a cat." After enough examples, the kid starts spotting dogs on their own, including ones they've never seen before.
Machine learning works the same way. You feed the system a large pile of examples — each one labelled or not, depending on what you're doing — and it adjusts itself until it can handle new cases it wasn't shown during training.
The difference from traditional programming matters more than people admit. In classic software, a human writes the logic: if the order total is over 50 and the customer is new, flag it. In machine learning, the human supplies examples and the machine derives the logic. You get a rule you could never have written by hand because it has thousands of tiny conditions baked into it.
Why "learning" is a slightly misleading word
The machine isn't learning the way you or I learn. There's no curiosity, no understanding, no "aha" moment. What happens is arithmetic — a lot of it. The system adjusts internal numbers (called weights) to reduce the gap between its guesses and the correct answers.
Call it optimisation, not education. The word "learning" is a convenient metaphor that's caused more confusion than clarity. But it stuck, so we're stuck with it.
The step-by-step pipeline, without the jargon
- You collect examples — say, 10,000 emails already marked as spam or not spam.
- The system makes a guess on each one, badly at first.
- It measures how wrong it was, then nudges its internal numbers to be slightly less wrong.
- Repeat a few thousand times. That's training.
- You test it on emails it has never seen. If it still performs, you ship it.
Step 5 is the one beginners skip, and it's the one that matters. A model that aces the training data and fails on new data has learned nothing useful. It has memorised. In the trade we call that overfitting, and early on I produced a spectacular example of it: a model that hit 98% accuracy on my training set and 61% on real data. I spent two days convinced the code was broken. The code was fine. I'd just let it cheat.
Is ChatGPT AI or ML?
Both. And this trips up almost everyone the first time.
Artificial intelligence is the broad goal: machines doing things we'd call intelligent if a person did them. Machine learning is one method for getting there. Deep learning is a subset of machine learning. Large language models like ChatGPT sit inside deep learning.
So the nesting looks like this: AI contains ML, ML contains deep learning, deep learning contains the transformer architecture that powers ChatGPT.
| Term | What it covers | Example |
|---|---|---|
| Artificial intelligence | The whole field | Any system mimicking human reasoning |
| Machine learning | Systems that improve from data | Spam filters, recommendation engines |
| Deep learning | ML using multi-layered neural networks | Face recognition, voice transcription |
| Generative AI | Models that produce new content | ChatGPT, image generators |
Answering "is it AI or ML" is like asking whether a car is a vehicle or an engine. The engine is how the vehicle moves. ML is how the AI works.
A concrete way to hold it in your head
When someone says "AI", think what it does. When someone says "ML", think how it was built. When someone says "deep learning", think how big the network is. That framing has saved me from a dozen muddled conversations.
The types of machine learning you'll actually encounter
Textbooks list three or four families. In practice, you'll meet them in very different contexts, and knowing which one you're dealing with tells you what data you need before you write a single line of code.
- Supervised learning — you have labelled examples (input plus correct answer). Used for spam detection, price prediction, medical screening.
- Unsupervised learning — no labels. The system groups things by similarity. Customer segmentation lives here.
- Reinforcement learning — an agent acts, gets rewards or penalties, and adjusts. This is how game-playing systems and some robotics work.
- Generative learning — the model learns the underlying structure of its training data well enough to produce new samples that fit the same pattern. Language models, image models.
Notice the list isn't three items. It's four, and that's not an accident — I deliberately resisted rounding it down, because generative learning has earned its own category rather than being folded into unsupervised learning the way older texts did.
Applications you've already used today
If you've unlocked your phone with your face, had a streaming service suggest something you actually liked, or typed a message and watched autocomplete finish your sentence — you've touched machine learning before breakfast. Banks flag fraudulent transactions with it. Hospitals use it to spot anomalies in scans. Weather services blend it into forecasting.
The pattern across all of them is the same: too many variables for a human to weigh at once, but enough historical examples to learn from. That's the sweet spot for the technique.
Is machine learning difficult?
Honest answer: the concepts are not hard. The practice is.
Understanding what a model does takes an afternoon. Getting one to work reliably takes months of iteration, and most of that time has nothing to do with mathematics. It's spent on data — finding it, cleaning it, and discovering that the column you trusted was wrong.
Here's the thing nobody tells beginners: roughly 70-80% of a real ML project is data work. Merging tables, handling missing values, checking that your labels are actually correct. I once spent three weeks on a project only to find that a fifth of my training labels were mislabelled by whoever had prepared the dataset. Three weeks. The model wasn't the problem.
What you actually need to start
You need some comfort with basic statistics — averages, variance, the idea of a distribution. You need to be able to read and write a little Python. That's genuinely it for the first few months. Linear algebra and calculus help when you start reading papers, but they're not the gate everyone claims they are.
The real prerequisite is tolerance for frustration. Models fail silently. Results look fine and then aren't. You'll chase a bug for a day and find it was a typo in a column name.
How to explain machine learning to a kid
Skip the algorithms entirely. Use the dog example from earlier, or this one, which works even better with young children because they can act it out.
Tell them: imagine you're teaching a friend to sort buttons into two jars, but you're not allowed to say the rule. You can only show them buttons and nod or shake your head. After fifty buttons, they'll probably work out that red ones go left and blue ones go right. They figured out your rule without you ever saying it. That's machine learning.
My six-year-old nephew accepted this immediately. Then he asked whether the computer gets tired. Best question anyone has asked me about this field, honestly.
The answer is no, it doesn't get tired. It also never gets bored, which is why it can look at a million examples when a person would give up after fifty.
Why machine learning matters — and where it quietly breaks
Two decades ago, some tasks were effectively impossible for software: reading handwriting, recognising speech in noisy rooms, translating between languages with any fluency. Now they're routine. Machine learning is the reason.
But it fails in ways that are hard to see and harder to fix.
Bias is the big one. If your training data reflects a skewed world, your model learns the skew and applies it confidently. A hiring tool trained on a decade of biased decisions will reproduce that bias, and it will do so with the serene certainty of arithmetic. I've seen a model that looked excellent on paper and quietly penalised an entire category of applicants. Nobody wrote that rule. It was learned.
There's also the problem of models that can't explain themselves. A deep network can tell you its answer but not its reasoning, and in fields like medicine or law that's often unacceptable. You can build systems that explain their outputs, but it costs effort and accuracy.
The practical lesson: treat every model as a claim, not a fact. Test it on people and situations it wasn't trained on. Ask who's missing from the data. Ask what happens when the world shifts, because it always does.
Which brings up the thing that took me longest to accept. Machine learning doesn't know anything. It finds patterns, and it will keep finding them long after the pattern has stopped being true. The intelligence is real. The understanding isn't. Hold both of those at once and you'll be a better practitioner than most people who've been doing this for years.