4. Fighting Overfitting: the Advent of Machine Learning

4. Fighting Overfitting: the Advent of Machine Learning#

Chapter 3 taught us to measure predictive performance honestly, and produced a picture to aim at: a valley, with oversimplification on one side and memorization on the other. This chapter is about steering into it.

The tool is the hyperparameter: a setting that is not learned from the data during fitting, but chosen beforehand, and that controls how much freedom the model has. Adding such a dial to a linear model is, in essence, what turns it into a machine learning model.

And then, in the last section, the second villain arrives.

In this chapter: