ai/overfitting-why-a-perfect-score-on-practice-questions-can-still-fail.md

Overfitting: why a perfect score on practice questions can still fail

AI · 6 min read ·

A model that scores perfectly on the examples it learned from can still fail badly on new ones. That failure is called overfitting, and you can watch it happen here.

Fit a curve through ten noisy points, slide its flexibility from a straight line up to degree 9, and drag the points around. Compare the error on the training points with the error on fresh test points, and see why the second number is the one that matters.

A dark chart: ten green training points, a dashed smooth wave, and an orange curve that hits every point but swings wildly between them.

$ ls ai/

see all →