Home▸AI & Machine Learning▸Bayesian Optimization for Hyperparameter Tuning (2D)

Bayesian Optimization for Hyperparameter Tuning (2D)

Top-down companion to the 3D lab: a Gaussian-process surrogate is fit to the trials run so far and drawn as a live heatmap, with an acquisition function you tune picking each next point to sample on a hidden validation-accuracy landscape.

AI & Machine Learning2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-bayesian-optimization-for-hyperparameter-tuning-lab ↗ Open standalone

This 2D companion drives the same Gaussian-process surrogate and Upper-Confidence-Bound acquisition function as the 3D lab, drawn as a flat top-down heatmap instead of an orbiting surface: the posterior mean colors the grid, sampled trials appear as dots, and a pulsing marker shows the acquisition function's current top pick. Raise exploration (κ) to chase uncertain regions or lower it to exploit the best trial found so far, and toggle the hidden true landscape to see how closely the surrogate has converged.

⚙ Under the hood

A Gaussian-process surrogate fit by exact GP regression (RBF kernel, Gauss-Jordan matrix inversion) models a hidden 2D accuracy landscape; a UCB acquisition function (mean + κ·σ) picks each new sample point, rendered as a live top-down heatmap with an uncertainty-shaded overlay.

bayesian optimizationgaussian processacquisition functionhyperparameter tuningupper confidence boundmachine learning

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

What did you find?

Add reproduction steps (optional)