Classification and Regression Targets

Classification predicts a categorical outcome under the task's definition. Regression predicts a numerical quantity.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Trace two delivery questions
  2. Choose a relevant loss
  3. Identify what distribution or quantity a model predicts
  4. Test whether the chosen target matches the action

Trace two delivery questions

Predicting delivery duration is a regression task. Predicting whether it arrives within three days is a classification task with a defined boundary. Ordered thresholds can derive that category from observed durations.

Choose a relevant loss

A numeric error of one hour can matter differently near a deadline. A classification mistake concerns the decision outcome instead. See preconditions and contracts for communicating the target and units.[1]

Identify what distribution or quantity a model predicts

An arrival model can predict a number of minutes, or classify deliveries as early, on time or late under thresholds. Predicting minutes supports numerical error metrics. Classifying delivery states supports per-class counts and decision metrics. See worked prediction losses.

Numerical target: 37 minutes
Categorical target from rule: late when time > 30 minutes
A prediction of 31 differs from 37 by six minutes but gives the same class

Test whether the chosen target matches the action

Thresholds can discard variation needed by planning, while a decision may only need one category. Evaluate the output in the form consumers use.

References

  1. Gareth James et al., An Introduction to Statistical Learning ↩