Skip to main content
. 2020 Aug 10;22(8):876. doi: 10.3390/e22080876
Algorithm 3 Communication function
  • 1:

    input:P,A; ▹ the sub-population P, the label-spcific accuracy matrix A=(aij)R|P|×|L|

  • 2:

    output:indc;                   ▹ the complementary individual indc

  • 3:

    b find an index of the best individual in the P;        ▹ the best individual indb

  • 4:

    Le find an index set of labels with the highest error based on ab=[ab1,,ab|L|];

  • 5:

    for each individual indiPdo            ▹ the other sub-populations P

  • 6:

        cijLeaij;                 ▹ the degree of complementarity c

  • 7:

    end for

  • 8:

    indc find a individual with highest c;