liveBook · Manning

Classifier

As explained in Causal Inference for Data Science

Classification is a predictive modeling task for assigning an instance to one of a set of discrete classes.

Classification is a supervised learning task that predicts a discrete class from an instance’s features. Given historical pairs D = {(xᵢ, yᵢ)}, a model learns a function f that maps x to a predicted category y. section 4.1

A classification workflow typically involves:

  • Representing each instance with features such as an image or other measured variables, alongside a categorical outcome. section 4.1
  • Choosing a function family, such as a linear model, decision tree, random forest, boosted tree, k-nearest neighbors, or deep learning model. section 4.1
  • Fitting the model to historical data so its predictions match observed classes as closely as the chosen objective requires. section 4.1
  • For binary outcomes, interpreting the target conditional expectation as the probability P(Y = 1 | x₁, …, xₘ). section 4.1.2

Animal images

Suppose x is an image and y is its animal category. Classification learns from labeled image-category pairs, then uses a new image to predict its discrete class. This differs from regression, where the outcome is continuous, such as predicting tomorrow’s sales. section 4.1

figure

Inspect the formal supervised-learning setup connecting features, outcomes, model families, and predictions. section 4.1

How Causal Inference for Data Science covers it

How deep it goes
Defines classification, formalizes its learned function, and relates binary accuracy to conditional probability.
Examples
Uses animal-image categories and contrasts them with continuous sales prediction.
What it assumes
Assumes familiarity with supervised learning models and cross-validation, while introducing their basic formal setup.
What you can do after
Evaluate/understand how labeled data and model families produce predictions for discrete outcomes.
How it connects
Connects supervised learning with regression, decision trees, random forests, boosted trees, k-nearest neighbors, and deep learning.

Also explained in

Compare how 31 books explain classifier →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Causal Inference for Data Science. The section links point to the parts of the book it draws on.