dyollb / segmantic

Semantic segmentation and image-to-image translation based on AI
https://dyollb.github.io/segmantic/
MIT License
1 stars 3 forks source link

💦 refine select best ensemble #55

Closed dyollb closed 1 year ago

dyollb commented 1 year ago

What do these changes do?

This PR extends the test for SelectBestEnsembled to one-hot input. It also changes the behavior: when the input is one-hot the output is also one-hot (similar to MeanEnsemble, i.e. you would need to add AsDiscrete(argmax=True) afterwards if you wanted argmax data.

codecov[bot] commented 1 year ago

Codecov Report

Merging #55 (2a8fee5) into main (6447e66) will increase coverage by 0.44%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #55      +/-   ##
==========================================
+ Coverage   52.66%   53.10%   +0.44%     
==========================================
  Files          20       20              
  Lines        1221     1224       +3     
  Branches      200      200              
==========================================
+ Hits          643      650       +7     
+ Misses        543      540       -3     
+ Partials       35       34       -1     
Flag Coverage Δ
unittests 53.10% <100.00%> (+0.44%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/segmantic/seg/transforms.py 100.00% <100.00%> (+14.28%) :arrow_up:

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