[go: up one dir, main page]

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

ENH warn if {transform, predict} consume metadata but no custom fit_{transform, predict} is defined #26831

Merged
merged 4 commits into from
Jul 14, 2023

Conversation

adrinjalali
Copy link
Member

In #26789 we encountered a case where transform would consume a metadata, but pipeline would call fit_transform which only routes metadata to fit. This PR makes it so that in those cases a warning is raised.

cc @glemaitre

@github-actions
Copy link
github-actions bot commented Jul 13, 2023

✔️ Linting Passed

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

Generated for commit: 513c10f. Link to the linter CI: here

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 on my side.

sklearn/base.py Outdated Show resolved Hide resolved
Co-authored-by: Omar Salman <omar.salman@arbisoft.com>
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
Copy link
Member Author

@OmarManzoor wanna push the green button 😁 ?

@OmarManzoor
Copy link
Contributor

@OmarManzoor wanna push the green button 😁 ?

Sure 🙂

@OmarManzoor OmarManzoor merged commit b004f3a into scikit-learn:main Jul 14, 2023
23 checks passed
@adrinjalali adrinjalali deleted the slep6/composite_warning branch July 14, 2023 12:56
punndcoder28 pushed a commit to punndcoder28/scikit-learn that referenced this pull request Jul 29, 2023
…transform, predict} is defined (scikit-learn#26831)

Co-authored-by: Omar Salman <omar.salman@arbisoft.com>
REDVM pushed a commit to REDVM/scikit-learn that referenced this pull request Nov 16, 2023
…transform, predict} is defined (scikit-learn#26831)

Co-authored-by: Omar Salman <omar.salman@arbisoft.com>
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.

3 participants