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
Jaccard UndefinedMetricWarning gives bad advice #17826
Labels
Comments
Suggested patch:
|
Thanks.. Must have been an omission in introducing zero_division elsewhere.
A pull request with your patch and a test is welcome
|
Is there any objection if I work on this? |
@josephwillard please do! I am too busy at work to write unit tests anytime soon. I just created a PR with a partial fix. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
If you run jaccard with no true positives or predicted true labels, it gives the following warning:
I tried to heed the warning's advice. I tried adding
zero_division=1
but then get this error:Given the first warning, I expect jaccard to have a zero_division kwarg.
Versions
The text was updated successfully, but these errors were encountered: