Skip to main content
. 2019 Nov 20;19(23):5077. doi: 10.3390/s19235077
Algorithm 1 A Strong Machine Learning Classifier and Decision Stumps Based Hybrid Adaboost Classification Algorithm.
Require:X¯,{c(1),c(2),,c(L)},X*,T(number of sub-classifiers).
Ensure:c^(m),m1,2,,M.
  • 1:

    Initialize sample weight   D1(l)=1L

  • 2:

    ε1=l=1LD1(l)I(h1(x(l))c(l))

  • 3:

    α1=12ln(1-ε1ε1)

  • 4:

    D2(l)=D1(l)exp(-α1c(l)h1(x(l)))Z1

  • 5:

    fort=2toTdo

  • 6:

        εt=l=1LDt(l)I(ht(x(l))c(l))

  • 7:

           αt=12ln(1-εtεt)

  • 8:

              Dt+1(l)=Dt(l)exp(-αtc(l)ht(x(l)))Zt

  • 9:

    end for

  • 10:

    Predict the class of the m-th test sample   c^(m)=signt=1Tαtht(x*(m))