Skip to content

Commit d5cc974

Browse files
Update fslite/fs/multivariate.py
Co-authored-by: codiumai-pr-agent-pro[bot] <151058649+codiumai-pr-agent-pro[bot]@users.noreply.github.com>
1 parent 6ecbaca commit d5cc974

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fslite/fs/multivariate.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ def multivariate_correlation_selector(
166166
)
167167

168168
# Select feature index to keep
169-
selected_features = [i for i in features_indexes if i not in index_to_remove]
169+
mask = np.ones(len(features_indexes), dtype=bool)
170+
mask[list(index_to_remove)] = False
171+
selected_features = np.array(features_indexes)[mask]
170172

171173
return selected_features
172174

0 commit comments

Comments
 (0)