Overfitting

Overfitting happens when a model learns training-set details that do not generalize to new data.

Intuition

The model memorizes quirks of the examples instead of learning the pattern that will hold later.

Technical definition

Overfitting is a generalization failure where training error decreases while validation or test performance worsens.

Example

A decision tree that memorizes every training row may perform poorly on future customers.

Common misunderstandings

  • Low training error can be a warning sign, not proof of success.
  • Overfitting can happen in small and large models.

Need this inside a product?

The studio builds the systems these terms describe. Tell us what you are working on.