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

Fix dice score when zero overlap between preds and target #2860

Open
wants to merge 29 commits into
base: master
Choose a base branch
from

Conversation

SkafteNicki
Copy link
Member

@SkafteNicki SkafteNicki commented Dec 3, 2024

What does this PR do?

Fixes #2851
Fixes #2850

Before submitting
  • Was this discussed/agreed 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 🙃


📚 Documentation preview 📚: https://torchmetrics--2860.org.readthedocs.build/en/2860/

@SkafteNicki SkafteNicki added the bug / fix Something isn't working label Dec 3, 2024
@SkafteNicki SkafteNicki added this to the v1.5.x milestone Dec 3, 2024
Copy link

codecov bot commented Dec 3, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 35%. Comparing base (962af66) to head (4b07905).
Report is 7 commits behind head on master.

❗ There is a different number of reports uploaded between BASE (962af66) and HEAD (4b07905). Click for more details.

HEAD has 392 uploads less than BASE
Flag BASE (962af66) HEAD (4b07905)
torch2.0.1+cpu 24 3
python3.10 72 9
Windows 16 2
cpu 112 14
macOS 24 3
torch2.0.1 16 2
python3.12 24 3
torch2.5.0 8 1
torch2.5.0+cpu 8 1
Linux 72 9
python3.11 8 1
torch2.4.1+cu121 16 2
torch2.3.1+cpu 8 1
torch2.1.2+cpu 8 1
torch2.5.0+cu124 16 2
python3.9 8 1
torch2.2.2+cpu 8 1
Additional details and impacted files
@@           Coverage Diff            @@
##           master   #2860     +/-   ##
========================================
- Coverage      69%     35%    -34%     
========================================
  Files         346     346             
  Lines       19129   19131      +2     
========================================
- Hits        13227    6752   -6475     
- Misses       5902   12379   +6477     

@mergify mergify bot removed the has conflicts label Dec 16, 2024
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
Projects
None yet
3 participants