-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
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
FIX Non-fit methods no long raises UserWarning for valid dataframes #21199
Conversation
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. |
There was a problem hiding this 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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
…cikit-learn#21199) Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
…21199) Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
…cikit-learn#21199) Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
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.