-
Notifications
You must be signed in to change notification settings - Fork 413
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
[Segmentation] Added generalized dice score metric #1090
Conversation
I beilve that this shall be automatically resolved in cmd by |
I tried that, but got |
03ca976
to
d48dd72
Compare
@jlcsilva shall be resolved now, pls check if I did not make a mistake... 🐰 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1090 +/- ##
========================================
- Coverage 69% 33% -35%
========================================
Files 307 311 +4
Lines 17427 17527 +100
========================================
- Hits 11989 5849 -6140
- Misses 5438 11678 +6240 |
Seems ok to me. Also, I know why the tests are failing, but I'm unsure about what to do. In the file tests/unittests/classification/inputs.py |
Hi @jlcsilva, when looking at the changes in the PR there also seems to be some changes to other metrics. Any particular reason for this? |
@SkafteNicki I believe they are coming from resolving the merge conflicts |
In the StatScore class I added the None option for the reduce argument, which I needed for my generalized dice score implementation, and changed its documentation and that of its subclasses accordingly. Additionally, I corrected some typos and added some missing information to these classes' documentation. Finally, I changes the data type of some test inputs to match that in the general input type documentation page, and added new multidimensional input tensors. To me, this seems to be what is making the code fail the tests. Currently, I'm out of office, but I'll check it as soon as I go back to work |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
…metrics into generalized_dice_score
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So happy to see it landing 🤩
for more information, see https://pre-commit.ci
What does this PR do?
Fixes #1089 . Didn't manage to make it work for multidimensional multilabel scenarios. However, that shouldn't a very common use case.
Before submitting
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 🙃