| Algorithm 1. Removing all dependent and redundant features |
|
Input: Data
, where
and
are samples and features, respectively. 1-Rank the features based on information gain: , where represents a feature and in terms of information gain. 2-Select the first feature as selected feature: , 3-for , #For all features 4-Obtain rank 5-if it is full rank 6- : keep 7-end if 8-end for Output: Selected features, , where shows the number of selected features after removing redundant features and . |