8000 MNT fix error message for UnsetMetadataPassedError in validation by StefanieSenger · Pull Request #31014 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

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

Merged
merged 4 commits into from
Mar 24, 2025

Conversation

StefanieSenger
Copy link
Contributor

Fixes error message in the validation module.

closes #30818

follow-up fix for #28517 and #28056

Copy link
github-actions bot commented Mar 18, 2025

✔️ Linting Passed

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

Generated for commit: 940c36d. Link to the linter CI: here

Copy link
Member
@adrinjalali adrinjalali left a 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.

Comment on lines -389 to -392
" 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."
Copy link
Member

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")
Copy link
Contributor Author

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.

@adrinjalali adrinjalali enabled auto-merge (squash) March 24, 2025 14:20
@adrinjalali adrinjalali merged commit f4ba17b into scikit-learn:main Mar 24, 2025
31 checks passed
@StefanieSenger StefanieSenger deleted the fix_errormessage branch March 25, 2025 08:35
lucyleeow pushed a commit to lucyleeow/scikit-learn that referenced this pull request Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UnsetMetadataPassedError can point towards the wrong method
2 participants
0