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 MLR0&MSGD0&training_set0 then

  •    3:

           ProbSGD1=MSGD.probability(1class)

  •    4:

            ProbSGD2=MSGD.probability(2class)

  •    5:

            ProbLR1=MRF.probability(1class)

  •    6:

            ProbLR2=MRF.probability(2class)

  •    7:

            Decision function = max(1Nclassifierclassifier

            (Avg(ProbSGD1   ProbLR1)

            ,(Avg(ProbSGD2,ProbLR2)

  •    8:

          end if 

  •    9:

         Return final label p^

  •  10:

    end for