Bayesian Optimization — Interactive Playground

Tweak the kernel, acquisition function, and noise to see how BO's assumptions shape its decisions. Click on the plot to manually add a sample. Toggle "Show GP samples" to visualize the prior/posterior as actual functions.

True (hidden) GP mean Uncertainty (±2σ) GP samples Observed Acquisition
What's happening: BO doesn't know the true curve. It fits a Gaussian process (GP) over what it has sampled. The kernel encodes the GP's prior — what kind of functions it considers plausible before seeing data. Try this: reset, click "Show GP samples" before stepping. Those squiggles are random functions drawn from the prior. Now switch kernels — see how Matérn-3/2 produces rougher samples, RBF smoother, periodic ones repeat.

Curious how the explore/exploit knob actually works? Click "Explore vs Exploit" at the top to see three runs racing on the same problem with different κ values.
Stats
BO evaluations
0
Best found / true optimum
GP Kernel prior
Default for materials science. Smooth but not infinitely so.
Smaller = wigglier. Larger = smoother.
Acquisition decision
mean + κ·std. Simple. The κ parameter directly controls explore/exploit.
κ=0 = pure exploit. κ=5 = aggressive explore.
True Function