Skip to content

Make sklearn.metrics._scorer._MultimetricScorer part of the public API #31540

Open

Description

@MarcBresson

Describe the workflow you want to enable

This tool is great to run multiple scorers on a single estimator thanks to the caching mechanism. It is a bummer that it is not part of the public API.

Describe your proposed solution

Make it part of the public API

Describe alternatives you've considered, if relevant

No response

Additional context

No response

Activity

  1. added
    Needs Decision
    and removed
    Needs Triage
    on Jun 13, 2025
  2. adrinjalali commented on Jun 15, 2025

    @adrinjalali
    Member

    What exactly is your usecase @MarcBresson ? We don't necessarily have to make the class public. We can allow make_scorer to accept a dictionary / list of scorers and return the object instead, for a nicer API maybe. It can probably even simplify a few places inside scikit-learn itself.

  3. MarcBresson commented on Aug 13, 2025

    @MarcBresson
    ContributorAuthor

    Hello, thank you for your patience :)

    • I believe people rarely computes only one metric, and always deal with multiple at a time
    • our use case is exactly that, we are building (in a way) an autoML wrapper around Scikit learn (a bit like what skrub is doing). In that sense, my very selfish goal is to decrease the maintenance required for our repos, and hence, stop dealing with what the scikit learn team has already spent time developing. I spent countless hours exploring the source code of scikit learn, and it lead to this discovery.
  4. pradipdharam commented on Mar 21, 2026

    @pradipdharam

    @MarcBresson - this is a perfect requirement. Hope few of the the comments resolves this.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions