Skip to content
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

TST improve metadata routing tests #29226

Merged
merged 25 commits into from
Jun 14, 2024
Merged

Conversation

adrinjalali
Copy link
Member

This improves the tests for metadata routing in the way things are recorded and checked in test estimators.

This came up when working on Pipeline's transform_input (#28901) and made finding a few issues much easier.

@glemaitre @OmarManzoor this should be easy-ish to merge, and would make the pipeline PR much smaller and easier to review, and should help @adam2392 with another SLEP6 PR.

Copy link

github-actions bot commented Jun 10, 2024

✔️ Linting Passed

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

Generated for commit: 7b75a8e. Link to the linter CI: here

Copy link
Member

@adam2392 adam2392 left a comment

Choose a reason for hiding this comment

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

Awesome! Thanks for the PR to make the metadata testing easier.

sklearn/tests/metadata_routing_common.py Outdated Show resolved Hide resolved
sklearn/tests/metadata_routing_common.py Outdated Show resolved Hide resolved
sklearn/tests/metadata_routing_common.py Outdated Show resolved Hide resolved
@glemaitre glemaitre self-requested a review June 10, 2024 14:39
Copy link
Member

@glemaitre glemaitre left a comment

Choose a reason for hiding this comment

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

LGTM. I only have one portion that I don't recall what we are doing there.

sklearn/tests/metadata_routing_common.py Outdated Show resolved Hide resolved
sklearn/tests/metadata_routing_common.py Outdated Show resolved Hide resolved
sklearn/tests/metadata_routing_common.py Outdated Show resolved Hide resolved
sklearn/tests/metadata_routing_common.py Outdated Show resolved Hide resolved
sklearn/tests/metadata_routing_common.py Show resolved Hide resolved
Copy link
Member

@adam2392 adam2392 left a comment

Choose a reason for hiding this comment

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

It LGTM and I just tried it out on #28494

@adrinjalali
Copy link
Member Author

@OmarManzoor you think you could have a look and hopefully merge maybe?

@OmarManzoor
Copy link
Contributor

@adrinjalali Sure I'll have a look soon.

Copy link
Contributor

@OmarManzoor OmarManzoor left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @adrinjalali

I just have one question.

sklearn/tests/test_metaestimators_metadata_routing.py Outdated Show resolved Hide resolved
@OmarManzoor OmarManzoor enabled auto-merge (squash) June 14, 2024 10:03
@OmarManzoor OmarManzoor merged commit 72844cd into scikit-learn:main Jun 14, 2024
28 checks passed
@adrinjalali adrinjalali deleted the slep6/tests branch June 14, 2024 10:50
@jeremiedbb jeremiedbb mentioned this pull request Jul 2, 2024
11 tasks
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.

4 participants