Skip to main content
. 2022 May 6;27(9):2980. doi: 10.3390/molecules27092980
Algorithm 1 Pseudocode of ensemble of classifiers as well as undersampling the negative set
  Input:
  P= Positive set (minority class samples in the dataset D)
  N= Negative set (majority class samples in the dataset D)
  M=Number of base learners in ensemble model
  Output:
    Ensemble = trained ensemble.
    for j{ErG,ESPF} do
        for  i18 do
            Randomly sample NiN : Ni=P
             Classifieri,j = train classifier using P and Ni
        end for
  end for
   Ensemble=1M1MOutputProbabilityofEachLearner