Technology
Machine learning: what it is and how a machine learns
The Recap 30 seconds
Machine learning is the branch of artificial intelligence in which a piece of software, called a model, learns from data instead of following hand-written rules. Show it thousands of examples and it finds the patterns linking question and answer on its own: that's how it spots spam, recommends films, estimates prices. It's the technology behind almost all the AI you use daily.
Key Points
- Classic programming: you write the rules. Machine learning: you show examples and the model finds the rules.
- The model is the trained software; training data is its set of study examples.
- Supervised learning: examples with the right answer attached (like studying from old solved exams).
- Unsupervised learning: the model discovers groups and structure in unlabeled data by itself.
- Reinforcement learning: learning by trial and error, with rewards and penalties.
- The term was born in 1959 with Arthur Samuel and his checkers-playing program.
Key figures
- 1959 the year Arthur Samuel coined 'machine learning' in IBM's research journal Source: IBM Journal of Research and Development
- 4 the families of ML systems in Google's framing: supervised, unsupervised, reinforcement, generative Source: Google, Machine Learning Crash Course
Deep Dive
The reversal: examples instead of rules
For decades, programming meant one thing: writing rules. If the email contains this word, flag it as spam; if the customer spends above this amount, apply the discount. It works as long as the rules can be written. But try writing the rules for recognizing a cat in a photo: pointy ears? So do foxes. Fur? Not sphynx cats. You give up fast.
Machine learning flips the table: instead of writing rules, you show the software thousands of examples (photos labeled “cat” or “not cat”) and let it dig out the patterns. The result of that studying is called a model. As Google puts it, ML is “training a piece of software, called a model, to make useful predictions or generate content from data”.
The idea has a precise birthday: in 1959 Arthur Samuel, at IBM, coined the term while describing his program that got better at checkers game after game, eventually beating skilled players.
The three ways of learning (plus one)
Supervised: studying from solved exams
The most common method: every example comes with the right answer attached. A thousand emails labeled “spam” or “not spam”, ten thousand houses with their sale price. The model learns the relationship between input and answer, like a student preparing from past years’ solved exams. The two classic applications: regression (predicting a number, like a house price) and classification (picking a category, like spam or not).
Unsupervised: finding order without instructions
Here the examples carry no labels. The model receives raw data and hunts for structure and similarity on its own: clustering groups customers with similar habits without anyone defining the groups in advance. Making sense of what emerges is then a human job.
Reinforcement: learning by failing
The system acts in an environment and collects rewards or penalties: winning move, point; losing move, punishment. Attempt after attempt, it refines its strategy. That’s how AlphaGo learned to beat human Go champions, and how robots get trained.
And generative?
Systems that create content — text, images, code — are the newest family: we covered them in the article on generative AI. Under the hood it’s still machine learning, at giant scale.
Practical example: your streaming service uses supervised learning to estimate how much you’ll like a film (millions of ratings serve as examples), unsupervised learning to discover “types” of viewers similar to you, and blends the results into your “recommended for you” row.
Where the method shines, and where it strains
Machine learning excels where rules are impossible to write: recognizing faces and voices, translating, estimating risk. But everything hinges on its raw material: a model is only as good as its data. Skewed or dirty examples produce skewed and dirty predictions, and a bias present in the data gets learned with the same diligence as any other pattern.
There’s also a more fundamental limit: the model detects correlations, it doesn’t grasp causes. When the world changes (new habits, new spammer tricks), the learned patterns age and predictions decay, until someone retrains it on fresh data.
How a machine actually “adjusts its parameters” while studying is the story of neural networks — the mathematical engine behind deep learning. And all of it, at bottom, remains what computing has always been: an algorithm grinding through well-defined steps — except this time, the steps were written by the training.
Common myths
-
✗ Myth Machine learning is an electronic brain that reasons.
✓ Reality It's applied statistics at scale: the model finds correlations in data and uses them to make predictions. It doesn't understand the world, it recognizes patterns — and when the patterns change, it fails.
-
✗ Myth More data always means better results.
✓ Reality Quality and representativeness matter, not just quantity: skewed or dirty data produces skewed and dirty models. If the examples contain a bias, the model learns it diligently.
-
✗ Myth Machine learning and artificial intelligence are the same thing.
✓ Reality Machine learning is a subset of AI: the learn-from-data approach. AI includes other approaches too, and deep learning (deep neural networks) is in turn a subset of machine learning.
Concept map
Drag the background to move around and the nodes to reposition them; use − and + to collapse and expand branches.
- Machine learning
- The core idea
- Learning from examples The model finds the rules, not the programmer.
- The model
- The software trained on data
- The types of learning
- Supervised Examples with the right answer attached.
- Unsupervised Discovers groups in unlabeled data.
- Reinforcement
- Trial and error, rewards and penalties
- The family tree
- Inside AI ML is a subset of artificial intelligence.
- Deep learning
- ML with deep neural networks
- The limits
- Data quality or trouble
- Biases get learned
- Recognizes patterns, doesn't understand
- Data quality or trouble
- The core idea
Test yourself
Answer the questions to check what you have learned: you get instant feedback and a short explanation.
Flashcards
Tap the card to flip it and check whether you remember the answer, then move to the next one.
Explain it in your own words
The ultimate test: if you can explain it in simple words, you've truly understood it. Write your explanation, then compare it with the Recap.
Machine learning is the branch of artificial intelligence in which a piece of software, called a model, learns from data instead of following hand-written rules. Show it thousands of examples and it finds the patterns linking question and answer on its own: that's how it spots spam, recommends films, estimates prices. It's the technology behind almost all the AI you use daily.
FAQ
Where do I meet machine learning every day?
The spam filter, film and music recommendations, your phone's face recognition, machine translation, the navigation app's traffic predictions, dynamic flight prices. Almost all everyday AI is machine learning at work.
What's the difference between machine learning and deep learning?
Deep learning is machine learning done with deep neural networks — many layers: the subfamily that made image recognition, speech and large language models possible. All deep learning is ML, not the other way around.
What does 'training' a model mean?
Having it process the examples while gradually adjusting its internal parameters until its predictions get close to the correct answers. Once trained, the model is used on data it has never seen: that's where you find out whether it truly learned.
Can a model fail after training?
Absolutely, in two typical ways: if it memorized the examples instead of generalizing (overfitting), or if the real world drifted away from the data it studied. That's why models are evaluated on test data and retrained over time.