Skip to content

Plan for incrementally simplifying metadata routing module #34372

Open

Description

@StefanieSenger

Warning

This issue is not yet ready for a PR. If you are interested in contributing to scikit-learn, please have a look at our contributing guidelines, and in particular the sections for new contributors and the "Needs triage" label.

Maintainer note: I am planning out my own work here. If you're not in the scikit-learn organisation, please refrain from opening a PR.

There are several steps to take to de-tangle the design of the metadata routing module in sklearn/utils/_metadata_requests.py and the utilities and tests around that module. The current design often intertwines several functionalities, so it will take several iterations to take them apart. The goal is to make metadata routing simpler and easier to maintain by the 1.10 release in November 2026.

I would like to lead a series of PRs that result in a simpler design. Each PR should leave metadata routing in a working, tested state; the full simplification is visible only across the series.

This issue tracks the planned steps. I will update and adjust as I go.

Goal

Simpler, easier-to-maintain metadata routing by 1.10 (Nov 2026), or anytime in the future.

Possible measures (to check for feasibility)

Comments and feedback welcome here, @adrinjalali and @OmarManzoor. :)
Also CC @scikit-learn/core-devs in case that's of interest to someone else.

Activity

  1. added
    Needs Triage
    on Jun 23, 2026
  2. added
    Metadata Routing
    and removed
    Needs Triage
    on Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Metadata RoutingNeeds work

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions