liveBook · Manning

Label

As explained in Machine Learning Algorithms in Depth

The correct target value against which a model prediction is compared.

A label is the correct target value paired with an input example. In supervised learning, labels provide the supervisory signal used to learn a mapping from inputs x to outputs y. section 1.1

Labels determine the prediction task:

  • Classification uses discrete labels, such as one of K distinct classes. section 1.1
  • Regression uses continuous labels, such as a real-valued stock price. section 1.1 section 6.1
  • A dataset represents labels as pairs D = {(x₁, y₁), …, (xₙ, yₙ)}, where each yᵢ is compared with the model prediction. section 1.1 section 6.1

Comparing a prediction with its label

For classification, the loss counts cases where f(xᵢ; θ) differs from the label yᵢ and averages those errors across n examples. The training objective is to reduce this misclassification rate. section 1.1

(1.1)
figure

Inspect the classification-loss equation to see how mismatches between predictions and labels become an average error. section 1.1

How Machine Learning Algorithms in Depth covers it

How deep it goes
Defines labels through dataset notation and connects them to classification, regression, and loss calculations.
Examples
Uses discrete classes and real-valued stock prices as classification and regression label examples.
What it assumes
Assumes basic inputs, outputs, datasets, and model predictions while distinguishing discrete from continuous targets.
What you can do after
Evaluate model predictions by comparing them with labels through classification error or regression error measures.
How it connects
Connects labels to supervised learning, classification, regression, predictions, ground truth, and loss functions.

Also explained in

Compare how 20 books explain label →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning Algorithms in Depth. The section links point to the parts of the book it draws on.