Skip to main content
. 2024 Jul 24;24(15):4804. doi: 10.3390/s24154804
Algorithm 3. Bayesian hyperparameter optimization algorithm for the classification algorithm sub-model of the proposed method
Input: Objective function f(x), search space χ of hyperparameter, sampling budget n, initial point of hyperparameter x0, probability model P, acquisition function a(x)
Output: Optimal hyperparameter set x* (multi-dimensional vector)
Define:
(1) Objective function f(x) is set to exhibit metric accuracy, as defined by Equation (13) in Section 3.4;
(2) Probability model P is set to be Gaussian process model;
(3) Acquisition function a(x) is set to be expected improvement (EI) function.
1 Initialization: t=0,Xt={x0},Yt={f(x0)}
2 while (t<n) do
3   Obtain (Xt,  Yt) by P
4   Calculate the next sampling point xt+1=argmaxx∈X a(x)
5   Evaluate the objective function yt+1=f(xt+1)
6   Update: Xt+1=Xt∪{xt+1}
7   Update: Xt+1=Xt∪{xt+1}
8   Update iteration step t=t+1
9 end while
10 Output x*=argmaxx∈X f(x) as the optimal hyperparameter set x*