DYAP 00415–20 minute lesson

How Machines Learn from Data

A machine learns when its performance changes because of experience represented as data. Training is an optimisation process: the model adjusts internal parameters to reduce error on examples.

Editorial learning illustration for How Machines Learn from Data
Visual guide · Use the flow from inputs and evidence to models, outputs and human decisions.

What you will be able to do

  • Explain how machines learn from data accurately in your own words.
  • Recognise how the concept appears in real AI products and professional work.
  • Identify an important limitation, risk or evaluation requirement.
  • Apply the concept through a practical activity and knowledge check.

Build the right mental model

Begin with examples and a measurable objective. The model produces an output, a loss function measures the difference between output and desired result, and an optimisation algorithm adjusts parameters. Repeating this process across many examples is called training.

Learning does not mean memorising every example. The goal is generalisation—performing well on new cases drawn from the intended environment. If the training data is unrepresentative, incomplete or historically biased, the model can learn the wrong pattern very efficiently.

After deployment, the real world may change. Customer behaviour, language, network traffic and fraud tactics evolve. Teams therefore monitor quality and decide when new data and retraining are required.

01

Parameters

Internal numerical values adjusted during training.

02

Loss function

A calculation expressing how wrong a model’s output is.

03

Optimisation

The procedure used to adjust parameters and reduce loss.

04

Generalisation

Useful performance on new, unseen cases.

Real-world example

Predicting equipment failure

A model learns from sensor histories labelled with whether a machine later failed.

What this teaches: If training contains only one machine model or season, the predictor may not generalise to other equipment and environments.

Practical activity

  1. Choose a prediction task.
  2. Describe one training example, its input and desired output.
  3. Name a pattern the model should learn.
  4. Name a misleading shortcut it might learn instead.

Write your answers in a learning journal. The value comes from connecting the concept to your own profession.

Test your understanding

Q1What is the purpose of a loss function?

Answer: It measures prediction error so the training process has a numerical objective to reduce.

Q2What is generalisation?

Answer: The ability to perform well on new data rather than only the examples used during training.

Reflection

If you cannot explain the answer without reading it, revisit the core explanation and example before continuing.

Important industry resources

These links lead to official organisations, industry laboratories or established open-source learning projects.