Skip to content

FEA SLEP006: Metadata routing for learning_curve - #28975

Merged
OmarManzoor merged 12 commits into
scikit-learn:mainfrom
StefanieSenger:metadata_learning_curve
May 17, 2024
Merged

OmarManzoor merged 12 commits into
scikit-learn:mainfrom
StefanieSenger:metadata_learning_curve

Conversation

@StefanieSenger

Copy link
Copy Markdown
Member

This PR adds metadata routing to learning_curve by principally following the same pattern as in cross_validate.

Reference Issues/PRs

Towards #22893

@github-actions

github-actions Bot commented May 8, 2024 •

Copy link
Copy Markdown

✔️ Linting Passed

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

Generated for commit: af8efad. Link to the linter CI: here

@adrinjalali adrinjalali 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.

only nits, and merge conflicts, otherwise nice one!

Comment thread sklearn/model_selection/_validation.py Resolved
sample_weight="fit_sample_weight", metadata="fit_metadata"
)

if func is learning_curve:

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.

I would move this to a separate test instead of adding to this test.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done.

Comment thread sklearn/utils/_metadata_requests.py Resolved

@StefanieSenger StefanieSenger left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@adrinjalali Thanks for your review. I've made that little change.

@adrinjalali adrinjalali 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.

@OmarManzoor @glemaitre could you have a look?

Comment thread sklearn/model_selection/_validation.py Resolved

@OmarManzoor OmarManzoor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Thanks @StefanieSenger

@glemaitre glemaitre changed the title FEA Metadata routing for learning_curve FEA SLEP006: Metadata routing for learning_curve May 16, 2024
@glemaitre glemaitre mentioned this pull request May 16, 2024
21 of 28 tasks
Co-authored-by: Adrin Jalali <[email protected]>
Co-authored-by: Omar Salman <[email protected]>
@OmarManzoor
OmarManzoor merged commit 77fc72c into scikit-learn:main May 17, 2024
@StefanieSenger
StefanieSenger deleted the metadata_learning_curve branch May 17, 2024 13:34
@jeremiedbb jeremiedbb mentioned this pull request May 20, 2024
14 tasks done
@jeremiedbb jeremiedbb mentioned this pull request Jul 2, 2024
11 tasks done
@StefanieSenger StefanieSenger added the Metadata Routing all issues related to metadata routing, slep006, sample props label Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Metadata Routing all issues related to metadata routing, slep006, sample props module:model_selection module:utils

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants