Skip to main content
. 2020 Jul 31;22(8):849. doi: 10.3390/e22080849
Algorithm 3 Pseudocode of imbalanced metric-driven models based on AWE.
Input: S: new data chunk
 C: ensemble of classifiers
 K: size of the ensemble
Output: C: ensemble of classifiers with updated weights
 X ← sampled S
 Train new classifier C on X;
 Estimate weight of C with cross-validation on S based on (5), (6) or (7);
for Ci in C do
  Calculate weight wi of Ci on S based on (5), (6) or (7);
end for
 C ← K classifiers with the highest weights from CC;
for Ci in C do
  wiwiCiinCCwi
end for
return C;