liveBook · Manning

Generalization

As explained in The AI Pocket Book

The ability of a model to perform well on new inputs not seen during training.

Generalization is a model’s ability to perform well on new inputs that were not present in its training data. A model learns a useful process rather than memorizing examples. section 1.27

A model that recognizes new images

An image categorization model should recognize a new dog or plane image, not only the labeled images it saw during training. New sentences and images are equivalent tests of whether it learned the task broadly. section 1.27

Generalization sits between two common failure modes:

  • Overfitting occurs when a model memorizes particular training examples and performs poorly on unseen data. section 1.27
  • Underfitting occurs when a model learns a process that is too simple to work effectively even on its training data. section 1.27

How The AI Pocket Book covers it

How deep it goes
Defines generalization through unseen inputs and contrasts it with overfitting and underfitting, without covering measurement methods.
Examples
Uses new sentences, new images, and image categories such as dogs and planes.
What it assumes
Assumes basic familiarity with models, training data, and machine learning tasks.
What you can do after
Evaluate whether a model learned a general process by checking performance on data absent from training.
How it connects
Connects generalization to training data, overfitting, underfitting, and machine learning.

Also explained in

Compare how 13 books explain generalization →

Related concepts

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