-
Notifications
You must be signed in to change notification settings - Fork 32
✨ Refactor wrappers & PP, Add Checkpoint Ensembles, EMA, SWA, & SWAG, Add LaplaceApprox & ABNN #98
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
Merged
Changes from 44 commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
870af02
:sparkles: Add LeNet experiment on MNIST
o-laurent ec61536
:bug: Fix notMNIST
o-laurent d268911
:bug: Fix MNIST datamodule OODs
o-laurent e137610
Merge branch 'main' of github.com:ENSTA-U2IS-AI/torch-uncertainty int…
o-laurent 19fafbd
:sparkles: Add Laplace wrapper
o-laurent acf90eb
:books: Add Laplace to the references
o-laurent 63fb874
:hammer: Refactor Mixup params
o-laurent acbd582
:bug: Fix #99 error in calibration plots
o-laurent 8c2de92
:shirt: Slightly improve dropout
o-laurent 8655bec
:bug: Fix MC Dropout test
o-laurent 91cf1c0
:book: Remove Packed-Ensembles mentionned twice
o-laurent 988a89b
:sparkles: Add Trajectory Ensemble
o-laurent 8e7c188
:sparkles: Add EMA & SWA & Reformat models
o-laurent 8b0a02a
:book: Add SWA to docs
o-laurent 3c231e2
:hammer: Refactor EMA, SWA, & Checkpoint Ens.
o-laurent 1f72ead
:book: Fix conf error
o-laurent 1c7059d
:sparkles: Merge pull request #96 from ENSTA-U2IS-AI/laplace
o-laurent c091c9a
:shirt: Small changes
o-laurent 4bfd351
:hammer: Refactor the post processing methods
o-laurent 2a15dce
Merge branch 'trajectory' of github.com:ENSTA-U2IS-AI/torch-uncertain…
o-laurent be85bf8
:hammer: Refactor the AbstractDatamodule
o-laurent 951ff09
:bug: Fix test of abstract methods
o-laurent 83c4cce
:hammer: Refactor pp methods
o-laurent e48368d
:sparkles: Add first version of SWAG
o-laurent df5330e
:hammer: Refactor wrappers
o-laurent 1d0c595
:hammer: Refactor the classification routine
o-laurent 6e989f6
:book: Add links to the conf. in ReadMe
o-laurent fbc8c55
:white_check_mark: Update tests
o-laurent 27bb610
:sparkles: Improve SWAG code
o-laurent 0010d95
:shirt: Minor fix
o-laurent 2c63b3b
:wrench: Fix online install
o-laurent 914599b
:sparkles: Add a full scheduler for SWA & SWAG & update config
o-laurent a3443e3
:bug: Improve SWA & SWAG
o-laurent 4a4eeac
:hammer: Refactor stochastic models
o-laurent 737d862
:bug: Fix Stochastic MLP error
o-laurent 6f57332
:books: Update documentation
o-laurent 00eb701
:books: Fix bugs in docs
o-laurent 4e1e8af
:white_check_mark: Add first battery of tests
o-laurent 501b5d4
:heavy_check_mark: Fix tests
o-laurent d135612
:white_check_mark: Improve SWAG tests
o-laurent f1b6546
:white_check_mark: Improve Stochastic tests
o-laurent edbb88e
:shirt: Minor changes
o-laurent fdbaf76
:white_check_mark: Finetune tests
o-laurent 63e874a
Merge pull request #101 from ENSTA-U2IS-AI/trajectory
o-laurent a601ff9
:ok_hand: Take review comments into account
o-laurent 3ea90e9
:books: Improve documentation & tutorials
o-laurent 84fb04f
:book: Add a tutorial on Packed-Ensembles
o-laurent f6fb41c
:white_check_mark: Improve tests
o-laurent 676f272
:shirt: Improve ReadMe
o-laurent 80aaaa8
:bug: Fix SWAG
o-laurent 06b990f
:sparkles: Propagate changes to the other routines & update tests
o-laurent 725bd9c
:hammer: rename inference_size to eval_size
o-laurent fcbfeaa
:bug: Fix regression routines
o-laurent c9e0404
:sparkles: Add first version for ABNN
o-laurent 4fe4aec
:white_check_mark: Improve coverage
o-laurent 7a57586
:wrench: Lock plt version
o-laurent 0a3a5a7
:bug: Minor changes
o-laurent 41f2f80
:fire: Remove webdataset
o-laurent 17c3071
:books: Improve API Page
o-laurent f56866a
:white_check_mark: Slightly improve tests
o-laurent 2d84fe6
:ok_hand: Make review modifications before merging
o-laurent File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# lightning.pytorch==2.1.3 | ||
seed_everything: false | ||
eval_after_fit: true | ||
trainer: | ||
accelerator: gpu | ||
devices: 1 | ||
precision: 16-mixed | ||
max_epochs: 75 | ||
logger: | ||
class_path: lightning.pytorch.loggers.TensorBoardLogger | ||
init_args: | ||
save_dir: logs/lenet | ||
name: standard | ||
default_hp_metric: false | ||
callbacks: | ||
- class_path: lightning.pytorch.callbacks.ModelCheckpoint | ||
init_args: | ||
monitor: val/cls/Acc | ||
mode: max | ||
save_last: true | ||
- class_path: lightning.pytorch.callbacks.LearningRateMonitor | ||
init_args: | ||
logging_interval: step | ||
- class_path: lightning.pytorch.callbacks.EarlyStopping | ||
init_args: | ||
monitor: val/cls/Acc | ||
patience: 1000 | ||
check_finite: true | ||
model: | ||
model: | ||
class_path: torch_uncertainty.models.lenet._LeNet | ||
init_args: | ||
in_channels: 1 | ||
num_classes: 10 | ||
linear_layer: torch.nn.Linear | ||
conv2d_layer: torch.nn.Conv2d | ||
activation: torch.nn.ReLU | ||
norm: torch.nn.Identity | ||
groups: 1 | ||
dropout_rate: 0 | ||
last_layer_dropout: false | ||
layer_args: {} | ||
num_classes: 10 | ||
loss: CrossEntropyLoss | ||
data: | ||
root: ./data | ||
batch_size: 128 | ||
optimizer: | ||
lr: 0.05 | ||
momentum: 0.9 | ||
weight_decay: 5e-4 | ||
nesterov: true | ||
lr_scheduler: | ||
class_path: torch.optim.lr_scheduler.MultiStepLR | ||
init_args: | ||
milestones: | ||
- 25 | ||
- 50 | ||
gamma: 0.1 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.