Skip to main content
. 2020 Mar 25;21(7):2274. doi: 10.3390/ijms21072274
Algorithm 1. RENN algorithm.
Input: The original data set D.
            Xi is the sample in D.
For i = 1,2,…,n
a. Calculate the Euclidean distances between Xi and other samples in D.
b. Get the category information of three samples closest to Xi.
c. If two or more nearest samples’ labels are different from Xi, Xi is removed from D.
Repeat the above step until Xi cannot be removed.
END
Output: The balanced data set DS.