Skip to content
// ai glossary

What is machine learning? Simple guide

Building software that learns patterns from data instead of following only hand-written rules.

Last reviewed

In plain English

Machine learning is a way of building software that learns patterns from data. Instead of a programmer writing every rule by hand, you show the system many examples and it works out the rules itself. It is one of the main ways to build artificial intelligence.

A simple example

To build a spam filter the old way, a programmer would list rules such as "block emails containing 'winner'". Spammers soon work around them. With machine learning, you give the system thousands of emails labelled "spam" or "not spam". It finds the patterns that tend to separate them, including ones no person would think to write down, and uses them on new email.

The main types

  • Supervised learning: learning from labelled examples, such as emails marked spam or not spam. Used for predictions and classification.
  • Unsupervised learning: finding structure in data with no labels, such as grouping customers with similar habits.
  • Reinforcement learning: learning by trial and error, getting a reward for good results. Used in game-playing and robotics.

Where it sits

Machine learning is a subset of AI. A neural network is one kind of machine-learning model, and the large language models behind modern chatbots are built from neural networks.

Why it matters

The quality of a system depends heavily on its training data. Biased, outdated or messy data leads to biased, outdated or messy results.

Common mix-ups

  • Machine learning is not magic and not always needed. Many problems are solved with simple rules.
  • The model does not keep learning from every conversation. Most deployed models are fixed until their makers train a new version.
  • More data is not always better. Relevant, accurate data usually beats a larger pile of poor data.
  • Neural networkA type of machine-learning model made of many connected layers of simple maths units, loosely inspired by the brain.
  • Training dataThe examples a model learned from. Its knowledge and biases come from this data.
  • AlgorithmA set of steps a computer follows to solve a problem.