Skip to main content
. 2023 Jan 29;25(2):245. doi: 10.3390/e25020245
Algorithm 1: Adaboost classifier—pseudo code
Input: Let D be the dataset that includes {(a1,b1), (a2,b2), ….. (am, bm)};
Let λ be the learning (base) algorithm
     Let T be the total No. of learning rounds.
Process:
  D1(i) = 1/m
  for time = 1, …, T;
ht = λ (D, Dt); weak learner is trained with Distribution Dt
t = PrPri~Dt[ ht(aibi)]; Error measure (entropy)
t = 12 ln (1tt);% determine the weigth of ht
Dt+1(i) = Dt(i)Zt{exp(t) if ht(ai)=biexp(t) if ht(ai)bi
            = Dt(i)exp(tytht(ai)Zt
Outcome: H(a) = sign (t=1Ttht(b)