epochs

Learn · Module 02 · Classical machine learning · Lesson 6 of 8

Overfitting and regularisation

A model that memorises its training data looks perfect until it meets new data. Here is how to spot it and stop it.

4 minute read

In short
  • Overfitting means great training error and poor test error; underfitting means both are poor.
  • Always measure on data the model didn't train on.
  • Regularisation penalises large weights, trading a little training error for much better generalisation.

This lesson is part of Pro

The first two lessons of every module are free. Pro opens every lesson and every project.

See Pro plansFrom ₹119 a month. No auto-renewal.