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

🎨 Rework Probabilistic Regression and add Packed-Transformer layers #126

Merged
merged 37 commits into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
463c053
:sparkles: Add codecov test analytics
o-laurent Nov 19, 2024
8650ef3
:shirt: Start improving eval loop code & simplify segformer tests & a…
o-laurent Nov 19, 2024
49b67da
:sparkles: Add the CUB dataset
o-laurent Nov 20, 2024
86eec13
:books: Fix docstring typo in SWAG
alafage Nov 20, 2024
d80fe8c
:hammer: Rework Distribution Layers and distribution utils
alafage Nov 28, 2024
16e1d44
:books: Update API Reference
alafage Nov 28, 2024
7cff743
:hammer: Rework Regression baselines and Routine
alafage Nov 28, 2024
c646d35
:bug: Fix NLL loss et metric
alafage Nov 28, 2024
fb51f03
:hammer: Rework Pixel Regression Routine
alafage Nov 28, 2024
3ff3056
:construction: Update BTS baseline
alafage Nov 28, 2024
fbae040
:hammer: Update DER Cubic Tutorial
alafage Nov 28, 2024
11afd5b
:hammer: Update the tests
alafage Nov 28, 2024
9d4ec19
:art: Update typing in _RegDeepEnsembles
alafage Nov 28, 2024
2586e37
:fire: Remove test code from CUB
o-laurent Nov 29, 2024
240eabd
:art: Improve Regression experiments on UCI datasets
alafage Dec 4, 2024
16138d9
:hammer: Enable the choosing of the distribution estimate
alafage Dec 9, 2024
5bfb234
:hammer: Update distribution linear layer docstrings
alafage Dec 9, 2024
2c402cb
:sparkles: Add Deep Probabilistic Regression tutorial
alafage Dec 9, 2024
8a51f5d
:white_check_mark: Add tests for Linear distribution layers
alafage Dec 9, 2024
45693a9
:white_check_mark: Add tests for convolutional distribution layers
alafage Dec 9, 2024
9fde14f
:white_check_mark: Add test for failure case in `get_dist_conv_layer()`
alafage Dec 9, 2024
d13e0c6
:sparkles: Add small version of MUAD dataset
alafage Dec 10, 2024
eed446e
:bug: Fix Deep Ensembles reset_parameters option
alafage Dec 16, 2024
0d2b7d3
:bug: Fix MIoU metric
alafage Dec 16, 2024
cd2b872
:white_check_mark: Improve coverage (hopefully)
alafage Dec 17, 2024
5130778
:hammer: Rework BTS model
alafage Dec 17, 2024
0917984
:art: Update upon review feedback
alafage Dec 18, 2024
ffc94e9
:white_check_mark: Improve coverage
alafage Dec 18, 2024
12b2f1c
:book: Add missing explanation on Independent use
alafage Dec 18, 2024
7747a7a
Merge pull request #125 from ENSTA-U2IS-AI/density_layers
o-laurent Dec 18, 2024
63e9ece
:construction: Add Packed-Transformer layers
alafage Dec 19, 2024
5e5635b
🐛 Fix small muad dataset url
sofiia-chorna Dec 25, 2024
ec2d921
Merge pull request #127 from sofiia-chorna/fix-small-muad-url
alafage Dec 26, 2024
1a53be2
:bug: Fix packed_linear functional when ``bias`` is ``None``
alafage Dec 26, 2024
f484403
:white_check_mark: Add tests for Packed Transformer Layer classes
alafage Dec 28, 2024
a09fdd9
:books: Add documentation for Packed Transformer Layers
alafage Jan 6, 2025
c16d53e
:wrench: Increase package version
alafage Jan 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
🔨 Rework Distribution Layers and distribution utils
  • Loading branch information
alafage committed Nov 28, 2024
commit d80fe8c8a61e5330aefcc96d6f3bdaba0bf44d8c
23 changes: 1 addition & 22 deletions tests/layers/test_distributions.py
Original file line number Diff line number Diff line change
@@ -1,22 +1 @@
import pytest

from torch_uncertainty.layers.distributions import (
LaplaceLayer,
NormalLayer,
TUDist,
)


class TestDistributions:
def test(self):
TUDist.__abstractmethods__ = set()
dist = TUDist(dim=1)
dist.forward(None)

def test_errors(self):
with pytest.raises(ValueError):
NormalLayer(-1, 1)
with pytest.raises(ValueError):
NormalLayer(1, -1)
with pytest.raises(ValueError):
LaplaceLayer(1, -1)
class TestDistributions: ...
Loading