Skip to main content
. 2022 Apr 26;24(5):605. doi: 10.3390/e24050605
Algorithm 4 Building procedure of evidential random forests.

Input: evidential training set Tpl, new instance x, base classifier number h, base classifier type TYPE, base classifier output mode O

Output: predicted label y^

  • 1: 

    for  i=1:h  do

  • 2:

     Ti=RandomAttributeSamplingRandomInstanceSamplingTpl; {The resampling procedure of each base tree.}

  • 3:

     if TYPE=OBE then

  • 4:

      Treei=OBETi;

  • 5:

     else if  TYPE=IBE  then

  • 6:

      Treei=IBETi;

  • 7.

     else if  TYPE=LBE  then

  • 8:

      Treei=LBETi;

  • 9:

     end if

  • 10:

    end for

  • 11:

    for  i=1:h  do

  • 12:

     Li=LabelPredictionTreei,x; {Generate predict labels of each base tree.}

  • 13:

    end for

  • 14:

    if  O=preciselabel then

  • 15:

     y^=MajorityL1,…,Lh; {Generate prediction from precise labels.}

  • 16:

    else if  O=masslabel  then

  • 17:

     y^=PignisticMassCombinationL1,…,Lh; {Generate prediction from mass labels.}

  • 18:

    end if