liveBook · Manning

Data annotation

As explained in Outlier Detection in Python

Labeling is the process of assigning annotations or target values to data records.

Data annotation assigns labels or target values to records. In outlier detection, hand-labeling evaluates whether flagged records matter to the project, rather than merely asking whether they are statistically unusual. Domain experts and data scientists may assign binary relevance labels, specific outlier categories, and importance scores. section 15.1

Useful annotation practice includes:

  • Define specific, consistently applied categories for recurring or important outliers; a record may receive multiple labels. section 15.1.1
  • Record statistically unusual but unimportant cases separately, so models can deemphasize or exclude them from future investigation. section 15.1.1
  • Use labeled records to retune detectors, track outlier types, group investigations, filter known cases, and create rules, classifiers, or regression tests. section 15.6

Financial and sales records

A financial transaction entered by unusually senior staff might receive an “unusual or inappropriate staff for transaction” label, even if investigation finds no immediate issue. Sales records involving rare combinations of items and time of day might receive a “rare time of day for item sold” label when the pattern is unusual but not worth investigating. section 15.1 section 15.1.1

Hand-labeled project data can also support detector comparisons through doping experiments, although classification datasets provide only a general starting point. The most suitable detector depends on the current dataset and the kinds of outliers that matter. section 8.6

How Outlier Detection in Python covers it

How deep it goes
Explains binary, categorical, and scored labels plus downstream uses, but stops short of a detailed annotation workflow.
Examples
Uses financial transactions, unusual staff, sales combinations, and rare times of day as annotation examples.
What it assumes
Assumes flagged records, project-specific relevance criteria, and collaboration between data scientists and domain experts.
What you can do after
Apply it to categorize flagged records, prioritize investigation, retune detectors, and train downstream rules or models.
How it connects
Connects data annotation with outlier detection, domain expertise, classifiers, semisupervised learning, and regression testing.

Also explained in

Compare how 10 books explain data annotation →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Outlier Detection in Python. The section links point to the parts of the book it draws on.