Skip to content

DOC Add example on validation set routing - #35144

Merged
ogrisel merged 13 commits into
scikit-learn:mainfrom
StefanieSenger:X_val_HGB
Nov 2, 2026
Merged

ogrisel merged 13 commits into
scikit-learn:mainfrom
StefanieSenger:X_val_HGB

Conversation

@StefanieSenger

@StefanieSenger StefanieSenger commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

Reference Issues/PRs

addresses #34957 (comment)
also towards #34901

What does this implement/fix? Explain your changes.

This adds an example to show how to easily use validation sets with metadata routing and auto-requests. We also add links to it, so users can find it.

This PR already contains the fix that is proposed by @lepennec in #35139 because the example would fail otherwise.
But we do the real fix in their PR.

AI usage disclosure

I used AI assistance for:

  • Documentation (including examples)

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

LGMT @StefanieSenger, that's a useful example !

Co-authored-by: antoinebaker <[email protected]>
Co-authored-by: Christian Lorentzen <[email protected]>
@github-actions github-actions Bot added the CI:Linter failure The linter CI is failing on this PR label Oct 21, 2026
@github-actions github-actions Bot removed the CI:Linter failure The linter CI is failing on this PR label Oct 21, 2026

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

Thank you @antoinebaker and @lorentzenchr!
I've applied all your suggestions. :)

@lorentzenchr

Copy link
Copy Markdown
Member

One possible objection is if we need a new example. I think the answer is yes, to give it more visibility.
But is it the right folder/section in ensemle? Maybe under compose (pipelines and composite estimators)

@StefanieSenger

Copy link
Copy Markdown
Member Author

One possible objection is if we need a new example. I think the answer is yes, to give it more visibility.
But is it the right folder/section in ensemle? Maybe under compose (pipelines and composite estimators)

We don't have anything like this (except in the release highlights of 1.7), so I think it is good to add this example.
I agree that it better suits the composite category. I have moved it there.

This PR is supposed to go into the 1.10 release and #35204 is waiting for it.
Can we merge this, @lorentzenchr?

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

LGTM!

@ogrisel
ogrisel merged commit c147f87 into scikit-learn:main Nov 2, 2026
38 checks passed
@github-project-automation github-project-automation Bot moved this from PR in progress to Done in Labs Nov 2, 2026
@StefanieSenger
StefanieSenger deleted the X_val_HGB branch November 2, 2026 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Metadata Routing all issues related to metadata routing, slep006, sample props module:ensemble module:preprocessing size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants