← 📉 Machine Learning

📉 Generalization Landscape

Training risk:
True risk (bound):
Generalization gap:
Best complexity (this N):
FPS:
Drag — rotate · Scroll — zoom

📉 Statistical Learning Theory for Hyperparameter Optimization

A 3D generalization-bound landscape over model complexity and training-set size, where a cyan training-risk sheet and a purple PAC-bound sheet pull apart to show exactly why bigger models need more data.

🔬 What It Demonstrates

Training risk always falls as capacity rises, but the PAC generalization bound adds a statistical penalty that shrinks with more data and grows with complexity and confidence — carving a U-shaped valley whose floor is the best achievable hyperparameter setting.

🎮 How to Use

Set training-set size, confidence level, and model family, then drag the complexity slider (or hit auto-sweep) to watch the marker ride the gap between training risk and the theoretical bound on true risk.

💡 Did You Know?

This same U-shaped trade-off is what cross-validation curves and Bayesian hyperparameter optimizers are implicitly searching for — a quantitative bound turns "avoid overfitting" from a rule of thumb into a formula.