Skip to main content
. 2025 Aug 23;17(17):2738. doi: 10.3390/cancers17172738
Algorithm 1. Removing all dependent and redundant features
Input: Data XRn×d, where n and d are samples and features, respectively.
1-Rank the features based on information gain: {F1,F2,,Fd}, where F represents a feature and F1>F2>>Fd in terms of information gain.
2-Select the first feature as selected feature: F1, X={F1}
3-for  i=2:d, #For all features F2,,Fd
4-Obtain rank X={F1,Fi}
5-if it is full rank
6- XX{Fi}: keep Fi
7-end if
8-end for
Output: Selected features, XRn×d, where d shows the number of selected features after removing redundant features and d<d.