Skip to content

Lesson 1 of 4

Free preview

What "learning" means for a machine

Rules written by people versus patterns found in examples.

12 min 3-question quiz 3 guides to read next

Traditional software follows rules that a programmer writes: if the email contains these words, mark it as spam. Machine learning turns this around. Instead of writing the rules, you give the computer many examples — emails already marked spam or not spam — and an algorithm finds the patterns that separate them.

The result is a model: a function that takes an input it has never seen and produces a prediction. Under the hood a model is usually a large set of numbers (its parameters) that were adjusted, a little at a time, until its predictions on the examples were as good as possible. That adjustment process is training.

Three things decide how good a model can be:

  • The data. A model can only learn patterns that are present in its examples. If every spam email in the training set is in English, it will know nothing about spam in Spanish.
  • The task. What exactly is being predicted, and from what?
  • The evaluation. How we check that the model works on new data, not just on the examples it studied.

Machine learning is powerful when the rules are too complicated to write by hand — recognising a face, transcribing speech, ranking search results — and when you have plenty of good examples. It is a poor fit when you need guaranteed behaviour, when the data is scarce, or when a simple rule would do the job.

The rest of this course looks at each of those three ingredients in turn.

Check your understanding

3 questions · pass with 2 correct

1. How does machine learning differ from traditional software?
2. What is a trained model, underneath?
3. When is machine learning a poor fit?

You'll see your score; enrol to have it count towards your certificate.

Enrol for free to save your progress, unlock every lesson and earn a certificate.

Sign in to enrol

Further reading

Guides that go deeper on this lesson.

  • How Machines Learn From Examples

    The core loop of machine learning — data, model, loss and optimisation — explained without equations.

    2 min read

  • Rules-Based Systems Versus Machine Learning

    When hand-written rules beat machine learning, when they don't, and how the two work together.

    2 min read

  • What Is a Model?

    A model is the learned artefact at the heart of every AI system. Here is what it contains, how it is stored and how it is used.

    2 min read