Home▸AI & Machine Learning▸TPE Densities and Random Search Contour Maps

🎯 Random Search vs Bayesian Optimisation: Tuning XGBoost

TPE Densities and Random Search Contour Maps

AI & Machine Learning2DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 3D version
TPE Densities and Random Search Contour Maps ↗ Open standalone

Two identical hyperparameter landscapes sit side by side, one searched by uniform Random Search, the other by a simplified Tree-structured Parzen Estimator (Bayesian TPE) — watch which strategy climbs to the peak validation score faster.

🔬 What It Demonstrates

Random Search samples blindly every trial. Bayesian TPE models which regions of past trials scored well versus poorly, then samples new candidates that maximise the good/bad density ratio — biasing later trials toward the peak.

🎮 How to Use

Set a trial budget and TPE exploitation strength, then press Autoplay (or Step) to run both strategies trial-by-trial. Compare the best AUC found by each and watch how quickly TPE's blue points cluster near the summit.

💡 Did You Know?

Hyperopt's TPE sampler underlies many production AutoML pipelines precisely because it usually needs far fewer trials than grid or random search to reach a near-optimal gradient-boosted model configuration.

⚙ Under the hood

TPE Densities and Random Search Contour Maps

hyperparameter optimizationrandom searchtree-structured parzen estimatorbayesian optimizationBlender

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)