-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[WIP] ENH create callable class to get adequate scorer for a problem #17930
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to see a full confusion matrix being reported with this technology, e.g. confusion(A,B)
. Is that crazy?
|
||
estimator = GridSearchCV( | ||
DecisionTreeClassifier(), param_grid={"max_depth": [3, 5]}, | ||
scoring=average_precision_scorer, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had thought it should be possible to also just pass scoring=scorers
. Does this work in the present PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume no (I did not remember I had this PR). scorers
should be a dict
if we want to have multimetric
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or, after #15126, scorers can be a callable that returns a dict.
closes #17889
Alternative to #17889