A table
The ice cream seller wrote eight days into a table. Each row is one day, that is one example. We have 8 examples.
Feature: what we know
The temperature column is a feature, written x. We know it at the moment we predict; tomorrow's weather forecast tells us the temperature.
Label: what we learn
The sales column is the label, written y. It is known for past days and unknown for tomorrow. The model will learn to predict the label from the feature.
One row, one dot
Day 6 had 26 degrees and 48 ice creams. This row becomes a single dot on the chart: the feature across, the label up.
All the examples
Eight rows became eight dots. The way the dots are laid out shows the relation between temperature and sales; learning means catching this relation.
A day with no label
Tomorrow will be 27 degrees: we know the feature but not the label. Filling in the question mark on the last row of the table is the model's job.
Supervised learning
Learning from labelled examples is called supervised learning: the right answer sits next to each example. If the label is a number the task is regression; if it is a class, classification.
Why it matters
Real data has many features: temperature, weekday, holiday, rain. Each example becomes a feature vector. Deciding which column is a feature and which is the label is the first step of every project.