Skip to main content
. 2025 Aug 19;27(8):875. doi: 10.3390/e27080875
Algorithm 1 ASNMF-SRP
Input: Initial matrix X=x1,x2,,xn+m×n, number of classes r, neighborhood parameter k, regularization parameters α, β and λ, balance parameters w1 and w2 parameter d, threshold ε, maximum iterations t.
Output: Basis matrix U and coefficient matrix V.
1. Initialization: t=0, Randomly generate basis matrix Um×r and coefficient matrix Vr×n;
2. Obtain optimal Laplacian matrix L according to Equations (11)–(17);
3. For t=1,2,3,,maxIter
4. Uijt+1Uijt2XVT+βXXTG2U+βG2XXTUijUVVT+XXTU+β2UUTG2U+β2G2UUTUij;
5. Vijt+1Vijt2UTX+αVL+λVijUTUV+V+αVL++λV1nij;
6. if UtUt1ε and VtVt1ε
Break and return (U,V);
7. End if
8. End for