Skip to content

Commit

Permalink
Update fslite/fs/multivariate.py
Browse files Browse the repository at this point in the history
Co-authored-by: codiumai-pr-agent-pro[bot] <151058649+codiumai-pr-agent-pro[bot]@users.noreply.github.com>
  • Loading branch information
ypriverol and qodo-merge-pro[bot] authored Sep 25, 2024
1 parent 6ecbaca commit d5cc974
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fslite/fs/multivariate.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ def multivariate_correlation_selector(
)

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

return selected_features

Expand Down

0 comments on commit d5cc974

Please sign in to comment.