| Algorithm 1. RENN algorithm. |
|
Input: The original data set D. is the sample in D. |
| For i = 1,2,…,n |
| a. Calculate the Euclidean distances between and other samples in D. b. Get the category information of three samples closest to . c. If two or more nearest samples’ labels are different from , is removed from D. Repeat the above step until cannot be removed. END |
| Output: The balanced data set . |