-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 loss_fn to IgniteMetric and rename to IgniteMetricHandler #6695
Conversation
Signed-off-by: Matthias Hadlich <matthiashadlich@posteo.de>
Signed-off-by: Matthias Hadlich <matthiashadlich@posteo.de>
for more information, see https://pre-commit.ci
Signed-off-by: Matthias Hadlich <matthiashadlich@posteo.de>
Signed-off-by: Matthias Hadlich <matthiashadlich@posteo.de>
for more information, see https://pre-commit.ci
Okay, I will implement the changes this weekend. Just to make sure I am understanding you @wyli and @ericspod correctly:
Sounds good? |
thanks @matt3o, the plan looks good to me. |
Sounds good to me too. If changing the name isn't a big problem we should do it but keep |
Signed-off-by: Matthias Hadlich <matthiashadlich@posteo.de>
Signed-off-by: Matthias Hadlich <matthiashadlich@posteo.de>
Signed-off-by: Matthias Hadlich <matthiashadlich@posteo.de>
Signed-off-by: Matthias Hadlich <matthiashadlich@posteo.de>
for more information, see https://pre-commit.ci
I started the implementation as discussed. Also I added a first test and copied it over from |
Signed-off-by: Matthias Hadlich <matthiashadlich@posteo.de>
Signed-off-by: Matthias Hadlich <matthiashadlich@posteo.de>
Sure, please simply change the expected results, there would be some discrepancies between MeanDice and DiceLoss… |
Signed-off-by: Matthias Hadlich <matthiashadlich@posteo.de>
Signed-off-by: Matthias Hadlich <matthiashadlich@posteo.de>
Signed-off-by: Matthias Hadlich <matthiashadlich@posteo.de>
8c173fc
to
acceeab
Compare
Finally I need instructions how to generate the alias and how to set the rename warning for IgniteMetricHandler. Apart from that the code is already running and all tests should pass. I updated the class name in the docs, tell me if there is anything more to do. |
Signed-off-by: Matthias Hadlich <matthiashadlich@posteo.de>
Signed-off-by: Matthias Hadlich <matthiashadlich@posteo.de>
Signed-off-by: Matthias Hadlich <matthiashadlich@posteo.de>
looks good to me, please add the unit tests to this list https://github.com/Project-MONAI/MONAI/blob/dev/tests/min_tests.py#L75 so that it's skipped when running in a minimal environment |
73f4a84
to
b800496
Compare
Signed-off-by: Matthias Hadlich <matthiashadlich@posteo.de>
for more information, see https://pre-commit.ci Signed-off-by: Matthias Hadlich <matthiashadlich@posteo.de>
Signed-off-by: Matthias Hadlich <matthiashadlich@posteo.de>
b800496
to
c8027b2
Compare
Signed-off-by: Matthias Hadlich <matthiashadlich@posteo.de>
8d93ea0
to
eaf7fd0
Compare
Signed-off-by: Matthias Hadlich <matthiashadlich@posteo.de>
eaf7fd0
to
966c99a
Compare
/build |
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.
thanks, it looks good to me, premerge tests all good
Signed-off-by: Matthias Hadlich <matthiashadlich@posteo.de>
/build |
Description
As explained in #6693 I would like to use the DiceCELoss as a train metric as well. This branch adds a very crude but working version of that.
The added tests, which I copied from the MeanDice metric, do still fail. It would be cool if someone more experienced could check, what needs to be done there.
I ran the code with my full DeepEdit setup and it appears to be working just fine there.
No formatting checks done so far - I want to find out first if this code is useful for others. Docs not updated yet either.
Types of changes
./runtests.sh -f -u --net --coverage
../runtests.sh --quick --unittests --disttests
.make html
command in thedocs/
folder.