Skip to main content
. 2023 May 25;23(11):5058. doi: 10.3390/s23115058
Algorithm 1: Bayesian Optimization Hyperparameter Framework
Input: The number ofparameters n0, The maximum number of iterations T, The search space for parameters X, The function for evaluate model f, Surrogate models M, Acquisition Function S
Output: The optimal parameter combination x
D←InitSamples(f,X)
For i←Dto T do:
  py|x,D←FitModel(M,D)
  xi←argmaxx∈XSx,py|x,D
  yi←f(xi)
  D←D∪xi,yi
end for