-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
MNT fix error message for UnsetMetadataPassedError in validation #31014
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
MNT fix error message for UnsetMetadataPassedError in validation #31014
Conversation
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.
Would be nice to change our tests for these, at least one of them, to check for the whole message to actually test for this change in this PR.
" want to use and `metadata=False` for not using it. See the" | ||
" Metadata Routing User guide" | ||
" <https://scikit-learn.org/stable/metadata_routing.html> for more" | ||
" information." |
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.
note that if you think we can add this part to the error message for others in general (which I think is now missing) I'd be happy about that too.
@@ -1184,7 +1173,7 @@ def cross_val_predict( | |||
# methods. For these router methods, we create the router to use | |||
# `process_routing` on it. | |||
router = ( | |||
MetadataRouter(owner="cross_validate") | |||
MetadataRouter(owner="cross_val_predict") |
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.
Correction of owner-string. Unrelated to this PR.
Fixes error message in the validation module.
closes #30818
follow-up fix for #28517 and #28056