Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a stricter test for feature elimination #1674

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

e10e3
Copy link
Contributor

@e10e3 e10e3 commented Mar 4, 2025

This new test is similar to the existing check_disappearing_features, but tests the case where only one feature is left.

Such a situation can happen when one uses aggressive feature reduction preprocessing.

It tests for the case encountered in #1560, and discovered a similar problem in SRPClassifier (fixed in the PR).

e10e3 added 2 commits March 4, 2025 18:13
This test checks the case where only one feature is left, something that
can happen when using feature selection preprocessing.
Instead of trying to sample more features that there are, return the
input list. This prevents a crash when the number of features
diminishes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant