|
Algorithm 1 Feature selection.
|
|
Input: Original features , input data
|
|
Output: Selected features
|
| 1: Initialize thresholds ,
|
| 2: Initialize number of repeats
|
| 3: for
do
|
| 4: Compute actual Gini importance from according to Equation (1) |
| 5: end for
|
| 6: for
do
|
| 7: Shuffle the labels , which is referred to as
|
| 8: for
do
|
| 9: Compute new Gini importance of from according to Equation (1) |
| 10: end for
|
| 11: end for
|
| 12: for
do
|
| 13: Compute score of the feature according to Equation (4), which is referred to as
|
| 14: end for
|
| 15: Select the features with a score lower than , which is referred to as
|
| 16: Delete the features from
|
| 17: Compute the correlation matrix of features according to Equation (5) |
| 18: Select the features with less actual Gini importance in each pair of features with a correlation above which is referred to as
|
| 19: Delete the features from
|
| 20: Obtain the remaining features in , which is referred to as selected features
|