liveBook · Manning

Classifier

As explained in Grokking AI Algorithms, Second Edition

Classification is the assignment of an instance to one or more predefined categories based on its features.

A classifier assigns an example to one or more predefined categories using its features. It finds patterns that group examples into labels rather than predicting an exact number. section 1.10 section 8.14

Classification is useful when the answer is discrete, such as car or truck, bird or not bird, or tablet, laptop, or phone. Regression instead estimates a continuous value such as price or fuel consumption. section 8.15 section 8.3

Classifying vehicles

Measure each vehicle's weight and number of wheels. Because cars usually have four wheels while many trucks have more and tend to weigh more, these features can help predict whether a new vehicle is a car or a truck. The same reasoning can classify motorcycles, sedans, and sport-utility vehicles from physical dimensions, engine size, and seat count. section 8.15 section 1.10

Useful checks when identifying a classification problem:

  • Ask whether the desired output is a label or category rather than a numerical quantity. section 1.10
  • Identify the example's features, such as weight, wheels, wings, screen size, or operating system. section 8.15
  • Distinguish binary classification, such as cat versus dog, from problems with several possible classes. section 9.10
Figure 8.16 Example vehicles for potential classification based on the number of wheels and weight
08_16

A vehicle plot makes the classification intuition visible by relating weight and number of wheels to likely categories. section 8.15

How Grokking AI Algorithms, Second Edition covers it

How deep it goes
Defines classification, contrasts it with regression, and works through feature-based examples without developing classifier internals.
Examples
Uses vehicles, animals, computing devices, diamonds, and cat-or-dog decisions as classification examples.
What it assumes
Assumes basic familiarity with data features and examples while teaching the distinction between labels and numerical predictions from zero.
What you can do after
Evaluate whether a problem predicts categories or continuous values and identify features suitable for classification.
How it connects
Connects classification with supervised learning, regression, decision trees, activation functions, and artificial neural networks.

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 AI Algorithms, Second Edition. The section links point to the parts of the book it draws on.