Skip to main content
. 2022 Dec 6;14(23):6015. doi: 10.3390/cancers14236015
Algorithm 1 Ensembling of LR and SGD.

Input: input data (x,y)i=1N

MLR = Trained_ LR

MSGD = Trained_ SGD

  •    1:

    fori=1toMdo

  •    2:

          if MLR≠0&MSGD≠0&training_set≠0 then

  •    3:

           ProbSGD−1=MSGD.probability(1−class)

  •    4:

            ProbSGD−2=MSGD.probability(2−class)

  •    5:

            ProbLR−1=MRF.probability(1−class)

  •    6:

            ProbLR−2=MRF.probability(2−class)

  •    7:

            Decision function = max(1Nclassifier∑classifier

            (Avg(ProbSGD−1   ProbLR−1)

            ,(Avg(ProbSGD−2,ProbLR−2)

  •    8:

          end if 

  •    9:

         Return final label p^

  •  10:

    end for