Skip to main content
. 2023 Oct 10;13(20):3165. doi: 10.3390/diagnostics13203165
Algorithm 3: Features selection using ReliefF method
Input: M learning instances with L features and C classes
Output: the vector w=Wf1,f2,f3,,fl
Step 1 [Initialized] Set all weights W (f_l) = 0, where 1,2,3…,l
Step 2 for i = 1 to m do
Step 3 Randomly select an instance Ri
Step 4 Find k nearest histograms hj of Ri
Step 5 Repeat for each class c≠ class (Ri) do
Step 6 From class c, find k nearest misses mj(c) of  Ri
[End for loop]
Step 7 For l = 1 to L, do
Update W(F) by using Equation (1)
[end for loop]
[end for loop]
Step 8 [end]