Skip to main content
. 2022 Apr 7;12(4):920. doi: 10.3390/diagnostics12040920
Algorithm 1: Stacking classification
Input:training data D={xi, yi}i=1m
Output: a stacking classifier H
1: Step 1: learn base-level classifiers
2: for t = 1 to T do
3:     learn ht based on D
4: end for
5: Step 2: construct new data set of predictions
6: for i =1 to m do
7:     Dh={xi, yi}, where xi={h1(xi),,hT(xi)}
8: end for
9: Step 3: learn a meta-classifier
10: learnH based on Dh
11: return H