Torch-uncertainty

Latest version: v0.2.0

Safety actively analyzes 626004 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.2.0

This update brings a complete overhaul reconstruction around our uncertainty-aware routines. Highlights include:

- Lightning 2.0: Support and a complete overhaul of the command-line interface.

- RegressionRoutine: Fully functional, now supporting probabilistic regression with PyTorch distributions.

- SegmentationRoutine: Introduces semantic segmentation support for datasets like Cityscapes and MUAD.

Stay tuned for even more (Monocular depth estimation!) in TorchUncertainty 0.2.1!

Breaking Changes

As we are still in pre-release, this version breaks a large part of the routine and CLI components of TorchUncertainty 0.1.6.

CLI

The behavior of the CLI has completely changed and is now based on the configuration files from Lightning 2.0. We provide a new page that explains how to leverage Baselines using the CLI for easy benchmarking.

Routines

Notably, there is no more distinction between ensemble and single routines to reduce code entropy: single routines are ensemble routines with 1 estimator. Furthermore, the routines' loss parameters now take an instantiated loss instead of a type, the optimization_procedure is renamed optim_recipe and is now a dictionary and not a callable. The ood_criterion and the calibration sets are now strings.

Metrics

The NegativeLogLikelihood metric is renamed CategoricalNLL.

Baselines

All baselines have been renamed to explicitly contain "Baselines" in their name.


What's Changed
* :heavy_minus_sign: Avoid using Argvcontext in tutorials by o-laurent in https://github.com/ENSTA-U2IS-AI/torch-uncertainty/pull/82
* 🚀 Upgrade to Lightning 2.0 by alafage in https://github.com/ENSTA-U2IS-AI/torch-uncertainty/pull/79
* :rocket: Update to Lightning 2.0, Add Segmentation, & Rework Regression by o-laurent in https://github.com/ENSTA-U2IS-AI/torch-uncertainty/pull/85


**Full Changelog**: https://github.com/ENSTA-U2IS-AI/torch-uncertainty/compare/v0.1.6...v0.2.0

0.1.6

What's Changed
* ⬆️ Bump tj-actions/changed-files from 34 to 41 in /.github/workflows by dependabot in https://github.com/ENSTA-U2IS-AI/torch-uncertainty/pull/75
* :sparkles: Add ResNet-20, corruptions and improve docs by o-laurent in https://github.com/ENSTA-U2IS-AI/torch-uncertainty/pull/76
* :sparkles: Add the grouping loss to single model training by o-laurent in https://github.com/ENSTA-U2IS-AI/torch-uncertainty/pull/77
* :sparkles: Add Monte-Carlo Batch Normalization by o-laurent in https://github.com/ENSTA-U2IS-AI/torch-uncertainty/pull/78
* :sparkles: Add grouping loss, Monte-Carlo Batch Normalization, OpenImage-O, MUAD & Improve code quality by o-laurent in https://github.com/ENSTA-U2IS-AI/torch-uncertainty/pull/80


**Full Changelog**: https://github.com/ENSTA-U2IS-AI/torch-uncertainty/compare/v0.1.5...v0.1.6

0.1.5

What's Changed
* :sparkles: Improve documentation, Enable BNN on GPUs, improve BNN code & code overall quality by o-laurent in https://github.com/ENSTA-U2IS/torch-uncertainty/pull/44
* :sparkles: Continue improving Bayesian layers, & Fix MI in rare cases by o-laurent in https://github.com/ENSTA-U2IS/torch-uncertainty/pull/45
* :sparkles: Add Deep Evidential Regression, generalize Packed layers, and refactor the datasets by badrmarani in https://github.com/ENSTA-U2IS/torch-uncertainty/pull/46 and o-laurent in https://github.com/ENSTA-U2IS/torch-uncertainty/pull/48
* :sparkles: Add visualization tools by o-laurent in https://github.com/ENSTA-U2IS/torch-uncertainty/pull/50
* ⬆️ Bump urllib3 from 2.0.6 to 2.0.7 by dependabot in https://github.com/ENSTA-U2IS/torch-uncertainty/pull/51
* :sparkles: Add MC-Dropout & Visualization tools by by badrmarani in https://github.com/ENSTA-U2IS/torch-uncertainty/pull/49 and o-laurent in https://github.com/ENSTA-U2IS/torch-uncertainty/pull/53
* ⬆️ Bump werkzeug from 3.0.0 to 3.0.1 by dependabot in https://github.com/ENSTA-U2IS/torch-uncertainty/pull/62
* :wrench: Switch to ruff instead of black + isort + flake8 by o-laurent in https://github.com/ENSTA-U2IS/torch-uncertainty/pull/64
* :sparkles: Add Evidential Classification, switch to ruff, update packages by xuanlongORZ in https://github.com/ENSTA-U2IS/torch-uncertainty/pull/56 and o-laurent in https://github.com/ENSTA-U2IS/torch-uncertainty/pull/65
* :sparkles: add beta nll, a modified GaussianNLL by xuanlongORZ in https://github.com/ENSTA-U2IS/torch-uncertainty/pull/66
* ✨ Mixup variants + Cross validation + Temperature scaling in routines by qbouniot in https://github.com/ENSTA-U2IS/torch-uncertainty/pull/63
* :shirt: Extend ruff rules by o-laurent in https://github.com/ENSTA-U2IS/torch-uncertainty/pull/67
* :fire: Remove poetry & add flit by o-laurent in https://github.com/ENSTA-U2IS/torch-uncertainty/pull/69
* :shirt: Improve the code and the documentation by o-laurent in https://github.com/ENSTA-U2IS/torch-uncertainty/pull/71
* ✨ Sparsification metric and plot methods for Calibration Error by alafage in https://github.com/ENSTA-U2IS/torch-uncertainty/pull/68
* :bug: Fix Monte-Carlo Dropout by o-laurent in https://github.com/ENSTA-U2IS/torch-uncertainty/pull/73
* :sparkles: Remove Poetry, add Mixup, rework metrics, & improve code quality by o-laurent in https://github.com/ENSTA-U2IS/torch-uncertainty/pull/70
* :wrench: Update sphinx dependency by o-laurent in https://github.com/ENSTA-U2IS/torch-uncertainty/pull/74

