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

✨ Refactor wrappers & PP, Add Checkpoint Ensembles, EMA, SWA, & SWAG, Add LaplaceApprox & ABNN #98

Merged
merged 61 commits into from
Jun 26, 2024

Conversation

o-laurent
Copy link
Contributor

@o-laurent o-laurent commented Jun 5, 2024

@o-laurent o-laurent self-assigned this Jun 5, 2024
@o-laurent o-laurent added the enhancement New feature or request label Jun 5, 2024
@o-laurent o-laurent linked an issue Jun 5, 2024 that may be closed by this pull request
Copy link

codecov bot commented Jun 5, 2024

Codecov Report

Attention: Patch coverage is 98.48024% with 10 lines in your changes missing coverage. Please review.

Project coverage is 99.04%. Comparing base (ff355d9) to head (2d84fe6).

Files Patch % Lines
torch_uncertainty/routines/pixel_regression.py 93.75% 0 Missing and 3 partials ⚠️
torch_uncertainty/models/wrappers/stochastic.py 95.00% 1 Missing and 1 partial ⚠️
...uncertainty/models/wrappers/checkpoint_ensemble.py 96.55% 0 Missing and 1 partial ⚠️
torch_uncertainty/post_processing/laplace.py 96.29% 0 Missing and 1 partial ⚠️
torch_uncertainty/routines/classification.py 98.83% 0 Missing and 1 partial ⚠️
torch_uncertainty/routines/regression.py 96.66% 0 Missing and 1 partial ⚠️
torch_uncertainty/routines/segmentation.py 96.29% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #98      +/-   ##
==========================================
+ Coverage   98.51%   99.04%   +0.52%     
==========================================
  Files         119      127       +8     
  Lines        5742     6103     +361     
  Branches      764      832      +68     
==========================================
+ Hits         5657     6045     +388     
+ Misses         45       21      -24     
+ Partials       40       37       -3     
Flag Coverage Δ
cpu 99.04% <98.48%> (+0.52%) ⬆️
pytest 99.04% <98.48%> (+0.52%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@o-laurent o-laurent linked an issue Jun 6, 2024 that may be closed by this pull request
✨ Add trajectory models including Snapshot Ensembles
@o-laurent o-laurent changed the title ✨ Add a Laplace wrapper, refactor post-processing methods, refactor the code ✨ Refactor wrappers & PP, Add EMA, SWA, & SWAG, Add LaplaceApprox Jun 17, 2024
@o-laurent o-laurent linked an issue Jun 17, 2024 that may be closed by this pull request
@o-laurent o-laurent changed the title ✨ Refactor wrappers & PP, Add EMA, SWA, & SWAG, Add LaplaceApprox ✨ Refactor wrappers & PP, Add Checkpoint Ensembles, EMA, SWA, & SWAG, Add LaplaceApprox Jun 17, 2024
auto_tutorials_source/tutorial_bayesian.py Outdated Show resolved Hide resolved
auto_tutorials_source/tutorial_bayesian.py Outdated Show resolved Hide resolved
docs/source/references.rst Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
@o-laurent o-laurent changed the title ✨ Refactor wrappers & PP, Add Checkpoint Ensembles, EMA, SWA, & SWAG, Add LaplaceApprox ✨ Refactor wrappers & PP, Add Checkpoint Ensembles, EMA, SWA, & SWAG, Add LaplaceApprox & ABNN Jun 18, 2024
@o-laurent o-laurent marked this pull request as ready for review June 19, 2024 14:35
@o-laurent o-laurent linked an issue Jun 24, 2024 that may be closed by this pull request
auto_tutorials_source/tutorial_der_cubic.py Show resolved Hide resolved
torch_uncertainty/utils/hub.py Outdated Show resolved Hide resolved
torch_uncertainty/utils/distributions.py Outdated Show resolved Hide resolved
torch_uncertainty/routines/segmentation.py Show resolved Hide resolved
torch_uncertainty/routines/segmentation.py Outdated Show resolved Hide resolved
torch_uncertainty/routines/pixel_regression.py Outdated Show resolved Hide resolved
torch_uncertainty/routines/classification.py Outdated Show resolved Hide resolved
Copy link
Contributor

@alafage alafage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments

auto_tutorials_source/tutorial_bayesian.py Show resolved Hide resolved
auto_tutorials_source/tutorial_from_de_to_pe.py Outdated Show resolved Hide resolved
auto_tutorials_source/tutorial_from_de_to_pe.py Outdated Show resolved Hide resolved
auto_tutorials_source/tutorial_from_de_to_pe.py Outdated Show resolved Hide resolved
torch_uncertainty/baselines/classification/vgg.py Outdated Show resolved Hide resolved
torch_uncertainty/datamodules/abstract.py Outdated Show resolved Hide resolved
torch_uncertainty/datasets/classification/not_mnist.py Outdated Show resolved Hide resolved
torch_uncertainty/layers/bayesian/sampler.py Show resolved Hide resolved
torch_uncertainty/layers/distributions.py Outdated Show resolved Hide resolved
@o-laurent o-laurent requested a review from alafage June 26, 2024 20:17
@o-laurent o-laurent merged commit 4728e9e into main Jun 26, 2024
4 checks passed
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.

Pytorch Lightning Model Question ✨ Add snapshot ensembles 🐛 plot Calibration error
2 participants