AI ATLASAn interactive field guide
Concept 04 / Honest evaluation

Train, validation
& test.

Three sets, three different jobs. Fit on one, choose with another, and keep the final test untouched until you are ready to know how well your choice generalizes.

Build and evaluate a model

A small polynomial model is fitted from scratch in your browser.

01 / Fit a curve to the training data

96 observations
MODEL DEGREE 3
Training pointsValidation pointsTest points after revealFitted model
Training error—Used to fit weights
Validation error—Used to choose settings
Test errorLockedOne final look

Error is mean squared error: the average squared difference between the curve and the observed points.

02 / Assign each observation a role

One card = one observation
Train —Validation —Test —

The test set stays separate during model selection. Its cards are visible here, but their values are hidden from the plot until the final evaluation.

03 / Compare candidate models

Choose by validation error

Click a bar to select that degree. Shorter bars mean lower validation error on this split; an especially flexible curve can fit the training data too closely.