Skip to content

Added type-specific error message to cross_validate function - #1799

Merged
rcap107 merged 5 commits into
skrub-data:mainfrom
emassoulie:issue_1773_data_op_cross_validate_error
Dec 11, 2025
Merged

rcap107 merged 5 commits into
skrub-data:mainfrom
emassoulie:issue_1773_data_op_cross_validate_error

Conversation

@emassoulie

Copy link
Copy Markdown
Contributor

Bug Fix Pull Request

Description

Fixes #1773, giving a more verbose error message when the cross_validate function receives an incorrect input.

How Has This Been Tested?

Running cross_validate with expected and unexpected types.

Steps to Reproduce (original bug)

Run skrub.cross_validate with a data_op type as input rather than a learner.

Additional Notes

@emassoulie emassoulie self-assigned this Dec 10, 2025

@jeromedockes jeromedockes left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks great! thank you @emassoulie and welcome to skrub :)

Comment thread skrub/_data_ops/_estimator.py Resolved
emassoulie and others added 2 commits December 11, 2025 09:31

@rcap107 rcap107 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me, thanks a lot @emassoulie

@rcap107
rcap107 merged commit 5548808 into skrub-data:main Dec 11, 2025
29 checks passed
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.

Improve error message when a data op is passed to skrub.cross_validate rather than a learner or search

3 participants