Skip to main content
. 2024 Feb 3;24(3):999. doi: 10.3390/s24030999
Algorithm 1 Basic sequential forward search.
  • 1:

    S                                                                    ▹ Target feature set S is initially empty

  • 2:

    while |S|NF,max do                     ▹NF,max is a maximum number of selected features

  • 3:

        for all FiS do                                                 ▹ Test each feature that is not yet in S

  • 4:

            ACCiACC(S{Fi})

  • 5:

        iarg max(ACCi)

  • 6:

        SS{Fi}

  • 7:

        if ACC(S)>ACC(S) then    ▹ Condition check and else block are optional and

                                                                  only required to obtain ever-increasing accuracy

  • 8:

            SS

  • 9:

            ACC(S)ACC(S)

  • 10:

       else

  • 11:

            break