Skip to content

feat: Make it possible to pass sklearn metrics without "neg_" #2607

Description

@auguste-probabl

Is your feature request related to a problem? Please describe.

The following works:

from sklearn.datasets import make_classification
from sklearn.ensemble import RandomForestClassifier
from skore import evaluate

X, y = make_classification(random_state=0)
report = evaluate(
    RandomForestClassifier(max_depth=2, random_state=0), X, y, pos_label=1
)
report.metrics.summarize(metric='neg_mean_squared_error').frame()

But this doesn't:

report.metrics.summarize(metric='mean_squared_error').frame()

Describe the solution you'd like

Make it work

Describe alternatives you've considered, if relevant

No response

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

ready for dev 💻Issue specified enough and ready to be implemented

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions