Skip to content

2627 Enhance surface metrics warning#2638

Merged
Nic-Ma merged 5 commits into
Project-MONAI:devfrom
Nic-Ma:2627-enhance-metrics-doc
Jul 21, 2021
Merged

2627 Enhance surface metrics warning#2638
Nic-Ma merged 5 commits into
Project-MONAI:devfrom
Nic-Ma:2627-enhance-metrics-doc

Conversation

@Nic-Ma

@Nic-Ma Nic-Ma commented Jul 21, 2021

Copy link
Copy Markdown
Contributor

Fixes #2627 .

Description

This PR enhanced the confusing warning messages of distance metrics.

Status

Ready

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • Breaking change (fix or new feature that would cause existing functionality to change).
  • New tests added to cover the changes.
  • Integration tests passed locally by running ./runtests.sh -f -u --net --coverage.
  • Quick tests passed locally by running ./runtests.sh --quick --unittests.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

@Nic-Ma

Nic-Ma commented Jul 21, 2021

Copy link
Copy Markdown
Contributor Author

/black

@yiheng-wang-nv yiheng-wang-nv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I think this change is better than the original implementation to avoid "duplicated" warnings when directed == False for HausdorffDistanceMetric

@Nic-Ma

Nic-Ma commented Jul 21, 2021

Copy link
Copy Markdown
Contributor Author

Hi @yiheng-wang-nv ,

Thanks for your review.
The main problem is when exchanged pred and label to compute distance, the warning message is wrong.

Thanks.

@Nic-Ma Nic-Ma enabled auto-merge (squash) July 21, 2021 09:25
@wyli

wyli commented Jul 21, 2021

Copy link
Copy Markdown
Contributor

/build

@Nic-Ma Nic-Ma merged commit 0266743 into Project-MONAI:dev Jul 21, 2021
rijobro added a commit that referenced this pull request Jul 22, 2021
* 2630 adds look_up_option (#2631)

* adds look_up_options

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* adds docstring example

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* fixes tests

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* update enum look ups

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* fixes typos

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* update based on comments

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* [DLMED] enhance distance metrics warning (#2638)

Signed-off-by: Nic Ma <nma@nvidia.com>

* randweightedcrop (partially done)

Signed-off-by: Richard Brown <33289025+rijobro@users.noreply.github.com>

* fixes Pad type hint

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

Co-authored-by: Nic Ma <nma@nvidia.com>
Co-authored-by: Richard Brown <33289025+rijobro@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SurfaceDistanceMetric (SDM) and HausdorffDistanceMetric (HDM) print wrong all-zero warning messages

3 participants