-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add parameter to DiceMetric and DiceHelper classes #8774
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
Open
VijayVignesh1
wants to merge
15
commits into
Project-MONAI:dev
Choose a base branch
from
VijayVignesh1:8733-per-component-dice-metric
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+211
−3
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
b5107da
Add parameter to DiceMetric and DiceHelper classes
VijayVignesh1 ccca77a
Adding per_component information to inline docstring
VijayVignesh1 c110e2a
fixing indentation and formatting
VijayVignesh1 41e52c1
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 34a6817
Adding optional import for scipy and fixing issues raised by coderabb…
VijayVignesh1 8d412a1
fixing indentation and formatting
VijayVignesh1 cb433a8
Adding optional import for scipy and fixing issues raised by coderabb…
VijayVignesh1 ba2e0b3
Adding unittest skipUnless for scipy.ndimage and resolving mypy bug
VijayVignesh1 d9bfb5d
Adding unittest skip only to test cc functions and resolving shape ch…
VijayVignesh1 6f2155c
Extending per_component calculations to both 2D and 3D
VijayVignesh1 ba05438
Adding cupy support to per_component calculations
VijayVignesh1 4e6def7
Debugging extra axis bug and testcase bugs
VijayVignesh1 925e431
moving compute_voronoi_regions_fast to utils, removing hardcoded conn…
VijayVignesh1 28a2944
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 24a17e9
fixing linting issues
VijayVignesh1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Similar to the above,
selfis used to accessignore_emptywhich could be passed as a argument instead with this method turned into a function external to this class.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.
It seems that the compute_channel function, which is similar to compute_cc_dice, resides in the same class. To maintain consistency and encapsulate related functionality, it would make sense to keep both functions within the same class, right?