liveBook · Manning

Label

As explained in Math and Architectures of Deep Learning

The manually labeled or authoritative target output for a training example against which prediction error is measured.

A label is the desired, authoritative output paired with a training input. In supervised learning, these input–output pairs are prepared before training, often by a person who examines each input and assigns its target output. The collection of targets is also called ground truth (GT). section 1.1 section 7.1

Labels give training a direction. For an input x, a model produces a prediction ŷ; training adjusts parameters so ŷ approaches the corresponding label y. With squared error, a single-example mismatch is (ŷ − y)², and total training error aggregates such mismatches across the dataset. Thus labels are not model inputs or learned parameters: they are the reference outputs used to judge predictions. section 1.3.5 section 2.5.4

A label’s form follows the task’s output type:

  • Regression uses a numeric target, such as the actual number of mobile phones sold in a week. section 8.5
  • Classification uses one member of a prespecified set of classes, such as face versus not face or one of several cat-brain decisions. section 1.5 section 7.2.2
  • Object detection assigns a class label to a proposed region and also uses ground-truth bounding boxes to derive localization targets. section 11.4.3
  • Image reconstruction can treat the original input image as the ground-truth vector against which the reconstructed output is compared. section 9.1.4

From annotated points to a decision boundary

Suppose examples are points described by hardness and sharpness. Manual labeling marks sampled points as threatening or nonthreatening. A classifier uses these labels to place a decision boundary between the two regions. Labels that span each class’s region support a better boundary; sparse or unrepresentative labeled samples can produce a bad one. section 7.2.2

Because manual annotation is costly, supervised learning depends on the availability and quality of labels. Unsupervised methods use inputs without manually labeled ground truth; semi-supervised methods label only a fraction of the data; self-supervised methods create labels programmatically. When classes are imbalanced, focal loss can emphasize examples whose predictions remain far from their labels rather than already-easy examples. section 7.1 section 9.1.7

Figure 7.4 Classifiers, decision boundaries, and training data. Data points from different classes are marked with different symbols (plus and dot).

(a) Cat brain threat model decision boundary. The solid curve corresponds to the true decision boundary separating the threat and non-threat regions. The dashed line represents an approximate linear decision boundary: it classifies most points correctly but misclassifies points in the region between itself and the true decision boundary.
In practice, we get some sample points from each region through manual labeling.

(b) Good training data. Sample points from each class roughly span the region of input space belonging to the class. This yields a good decision boundary (solid line).

(c) Bad training data. Sample points from individual classes do not span the region of input space belonging to the class. This yields a bad decision boundary (dashed line).

Compare labeled samples with the resulting decision boundaries to see why coverage of each class region matters. section 7.2.2

How Math and Architectures of Deep Learning covers it

How deep it goes
Defines labels as desired outputs and connects them to squared error, classification, reconstruction, and detection targets without detailing annotation workflows.
Examples
Uses threat decisions, face detection, weekly phone-sales targets, reconstructed images, and RoIs matched to ground-truth boxes.
What it assumes
Introduces desired outputs through input–output pairs while using basic model predictions and training-error notation.
What you can do after
Evaluate/understand how target outputs define prediction error and vary across supervised learning tasks.
How it connects
Connects ground truth with supervised learning, loss, regression, classification, decision boundaries, object detection, and autoencoders.

Also explained in

Compare how 20 books explain label →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Math and Architectures of Deep Learning. The section links point to the parts of the book it draws on.