Skip to content

FIX Non-fit methods no long raises UserWarning for valid dataframes #21199

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

Merged

Conversation

thomasjpfan
Copy link
Member

Reference Issues/PRs

Fixes #21188

What does this implement/fix? Explain your changes.

This PR removes the double validation warnings from the estimators and updates the common test to check for the warning.

@thomasjpfan thomasjpfan added this to the 1.0.1 milestone Sep 29, 2021
@glemaitre
Copy link
Member

The failure comes from the fact that the underlying validation will not convert to the right sparse format in the neighbours. We should probably check for that.

Copy link
Member

@jeremiedbb jeremiedbb left a comment

Choose a reason for hiding this comment

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

In the first place I would have kept the validation in the predict, predict_proba, etc methods and disable validation for the nested calls to the public API, but I'm fine with this approach to have this be fixed asap. LGTM

Copy link
Member

@ogrisel ogrisel left a comment

Choose a reason for hiding this comment

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

LGTM!

@ogrisel ogrisel merged commit 7c8a264 into scikit-learn:main Oct 1, 2021
@glemaitre glemaitre mentioned this pull request Oct 23, 2021
10 tasks
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Oct 23, 2021
glemaitre pushed a commit that referenced this pull request Oct 25, 2021
…21199)


Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
samronsin pushed a commit to samronsin/scikit-learn that referenced this pull request Nov 30, 2021
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.

False UserWarning for features names
5 participants