liveBook · Manning

Classifier

As explained in Grokking Statistics

A classification model predicts a categorical label or class for an observation rather than a continuous numerical value.

A classifier predicts a category rather than a continuous number. It answers questions such as whether an email is spam or whether an image shows a dog, cat, or bird. section 8.0

Logistic regression is a common classifier: it first predicts the probability of a label, then converts that probability into a class using a threshold such as 0.50. section 8.0 section 8.11

Evaluate a classifier with care:

  • Do not rely on accuracy alone when classes are imbalanced; a model can appear accurate by favoring the overrepresented class. section 8.11
  • Use precision and recall to examine the trade-off between false alarms and missed cases. section 8.11
  • Hold back unseen data with a train/test split or cross-validation, and compare performance across thresholds with ROC or precision-recall curves. section 8.11

How Grokking Statistics covers it

How deep it goes
Defines class outputs and probability thresholding, then reaches validation metrics but stops short of multiclass treatment.
Examples
Uses spam detection and dog, cat, or bird image labels to illustrate binary and multiple-choice classification.
What it assumes
Assumes familiarity with choosing between continuous and categorical outcomes while introducing classification terminology from everyday examples.
What you can do after
Evaluate classification performance using thresholds, precision, recall, and held-out data.
How it connects
Connects logistic regression, linear regression, precision, recall, cross-validation, ROC curves, and precision-recall curves.

Also explained in

Compare how 31 books explain classifier →

Related concepts

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