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

initial unit tests for dice loss #27

Merged
merged 9 commits into from
Jan 17, 2020
Merged

initial unit tests for dice loss #27

merged 9 commits into from
Jan 17, 2020

Conversation

wyli
Copy link
Contributor

@wyli wyli commented Jan 14, 2020

Dice loss is already implemented in the repo and should be enough for the MVP.
This PR provides a gentle unit test for the module.
closes #10.

next steps:

@wyli wyli requested review from atbenmurray and ericspod January 14, 2020 15:00
@wyli wyli force-pushed the 10-dice-loss-function branch from 10dc087 to 9479679 Compare January 14, 2020 15:15
tests/test_dice_loss.py Outdated Show resolved Hide resolved
@wyli wyli merged commit a2fc227 into master Jan 17, 2020
Nic-Ma pushed a commit that referenced this pull request Jan 21, 2020
* Adding script to run unit tests and example test cases (#29)

Adding script to run unit tests and example test cases

* initial unit tests for dice loss (#27)

* initial unit tests for 2d/3d unet
* unit tests update
 - triggering unit tests via github workflow
 - renamed testconvolutions.py to test_convolutions.py
 - test unet test cases as variables for readability

* initial unit tests for 2d/3d unet (#26)

* initial unit tests for 2d/3d unet
* unit tests update
 - triggering unit tests via github workflow
 - renamed testconvolutions.py to test_convolutions.py
 - test unet test cases as variables for readability

* 14 code examples of monai input data pipeline (#24)

* fixes cardiac example

* update example cardiac segmentation

* Create .gitlab-ci.yml (#30)

an initial step towards #19

* tests intensity normalizer

- revised to support both `[key]` and `key` as an input for apply_keys
- added `NumpyImageTestCase2D` and `TorchImageTestCase2D`

* style updates and new test cases:

- adding copyright notice
- validate user input before setting class member
- one line space after copyright
- testing multiple keys input data

Co-authored-by: Eric Kerfoot <[email protected]>
Co-authored-by: Isaac Yang <[email protected]>
ericspod added a commit that referenced this pull request Jan 22, 2020
* [DLMED] implement intensity normalization transform

design according to our latest discussion:
1. input data is dict format with keys for fields.
2. only based on PyTorch and data shape is channel_last.

* 9 part a adding test intensity normalisation transform (#33)

* Adding script to run unit tests and example test cases (#29)

Adding script to run unit tests and example test cases

* initial unit tests for dice loss (#27)

* initial unit tests for 2d/3d unet
* unit tests update
 - triggering unit tests via github workflow
 - renamed testconvolutions.py to test_convolutions.py
 - test unet test cases as variables for readability

* initial unit tests for 2d/3d unet (#26)

* initial unit tests for 2d/3d unet
* unit tests update
 - triggering unit tests via github workflow
 - renamed testconvolutions.py to test_convolutions.py
 - test unet test cases as variables for readability

* 14 code examples of monai input data pipeline (#24)

* fixes cardiac example

* update example cardiac segmentation

* Create .gitlab-ci.yml (#30)

an initial step towards #19

* tests intensity normalizer

- revised to support both `[key]` and `key` as an input for apply_keys
- added `NumpyImageTestCase2D` and `TorchImageTestCase2D`

* style updates and new test cases:

- adding copyright notice
- validate user input before setting class member
- one line space after copyright
- testing multiple keys input data

Co-authored-by: Eric Kerfoot <[email protected]>
Co-authored-by: Isaac Yang <[email protected]>

* [DLMED] simplify intensity normalization transform for MVP

Co-authored-by: Wenqi Li <[email protected]>
Co-authored-by: Eric Kerfoot <[email protected]>
Co-authored-by: Isaac Yang <[email protected]>
@wyli wyli deleted the 10-dice-loss-function branch April 6, 2020 13:35
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.

Dice loss function
2 participants