What is machine learning?
Machine learning is the branch of AI where computers learn from examples instead of being explicitly programmed. You feed a model lots of data, it finds patterns, and it uses them to make predictions on new inputs. Its three main styles are supervised, unsupervised, and reinforcement learning.
Why — the first-principles explanation
The core idea of machine learning is a reversal of normal programming. In normal code, a human writes the rules and the computer applies them. In machine learning, you give the computer examples plus answers, and it works out the rules itself. This matters because many valuable tasks, recognizing speech, spotting fraud, translating languages, are impossible to write exact rules for, but easy to supply examples of.
Mechanically, a model starts with adjustable numbers set randomly. It makes a prediction, checks it against the known correct answer, measures the error, and nudges its numbers to do better. Repeat this over a large dataset and the numbers settle into a pattern that generalizes, meaning it also works on new data it never saw. This 'learn from error, adjust, repeat' loop is the beating heart of the field.
There are three main flavors. Supervised learning uses labeled examples (photos tagged 'cat'/'dog') to predict labels. Unsupervised learning finds structure in unlabeled data, like grouping similar customers. Reinforcement learning learns by trial and error with rewards, how game-playing and robotics systems improve. When these models use deep neural networks, we call it deep learning.
An example that makes it click
Think of learning to recognize spam email. Nobody could write a rule for every trick spammers use. So instead, you show a program thousands of emails already marked 'spam' or 'not spam.' It notices patterns, lots of 'FREE!!!', weird links, unknown senders, and builds its own sense of what spam looks like.
Then a new email arrives, and the program predicts 'spam' with high confidence. It learned from examples, not from a rulebook, and it keeps improving as it sees more mail. That's machine learning in one everyday picture.
Key facts
- Machine learning (ML) is a subset of AI where systems learn patterns from data instead of hand-coded rules.
- The learning loop: predict, measure error against known answers, adjust internal numbers, repeat over lots of data.
- Three main types are supervised (labeled data), unsupervised (unlabeled data), and reinforcement (reward-based) learning.
- Deep learning is ML that uses multi-layer neural networks, powering vision, speech, and language systems.
- A good ML model 'generalizes': it performs well on new data it did not see during training.
▶ The 60-second explainer (script)
What is machine learning? It's the part of AI where computers learn from examples instead of following rules a human typed in. Normally, programming means a person writes the rules and the machine follows them. Machine learning flips that. You give the computer lots of examples with the right answers, and it figures out the rules on its own. Why does this matter? Because for tasks like recognizing speech or catching fraud, no human can write down every rule, but we can supply tons of examples. Here's the mechanism: the model makes a guess, checks how wrong it was, and nudges its internal numbers to do better. Repeat that millions of times, and it learns a pattern that even works on brand-new data. There are three main styles. Supervised learning uses labeled examples. Unsupervised learning finds hidden groups in unlabeled data. And reinforcement learning improves through trial, error, and rewards. Stack it into deep neural networks, and you get deep learning, the engine behind today's most powerful AI.
What authoritative sources say
People also ask
Is machine learning the same as AI?
No. AI is the broad goal of intelligent machines. Machine learning is the main method to get there, by learning from data. All ML is AI, but not all AI is ML.
What are the three types of machine learning?
Supervised (learns from labeled examples), unsupervised (finds patterns in unlabeled data), and reinforcement (learns by trial and error with rewards).
What's the difference between machine learning and deep learning?
Deep learning is machine learning that uses many-layered neural networks. It's a powerful subset, especially for images, speech, and language.
Does machine learning need a lot of data?
Usually yes. Patterns emerge reliably from many examples, and more high-quality, varied data generally improves the model's accuracy.