Git Product home page Git Product logo

torch-uncertainty's Introduction

Torch Uncertainty Logo

pypi tests Code Coverage Code style: black

Torch Uncertainty is a package designed to help you leverage uncertainty quantification techniques and make your neural networks more reliable. It is based on PyTorch Lightning to handle multi-GPU training and inference and automatic logging through tensorboard.


This package provides a multi-level API, including:

  • ready-to-train baselines on research datasets, such as CIFAR and ImageNet
  • baselines available for training on your datasets
  • layers available for use in your networks

Reference

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}
}

Installation

The package can be installed from PyPI or from source.

From PyPI

Install the package via pip:

pip install torch-uncertainty

From source

Installing Poetry

Installation guidelines for poetry are available on https://python-poetry.org/docs/. They boil down to executing the following command:

curl -sSL https://install.python-poetry.org | python3 -

Installing the package

Clone the repository:

git clone https://github.com/ENSTA-U2IS/torch-uncertainty.git

Create a new conda environment and activate it with:

conda create -n uncertainty && conda activate uncertainty

Install the package using poetry:

poetry install torch-uncertainty

or, for development,

poetry install torch-uncertainty --with dev

Depending on your system, you may encounter errors. If so, kill the process and add PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring at the beginning of every poetry install commands.

Contributing

In case that you would like to contribute, install from source and add the pre-commit hooks with pre-commit install

Getting Started and Documentation

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

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

Implemented baselines

To date, the following baselines are implemented:

  • Deep Ensembles
  • Masksembles
  • Packed-Ensembles

Awesome Torch repositories

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

Other References

torch-uncertainty's People

Contributors

alafage avatar o-laurent avatar pomonam avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.