| |
- feature_ranking(W)
- Rank features in descending order according to their gini index values, the smaller the gini index,
the more important the feature is
- gini_index(X, y)
- This function implements the gini index feature selection.
Input
----------
X: {numpy array}, shape (n_samples, n_features)
input data
y: {numpy array}, shape (n_samples,)
input class labels
Output
----------
gini: {numpy array}, shape (n_features, )
gini index value of each feature
|