New Contributors
* badrmarani made their first contribution in https://github.com/ENSTA-U2IS/torch-uncertainty/pull/46
* dependabot made their first contribution in https://github.com/ENSTA-U2IS/torch-uncertainty/pull/51
* xuanlongORZ made their first contribution in https://github.com/ENSTA-U2IS/torch-uncertainty/pull/56
* qbouniot made their first contribution in https://github.com/ENSTA-U2IS/torch-uncertainty/pull/63

Huge thanks to them!

**Full Changelog**: https://github.com/ENSTA-U2IS/torch-uncertainty/compare/v0.1.4...v0.1.5

0.1.4

MIMO, Scalers, & more datasets

In this PR, we added a new preprocessing function for MIMO-like networks. We added different post-hoc scaling methods to improve the calibration. We added MNIST-C and TinyImageNet-C to the corrupted datasets. Furthermore, we refined the GitHub workflow to improve the development chain. Finally, we also added one tutorial for temperature scaling.

What's Changed
* Add scalers, TinyImageNet-C & various improvements by o-laurent in https://github.com/ENSTA-U2IS/torch-uncertainty/pull/37
* Add MNIST-C, a tutorial, & small fixes by o-laurent in https://github.com/ENSTA-U2IS/torch-uncertainty/pull/38
* :book: Improve the scaling tutorial & misc by o-laurent in https://github.com/ENSTA-U2IS/torch-uncertainty/pull/39
* :sparkles: Add MIMO by alafage in https://github.com/ENSTA-U2IS/torch-uncertainty/pull/41
* Add MIMO, NotMNIST, improve coverage, and Misc by o-laurent in https://github.com/ENSTA-U2IS/torch-uncertainty/pull/42


**Full Changelog**: https://github.com/ENSTA-U2IS/torch-uncertainty/compare/v0.1.3...v0.1.4

0.1.3

New functionalities

* Regression training and testing (routine, dataset, experiment, etc)
* Bayesian Neural Networks (Linear, Conv, Sampler, ELBO, tutorial)
* Deep Ensembles (Routine & model)
* Add VGG
* relax constraints on the packages
* Improve coverage

Pull Requests merged
* Add contribution page and rework readme :book: in https://github.com/ENSTA-U2IS/torch-uncertainty/pull/26
* :sparkles: Enable regression & misc in https://github.com/ENSTA-U2IS/torch-uncertainty/pull/27
* :sparkles: Add support for regression & BNNs in https://github.com/ENSTA-U2IS/torch-uncertainty/pull/30


**Full Changelog**: https://github.com/ENSTA-U2IS/torch-uncertainty/compare/v0.1.2...v0.1.3

0.1.2

What's Changed

* Rework baselines to increase code reuse and simplify their use.
* Add post-hoc temperature scaling
* Add ImageNet variations (A, O, R)
* Add dataset autodownload
* Add transforms for PixMix.
* Update packages

Pull Requests
* Rework baselines by alafage in https://github.com/ENSTA-U2IS/torch-uncertainty/pull/25
* Merge dev in main :sparkles: by o-laurent in https://github.com/ENSTA-U2IS/torch-uncertainty/pull/24


**Full Changelog**: https://github.com/ENSTA-U2IS/torch-uncertainty/compare/v0.1.1...v0.1.2

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.