Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ArturoAmorQ
Copy link
Member

@ArturoAmorQ ArturoAmorQ commented Sep 2, 2022

Reference Issues/PRs

Relevant for simplifying #24200.

What does this implement/fix? Explain your changes.

Micro-averaging was not supported for the multiclass roc_auc_score. There is no reason for not doing so, as the label_binarize function is run internally.

This PR makes micro-averaging roc_auc_score accessible to the users without needing an external label_binarize.

Any other comments?

I added a test that covers this line of code and as side effect, checks for consistency with chance level.

Copy link
Member

@ogrisel ogrisel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. Here is some feedback. I think the example should be updated accordingly in a follow-up PR once your already ongoing PR has been reviewed and merged.

Copy link
Member

@ogrisel ogrisel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the new tests. They are very clean and convincing.

Just a few suggestions to clarify the intent.

@ogrisel ogrisel added Quick Review For PRs that are quick to review New Feature labels Sep 9, 2022
Copy link
Member

@jjerphan jjerphan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you, @ArturoAmorQ.

Here are a few minor comments.

@ArturoAmorQ
Copy link
Member Author

Thanks for your time and feedback @ogrisel, @jjerphan and @glemaitre. All your comments have been addressed.

@jjerphan jjerphan merged commit 189d2f3 into scikit-learn:main Sep 14, 2022
@jjerphan jjerphan deleted the ovr_micro branch September 14, 2022 08:53
@jjerphan
Copy link
Member

Thank you, @ArturoAmorQ!

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

Labels

module:metrics New Feature Quick Review For PRs that are quick to review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants