Skip to main content
. 2021 Aug 22;22(16):9054. doi: 10.3390/ijms22169054
Algorithm 1: Bagging Algorithm [49]
Input:
  S+: Training set with positive samples
  S: Training set with negative samples
  T: Number of iterations
n: The size of a random selection   
I: Weak classifier
  • 1:

    for t=1 to T do

  • 2:

    St= Random Sample Selection (n,S)

  • 3:

    ht=IStS+

  • 4:

    end for

Output:
  Bagged classifier:Hx=sgnt=1Thtx where ht1,1