Skip to main content
. 2022 Apr 5;24(4):511. doi: 10.3390/e24040511
Algorithm 2 NCA Feature Selection
1. Input:
Z Rd x L; γ initial step length; σ: kernel width; ℷ: regularisation parameter; and η: small positive constant.
2. Initialization: w0=1, 1, , 1, ϵ0=, t=0.
3. Repeat
4. for i=1, , L  do
5. Compute pij and pi  using wt according to (2) and (3)
6. for r=1, , d   do
7. _r=2(1/σ(pijipijzirzjrjcijzirzjr))wrt
8. t = t + 1
9. wt=wt1+γΔ
10. ϵt=ξwt1
11. if ϵt>ϵt1 then γ = 1.01 γ
12. else
13. γ=0.4γ
14. until ϵtϵt1<η
15. w=wt
16. Return w