Skip to content

FIX Route splitter metadata in CalibratedClassifierCV with ensemble=False - #35539

Open
kingroyale537 wants to merge 1 commit into
scikit-learn:mainfrom
kingroyale537:fix/calibrated-clf-ensemble-false-splitter-routing
Open

kingroyale537 wants to merge 1 commit into
scikit-learn:mainfrom
kingroyale537:fix/calibrated-clf-ensemble-false-splitter-routing

Conversation

@kingroyale537

@kingroyale537 kingroyale537 commented Nov 27, 2026 •

Copy link
Copy Markdown

Reference Issues/PRs

Fixes #35523

What does this implement/fix? Explain your changes.

When CalibratedClassifierCV(..., ensemble=False) runs with metadata routing enabled, pass routed_params.splitter.split alongside routed_params.estimator.fit to cross_val_predict(..., params=...) so splitter metadata like groups reaches cv.split() instead of being dropped.

Any other comments?

None.

@github-actions

Copy link
Copy Markdown

Thank you for opening your first pull request to scikit-learn! 🎉

To help get your contribution reviewed, please make sure that:

  • You have filled out the pull request template.

  • The pull request addresses an existing issue that is ready for contribution (e.g. not tagged as 'Needs Triage', 'Needs Decision', ...). If you are proposing a new feature, please open an issue to discuss it first.

  • There are no other open pull requests already targeting the same issue.

  • You have followed the pull request checklist. In particular, linting and tests should pass.

This branch has not been deployed

No deployments
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.

CalibratedClassifierCV loses groups with ensemble=False and metadata routing enabled

1 participant