ENSTA-U2IS-AI / torch-uncertainty

Open-source framework for uncertainty and deep learning models in PyTorch :seedling:
https://torch-uncertainty.github.io
Apache License 2.0
287 stars 19 forks source link

:sparkles: Add Evidential Classification, switch to ruff, update packages #65

Closed o-laurent closed 11 months ago

o-laurent commented 11 months ago

Added a new loss & tutorial for Evidential classification Removed black, isort, & flake8, and added ruff. Removed fmt inconsistencies guardrails between black and isort Update packages to solve the security issue.

codecov[bot] commented 11 months ago

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (f0bf6e6) 98.16% compared to head (8b74af5) 98.39%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #65 +/- ## ========================================== + Coverage 98.16% 98.39% +0.23% ========================================== Files 71 71 Lines 3534 3607 +73 Branches 413 426 +13 ========================================== + Hits 3469 3549 +80 + Misses 27 22 -5 + Partials 38 36 -2 ``` | [Flag](https://app.codecov.io/gh/ENSTA-U2IS/torch-uncertainty/pull/65/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ENSTA-U2IS) | Coverage Δ | | |---|---|---| | [cpu](https://app.codecov.io/gh/ENSTA-U2IS/torch-uncertainty/pull/65/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ENSTA-U2IS) | `98.39% <98.31%> (+0.23%)` | :arrow_up: | | [pytest](https://app.codecov.io/gh/ENSTA-U2IS/torch-uncertainty/pull/65/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ENSTA-U2IS) | `98.39% <98.31%> (+0.23%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ENSTA-U2IS#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files](https://app.codecov.io/gh/ENSTA-U2IS/torch-uncertainty/pull/65?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ENSTA-U2IS) | Coverage Δ | | |---|---|---| | [torch\_uncertainty/\_\_init\_\_.py](https://app.codecov.io/gh/ENSTA-U2IS/torch-uncertainty/pull/65?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ENSTA-U2IS#diff-dG9yY2hfdW5jZXJ0YWludHkvX19pbml0X18ucHk=) | `100.00% <ø> (ø)` | | | [torch\_uncertainty/baselines/\_\_init\_\_.py](https://app.codecov.io/gh/ENSTA-U2IS/torch-uncertainty/pull/65?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ENSTA-U2IS#diff-dG9yY2hfdW5jZXJ0YWludHkvYmFzZWxpbmVzL19faW5pdF9fLnB5) | `100.00% <ø> (ø)` | | | [...h\_uncertainty/baselines/classification/\_\_init\_\_.py](https://app.codecov.io/gh/ENSTA-U2IS/torch-uncertainty/pull/65?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ENSTA-U2IS#diff-dG9yY2hfdW5jZXJ0YWludHkvYmFzZWxpbmVzL2NsYXNzaWZpY2F0aW9uL19faW5pdF9fLnB5) | `100.00% <ø> (ø)` | | | [...rch\_uncertainty/baselines/classification/resnet.py](https://app.codecov.io/gh/ENSTA-U2IS/torch-uncertainty/pull/65?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ENSTA-U2IS#diff-dG9yY2hfdW5jZXJ0YWludHkvYmFzZWxpbmVzL2NsYXNzaWZpY2F0aW9uL3Jlc25ldC5weQ==) | `98.14% <ø> (ø)` | | | [torch\_uncertainty/baselines/classification/vgg.py](https://app.codecov.io/gh/ENSTA-U2IS/torch-uncertainty/pull/65?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ENSTA-U2IS#diff-dG9yY2hfdW5jZXJ0YWludHkvYmFzZWxpbmVzL2NsYXNzaWZpY2F0aW9uL3ZnZy5weQ==) | `97.56% <ø> (ø)` | | | [...uncertainty/baselines/classification/wideresnet.py](https://app.codecov.io/gh/ENSTA-U2IS/torch-uncertainty/pull/65?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ENSTA-U2IS#diff-dG9yY2hfdW5jZXJ0YWludHkvYmFzZWxpbmVzL2NsYXNzaWZpY2F0aW9uL3dpZGVyZXNuZXQucHk=) | `98.07% <ø> (ø)` | | | [torch\_uncertainty/baselines/deep\_ensembles.py](https://app.codecov.io/gh/ENSTA-U2IS/torch-uncertainty/pull/65?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ENSTA-U2IS#diff-dG9yY2hfdW5jZXJ0YWludHkvYmFzZWxpbmVzL2RlZXBfZW5zZW1ibGVzLnB5) | `86.66% <ø> (ø)` | | | [torch\_uncertainty/baselines/regression/\_\_init\_\_.py](https://app.codecov.io/gh/ENSTA-U2IS/torch-uncertainty/pull/65?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ENSTA-U2IS#diff-dG9yY2hfdW5jZXJ0YWludHkvYmFzZWxpbmVzL3JlZ3Jlc3Npb24vX19pbml0X18ucHk=) | `100.00% <ø> (ø)` | | | [torch\_uncertainty/baselines/regression/mlp.py](https://app.codecov.io/gh/ENSTA-U2IS/torch-uncertainty/pull/65?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ENSTA-U2IS#diff-dG9yY2hfdW5jZXJ0YWludHkvYmFzZWxpbmVzL3JlZ3Jlc3Npb24vbWxwLnB5) | `97.05% <ø> (ø)` | | | [torch\_uncertainty/baselines/utils/parser\_addons.py](https://app.codecov.io/gh/ENSTA-U2IS/torch-uncertainty/pull/65?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ENSTA-U2IS#diff-dG9yY2hfdW5jZXJ0YWludHkvYmFzZWxpbmVzL3V0aWxzL3BhcnNlcl9hZGRvbnMucHk=) | `93.54% <ø> (ø)` | | | ... and [60 more](https://app.codecov.io/gh/ENSTA-U2IS/torch-uncertainty/pull/65?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ENSTA-U2IS) | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.