Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@thomasjpfan
Copy link
Member

Reference Issues/PRs

Closes #27540

What does this implement/fix? Explain your changes.

This PR converts the error in SelectKBest into a warning.

@github-actions
Copy link

github-actions bot commented Nov 24, 2023

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: efb6f2a. Link to the linter CI: here

Copy link
Member

@glemaitre glemaitre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @thomasjpfan

Co-authored-by: Guillaume Lemaitre <[email protected]>
@glemaitre glemaitre added the Waiting for Second Reviewer First reviewer is done, need a second one! label Nov 27, 2023
@thomasjpfan thomasjpfan added the Quick Review For PRs that are quick to review label Nov 29, 2023
not check for nans during input validation.
:pr:`21807` by `Thomas Fan`_.

- |API| :class:`feature_selection.SelectKBest` and
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it really API related? The API doesn’t change. Maybe ENH or something else. But no strong opinion.

@lorentzenchr lorentzenchr changed the title API Warn in SelectKBest when k > n_features ENH Warn in SelectKBest when k > n_features Dec 1, 2023
@lorentzenchr lorentzenchr merged commit 7d5428d into scikit-learn:main Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module:feature_selection Quick Review For PRs that are quick to review Waiting for Second Reviewer First reviewer is done, need a second one!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SelectKBest shouldn't raise if k > n_samples

3 participants