liveBook · Manning

Label

As explained in Machine Learning System Design

Reference labels or outcomes regarded as the actual values against which model predictions are evaluated.

A label is an annotation or observed outcome associated with a data sample. Labels can provide targets for model training and reference values—ground truth—for evaluating predictions. The label chosen should reflect what the product needs to predict, because it constrains both the model and what the product can deliver. section 6.2.4 section 14.4.3

Choosing labels for medical images

A radiology assistant could label an image for the presence of malignancy, its type, the region containing it, or the exact affected pixels. These choices support different tasks and require different tools, expertise, and labeling time. Start with the product’s needs rather than assuming the most detailed label is always practical. section 6.2.4

Figure 6.2 Various approaches to data labeling
figure

Compare classification, detection, and segmentation approaches to labeling images. section 6.2.4

Labels need not be categories. For a retail sales forecast, one sample might represent a date, product, and store, with the number of units sold as its target. Transaction history supplies the primary source of truth for sales. section 6.7.1

Plan how labels will be obtained and trusted:

  • Specify the needed label and its source in the dataset design. Decompose labeling tasks and provide clear instructions and usable interfaces. section 6.7 section 6.2.4
  • When detailed labels are too expensive, expert capacity is limited, or tools are unavailable, consider weakly supervised approaches that use inaccurate or partial labels. section 6.2.4
  • Check label quality. For crowdsourced image-search ranking labels, cross-checks and honeypots can help filter inaccurate labelers; algorithmic validation is another option to consider. section 14.5.2

Ground truth may arrive after a prediction. Once it is available, model-quality metrics can compare predictions with outcomes; until then, data and prediction drift can serve as proxy monitoring signals. Those proxies are not direct measurements of prediction quality. section 14.4.3

How Machine Learning System Design covers it

How deep it goes
Explains label-choice tradeoffs and quality-control practices, without detailing labeling algorithms.
Examples
Illustrates malignancy labels at different levels of detail and crowdsourced ranking labels for image search.
What you can do after
Evaluate label choices against product needs and plan checks for label quality.
How it connects
Connects labels to classification, detection, segmentation, weak supervision, and model monitoring.

Also explained in

Compare how 21 books explain label →

Related concepts

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