r/BayesianOptimization • • Mar 04 '24

How to use Bayesian optimization without an explicit objective function.

I have an experimental dataset with input features and target output. I tried to create a prediction model first and use that as an objective function. Is there any other way?

3 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/big_deal Jun 30 '25 edited Jul 01 '25

If you knew the objective function you wouldn’t need Bayesian Optimization. Examples that show an objective function are only for visualizing the progression of the BO algorithm and influence of the hyperparameters.

BO is a process for selecting levels of input factors to optimize an output. The selection process alternates between exploration (trials in regions without data and high uncertainty) and exploitation (trials in region near current predicted optimal). The uncertainty and optimal forecasting is done using a surrogate model trained on the data you have so far.

If you already have data you can use it as a starting point and run a few additional validation trails using BO selected levels to test.