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.

Learning objectives
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.
Core explanation
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.
Parameters
Internal numerical values adjusted during training.
Loss function
A calculation expressing how wrong a model’s output is.
Optimisation
The procedure used to adjust parameters and reduce loss.
Generalisation
Useful performance on new, unseen cases.
Predicting equipment failure
A model learns from sensor histories labelled with whether a machine later failed.
Apply your learning
Practical activity
- Choose a prediction task.
- Describe one training example, its input and desired output.
- Name a pattern the model should learn.
- 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.
Knowledge check
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.
If you cannot explain the answer without reading it, revisit the core explanation and example before continuing.
Continue with authoritative sources
Important industry resources
These links lead to official organisations, industry laboratories or established open-source learning projects.