Explainer · Updated November 28, 2026 · 4 minute read
What is machine learning?
The short answer
Machine learning is a way of building software in which the computer works out its own rules from examples instead of having a programmer write them. A training procedure feeds the system large amounts of data and adjusts it until its outputs fit that data closely. Most products described as AI today are built this way.
Learning from examples
A spam filter shows the difference. Rules written by hand struggle to keep up, because spammers change their wording faster than anyone can update the rules. With machine learning, engineers collect many emails already labeled as spam or not spam and let a training program find the patterns that separate the two.
The result is called a model. It is a set of numbers, often a very large one, tuned during training so that a fixed calculation turns an input such as an email into an output such as a spam score. Once trained, the model can be applied to emails it has never seen.
The main ways machines learn
The methods differ mostly in what kind of data the system is given.
- Supervised learning uses examples that come with the right answer attached, such as photos labeled with what they show.
- Unsupervised learning looks for structure in data that has no labels, for example by grouping customers with similar buying habits.
- Reinforcement learning has the system try actions and rewards the ones that work. It was central to the programs that beat champion Go players.
- Self-supervised learning has the system predict hidden parts of its own data, such as the next piece of a sentence. It is the main way large language models are trained.
What it is good at
Machine learning suits problems where examples are plentiful and the rules are hard to write down. Translating between languages, reading handwriting, flagging possible tumors on medical scans and forecasting demand for a product all fit that description.
Where it goes wrong
If the training examples are skewed, the model repeats the skew. In one case reported by Reuters in 2018, Amazon dropped an experimental hiring tool after finding that it favored male applicants. A model can also score well in testing and then fail once the real world drifts away from the data it learned from. It is often hard to say why a model produced a particular output, because its behavior is spread across millions or billions of numbers.
Common questions
What is a neural network?
A neural network is a model made of layers of simple units, each of which combines its inputs using adjustable numbers called weights and passes the result to the next layer. The design was loosely inspired by brain cells, but the resemblance is slight.
What is deep learning?
Deep learning is machine learning done with neural networks that have many layers. It is behind most of the progress since the early 2010s, including modern speech recognition and generative AI.
Does a model keep learning after it is released?
Usually it does not. Most models are fixed once training ends, and they change only when the developer trains and releases a new version.