Thompson sampling draws one function from the posterior and evaluates the point where that function is largest. Importing laplacekit_bayesopt registers the surrogate with BoTorch’s draw_matheron_paths, so BoTorch’s PathwiseThompsonSampling works with it. The functions are drawn from the linearized Laplace posterior over the weights.
We minimize Branin over a fixed set of Sobol points, as in BoTorch’s Thompson sampling tutorials.
round 1: best = 3.545
round 2: best = 3.545
round 3: best = 3.545
round 4: best = 3.545
round 5: best = 3.545
round 6: best = 3.545
round 7: best = 3.545
round 8: best = 3.545
round 9: best = 3.545
round 10: best = 3.545
round 11: best = 3.545
round 12: best = 3.545
round 13: best = 0.735
round 14: best = 0.735
round 15: best = 0.735
Branin’s minimum is 0.398. We only do 15 rounds here so that the page runs quickly. In practice, BO runs for hundreds or thousands of rounds.
Each path is a deterministic function of its input. So, optimize_acqf also works with it, over the whole box instead of a fixed set.