Free preview
Core Machine Learning
Free preview
Core Machine Learning
No surprise gaps
Actually remember it
Skip what you know
One subscription. All learning paths included.
Our content is best on a larger screen
Data, inputs, outputs, and labels
Machine learning uses data to drive learning. A model becomes useful not because we explicitly tell it what to do, but because it sees enough examples to learn patterns and make predictions.
In the most common setup - supervised learning - we provide the model with a dataset of examples that include both the inputs and the correct outputs. These correct outputs are known as labels (or targets). By seeing many input-label pairs, the model learns how to produce the right output for a given input. Supervised learning is our focus for the remainder of this lesson.
Three core components structure this process:
Warning
Labels are not present when the model is deployed (otherwise we would not need a model!). They exist only to guide learning during training.
We can visualise this for a single training example as:

In general, the more relevant and representative the data, the more effective the learning.
Which of the following best represents inputs and outputs in a supervised machine learning task to predict house prices, given information about each house (square footage, number of rooms, location)?
Answer: Option 2
Explanation
The inputs are the information we have about each house (square footage, number of rooms, location), and the output is what the model predicts (house price). During training, we would show the model many such examples paired with correct labels (the actual prices) so it can learn the relationship.
Practice questions
3 questions
In a supervised machine learning problem, what do we typically call the information we provide the model in order to make a prediction?
Select the correct answer:
+ 2 more questions
Model and learning algorithm
Once we have defined the inputs and outputs of a problem, the next step is to learn the relationship between them. This is where the model and learning algorithm come in.
We describe the model as having parameters - adjustable parts that control how it makes predictions. The learning algorithm updates these parameters to reduce the training error (the mistakes the model makes on training examples).

For example, when we fit a LinearRegression model to the California Housing dataset, the model is the linear regression system that predicts house prices from input features. The learning algorithm adjusts its parameters so that predictions are as close as possible to the actual house prices in the training data.
A company wants to predict whether a loan application should be approved based on age and income. What role does the model play?
Answer: Option 3
Explanation
The model learns from data - in this case, historical loan decisions - to find patterns that relate inputs (age, income) to outputs (approval decision). The learning algorithm helps the model improve its accuracy as it sees more examples.
Practice questions
3 questions
During the training of a supervised machine learning model, what does the learning algorithm do?
Select the correct answer:
+ 2 more questions
Training vs inference
Supervised machine learning systems operate in two distinct phases: training and inference.
During training, the model uses feedback (labels) to learn. During inference, it must apply what it has learned without any feedback - just like a student taking an exam.

This distinction also matters in practice: we may train only once (or relatively few times), but run inference millions of times once the model is deployed. Training can therefore be resource-intensive, while we typically want inference to be fast and lightweight.
A speech recognition model is trained on thousands of voice samples. Later, it is used to transcribe live conversations. What phase is the model in during transcription?
Answer: Option 3
Explanation
During transcription, the model is making predictions based on what it already learned during training. It’s not being updated or corrected - it’s applying its existing knowledge to new, unseen data. As such we call this phase inference.
Practice questions
3 questions
In supervised machine learning, what is the primary difference between training and inference?
Select the correct answer:
+ 2 more questions