We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ecbaca commit d5cc974Copy full SHA for d5cc974
fslite/fs/multivariate.py
@@ -166,7 +166,9 @@ def multivariate_correlation_selector(
166
)
167
168
# Select feature index to keep
169
- selected_features = [i for i in features_indexes if i not in index_to_remove]
+ mask = np.ones(len(features_indexes), dtype=bool)
170
+ mask[list(index_to_remove)] = False
171
+ selected_features = np.array(features_indexes)[mask]
172
173
return selected_features
174
0 commit comments