← 🧠 Machine Learning

🎯 Tuning Core Concepts

Trials run: 0
Best validation loss:
True loss of that pick:
Optimism gap:
FPS:
Drag — rotate · Scroll — zoom

🎯 Hyperparameter Tuning: Core Concepts

A search strategy drops trial configurations onto a 3D hyperparameter loss landscape, while a linked chart tracks the gap between the noisy validation score you observe and the true generalization loss of the trial you'd actually pick.

🔬 What It Demonstrates

Grid search spends effort evenly across both axes even when only one matters, while random search covers the important axis far more densely for the same budget. Meanwhile, picking the "best" trial by a noisy validation score tends to be optimistic — the true loss of that pick is usually a little worse, and the gap widens with more trials and more noise.

🎮 How to Use

Choose grid or random search and a trial budget, drag the second hyperparameter's importance down to create a ridge-shaped search space, and crank up validation noise to see the optimism gap grow between the orange (validation) and blue (true) lines.

💡 Did You Know?

This is the statistical reason a separate, untouched test set exists: repeatedly checking a validation score while searching hyperparameters is itself a form of multiple comparisons, and it can silently overfit your "best" configuration to that validation split.