Skip to content
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

Use sklearn for ROC curve #202

Merged
merged 2 commits into from
Sep 10, 2021
Merged

Use sklearn for ROC curve #202

merged 2 commits into from
Sep 10, 2021

Conversation

darabos
Copy link
Contributor

@darabos darabos commented Sep 10, 2021

Thanks @erbenpeter for the comments in #197. I added the sampling to avoid pushing a million points to the plot. But since it's sampled anyway, we can also make the ROC curve in Python. It's one line with scikit-learn and it properly handles the case where the same score is returned multiple times.

Before/after for random 0/1 scores on a balanced dataset:
image

@darabos darabos merged commit a37d4d0 into main Sep 10, 2021
@darabos darabos deleted the darabos-sklearn-roc branch September 10, 2021 11:08
Copy link
Contributor

@erbenpeter erbenpeter left a comment

Choose a reason for hiding this comment

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

Look nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants