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

MONAI support #33

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

MONAI support #33

wants to merge 11 commits into from

Conversation

brudfors
Copy link
Collaborator

@brudfors brudfors commented Dec 8, 2022

This PR allows for use of the metrics in pairwise_measures.py to be used from MONAI, in particular it enables the use of a batch dimension and a smoothing parameter. Some small modifications have also been made in some places to make the code slightly more efficient (e.g, one-hot encode only once in MultiClassPairwiseMeasures.weighted_cohens_kappa , repeated computations removed from MultiClassPairwiseMeasures.normalised_expected_cost., etc). All unit tests pass, and the smoothing parameters is disabled by default; that is, the output of the metrics have not changed. With this PR integrated into the package, the wrapper on the MONAI side (for the pairwise metrics) should be easy to implement :)

@brudfors brudfors added the enhancement New feature or request label Dec 8, 2022
@brudfors brudfors requested a review from csudre December 8, 2022 19:03
@brudfors brudfors self-assigned this Dec 8, 2022
@codecov
Copy link

codecov bot commented Dec 8, 2022

Codecov Report

Merging #33 (090a9a7) into main (d721a99) will decrease coverage by 1.60%.
The diff coverage is 72.00%.

@@            Coverage Diff             @@
##             main      #33      +/-   ##
==========================================
- Coverage   66.81%   65.21%   -1.60%     
==========================================
  Files           8        8              
  Lines        2091     2139      +48     
  Branches      338      361      +23     
==========================================
- Hits         1397     1395       -2     
- Misses        598      640      +42     
- Partials       96      104       +8     
Impacted Files Coverage Δ
MetricsReloaded/utility/utils.py 60.92% <38.88%> (-2.14%) ⬇️
MetricsReloaded/metrics/pairwise_measures.py 78.80% <74.87%> (-7.66%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant