Skip to main content
. 2026 Sep 17;26(18):5898. doi: 10.3390/s26185898
Algorithm 2 Reproducible HHMAO Hyperparameter Search
  • Require: 

    Search bounds in Table 4, population size M=40, iterations I=160, switch iteration ts=96, training set Dtr, validation set Dval, seed s

  • Ensure: 

    Best hyperparameter vector θ*

  •   1:

    Set random generators using seed s

  •   2:

    Initialize M candidate vectors within the specified search bounds

  •   3:

    Repair integer variables and project graph weights onto the unit simplex

  •   4:

    Evaluate the initialized candidates using F and set θ* to the best candidate

  •   5:

    for t=2 to I do

  •   6:

       for m=1 to M do

  •   7:

         if t≤ts then

  •   8:

            Generate θ′ using the HHO exploration update

  •   9:

         else

  • 10:

            Generate θ′ using MRFO chain/cyclone refinement

  • 11:

         end if

  • 12:

         Clip continuous variables to their search bounds

  • 13:

         Round R and Lg to the nearest admissible integers

  • 14:

         Project (ωs,ωc,ωa) onto the non-negative unit simplex

  • 15:

         Train STAG-GuardNet on Dtr using Adam and evaluate F(θ′) on Dval

  • 16:

         if F(θ′)<F(θ(m)) then

  • 17:

            θ(m)←θ′

  • 18:

         end if

  • 19:

         if F(θ(m))<F(θ*) then

  • 20:

            θ*←θ(m)

  • 21:

         end if

  • 22:

       end for

  • 23:

    end for

  • 24:

    return θ*