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

Merged
merged 62 commits into from
Feb 28, 2025

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 78.94737% with 4 lines in your changes missing coverage. Please review.

Project coverage is 70%. Comparing base (15dd983) to head (8aee1a2).
Report is 1 commits behind head on master.

Additional details and impacted files
@@          Coverage Diff           @@
##           master   #2860   +/-   ##
======================================
- Coverage      70%     70%   -0%     
======================================
  Files         348     348           
  Lines       19475   19486   +11     
======================================
+ Hits        13611   13618    +7     
- Misses       5864    5868    +4     

@mergify mergify bot removed the has conflicts label Dec 16, 2024
@Borda
Copy link
Member

Borda commented Feb 14, 2025

@SkafteNicki lets finish this one :)

@mergify mergify bot removed the has conflicts label Feb 26, 2025
@mergify mergify bot added ready and removed has conflicts labels Feb 27, 2025
@SkafteNicki SkafteNicki merged commit 73cc585 into master Feb 28, 2025
61 checks passed
@SkafteNicki SkafteNicki deleted the bugfix/segmentation_dice_zero_overlap branch February 28, 2025 07:09
Borda pushed a commit that referenced this pull request Feb 28, 2025
* fix implementation

* add tests

* changelog

* introduce zero_division argument

* add tests

* changelog

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* less restrictive check

---------

Co-authored-by: Jirka Borovec <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
(cherry picked from commit 73cc585)
Borda pushed a commit that referenced this pull request Mar 3, 2025
* fix implementation

* add tests

* changelog

* introduce zero_division argument

* add tests

* changelog

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* less restrictive check

---------

Co-authored-by: Jirka Borovec <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
(cherry picked from commit 73cc585)
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
3 participants