Skip to main content
. 2022 Sep 14;22(18):6955. doi: 10.3390/s22186955
Algorithm 1 Pseudo code for AdaBoost training
Require: Initialize weight to xi
Require: Initialize Wi=1/n
 Train first weak decision tree model
for Each observation xi do
  if pred ≠ correct then
   Wi++
  else
   Wi
  end if
end for
 Train second weak model with greater weights
return pred