You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make sklearn.metrics._scorer._MultimetricScorer part of the public API #31540
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
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.
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.
Activity
adrinjalali commentedon Jun 15, 2025
What exactly is your usecase @MarcBresson ? We don't necessarily have to make the class public. We can allow
make_scorerto 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.MarcBresson commentedon Aug 13, 2025
Hello, thank you for your patience :)
pradipdharam commentedon Mar 21, 2026
@MarcBresson - this is a perfect requirement. Hope few of the the comments resolves this.