Skip to main content
. 2022 Aug 5;14(8):1632. doi: 10.3390/pharmaceutics14081632
Algorithm 1. The algorithm used for developing the stacked model
Input: training data A={xi, yi}i=1m
Output: a stacking regressor Mf
1: Step 1: perform the training of the base-level regressors
2: for t = 1 to T do
3: Train ht based on database of A
4: end for
5: Step 2: design new database of predictions
6: for i = 1 to m do
7: Ah=xi, yi, where xi=h1xi,,hTxi
8: end for
9: Step 3: perform the training of the meta-regressor
10: perform the training of Mf based on Ah
11: return Mf