Skip to main content

A PyTorch Library for benchmarking and leveraging efficient predictive uncertainty quantification techniques.

Project description

Torch Uncertainty Logo

pypi tests Docs Code Coverage Code style: black

TorchUncertainty is a package designed to help you leverage uncertainty quantification techniques and make your neural networks more reliable. It aims at including as many methods as possible, so reach out to add yours!

:construction: TorchUncertainty is in early development :construction: - expect massive changes but do reach out to us and contribute if you are interested by the project!


This package provides a multi-level API, including:

  • ready-to-train baselines on research datasets, such as ImageNet and CIFAR
  • baselines available for training on your datasets
  • pretrained weights for these baselines on ImageNet and CIFAR (work in progress 🚧).
  • layers available for use in your networks
  • scikit-learn style post-processing methods such as Temperature Scaling

See the Reference page or the API reference for a more exhaustive list of the implemented methods, datasets, metrics, etc.

Installation

Install the desired pytorch version in your environment. Then, the package can be installed from PyPI:

pip install torch-uncertainty

If you aim to contribute (thank you!), have a look at the contribution page.

Getting Started and Documentation

Please find the documentation at torch-uncertainty.github.io.

A quickstart is available at torch-uncertainty.github.io/quickstart.

Implemented methods

Baselines

To date, the following baselines are implemented:

  • Deep Ensembles
  • BatchEnsemble
  • Masksembles
  • Packed-Ensembles (see blog post)
  • Bayesian Neural Networks

Post-processing methods

To date, the following post-processing methods are implemented:

  • Temperature scaling

Tutorials

Awesome Uncertainty repositories

You may find a lot of papers about modern uncertainty estimation techniques on the Awesome Uncertainty in Deep Learning.

Other References

This package also contains the official implementation of Packed-Ensembles.

If you find the corresponding models interesting, please consider citing our paper:

@inproceedings{laurent2023packed,
    title={Packed-Ensembles for Efficient Uncertainty Estimation},
    author={Laurent, Olivier and Lafage, Adrien and Tartaglione, Enzo and Daniel, Geoffrey and Martinez, Jean-Marc and Bursuc, Andrei and Franchi, Gianni},
    booktitle={ICLR},
    year={2023}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

torch_uncertainty-0.1.3.tar.gz (64.2 kB view details)

Uploaded Source

Built Distribution

torch_uncertainty-0.1.3-py3-none-any.whl (114.6 kB view details)

Uploaded Python 3

File details

Details for the file torch_uncertainty-0.1.3.tar.gz.

File metadata

  • Download URL: torch_uncertainty-0.1.3.tar.gz
  • Upload date:
  • Size: 64.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for torch_uncertainty-0.1.3.tar.gz
Algorithm Hash digest
SHA256 78ca11147f29840ce505dd2be7a53f9af114fb5e2a30e40daf018fe45de728f4
MD5 8dfd9ec1185adcf24ca80b6007fae445
BLAKE2b-256 c84fcc2f192c1ffb34e5db37fbe53eb026b3c7c247ce3cdef2c40f99104dbfcc

See more details on using hashes here.

File details

Details for the file torch_uncertainty-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for torch_uncertainty-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9cbe984dffd2368e1c2535b888d86cb7c1921cf6068d489eb6f0197ec0094485
MD5 86c9171f2122792fb557d68956424c6d
BLAKE2b-256 030b6a62c66d4032d1c0c62f4d5f2216472a88dadb34d5252e546f5702098a04

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page