Skip to main content
. 2025 Feb 13;27(2):190. doi: 10.3390/e27020190
Algorithm 1 DRFS

Input: Data matrix X, label matrix Y, α, β.

Initialize μ=1, ρ=1.1, μmax=108.

Output: Feature weight matrix W.

  •   1:

    Compute feature similarity matrices M(1), , M(r), M

  •   2:

    while not converaged do

  •   3:

       Update W by WijWij(XTX+μI+λD)W+(XTYμZ+Λ)+ij(XTX+μI+λD)+W+(XTYμZ+Λ)ij;

  •   4:

       Compute diagonal matrix D as Dii=1/2Wi2;

  •   5:

       for l=1 to r do

  •   6:

           Update zl by zl=1rLM(l)+μI1(μwl+Λl1r(r1)klrMzk);

  •   7:

           zl=max(zl,0);

  •   8:

       end for

  •   9:

       Update ΛΛ+μ(WZ);

  • 10:

       Update μ=min(ρμ,μmax);

  • 11:

    end while