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