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

Add missing dtype check in PrecisionRecallCurve #1457

Merged
merged 9 commits into from Jan 24, 2023

Conversation

SkafteNicki
Copy link
Member

@SkafteNicki SkafteNicki commented Jan 23, 2023

What does this PR do?

Fixes #1443
Add missing dtype check on the target tensor for PR-curve metric, which leads to unwanted errors later in the code.

Before submitting

  • Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure to update the docs?
  • Did you write any new necessary tests?

PR review

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

Did you have fun?

Make sure you had fun coding 🙃

@SkafteNicki SkafteNicki added the bug / fix Something isn't working label Jan 23, 2023
@SkafteNicki SkafteNicki added this to the v0.12 milestone Jan 23, 2023
@SkafteNicki SkafteNicki changed the title Missing dtype check Add missing dtype check in PrecisionRecallCurve Jan 23, 2023
@codecov
Copy link

codecov bot commented Jan 23, 2023

Codecov Report

Merging #1457 (56102e0) into master (08244a8) will decrease coverage by 38%.
The diff coverage is 100%.

Additional details and impacted files
@@           Coverage Diff            @@
##           master   #1457     +/-   ##
========================================
- Coverage      90%     51%    -38%     
========================================
  Files         211     211             
  Lines       10850   10854      +4     
========================================
- Hits         9720    5552   -4168     
- Misses       1130    5302   +4172     

@mergify mergify bot added the ready label Jan 24, 2023
@Borda Borda enabled auto-merge (squash) January 24, 2023 16:36
@Borda Borda merged commit 94c49f3 into master Jan 24, 2023
@Borda Borda deleted the bugfix/missing_dtype_check branch January 24, 2023 17:43
Borda pushed a commit that referenced this pull request Jan 30, 2023
Co-authored-by: stancld <daniel.stancl@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com>
(cherry picked from commit 94c49f3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug / fix Something isn't working ready
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Thresholds not working?
3 participants