Skip to main content

EQUINE^2: Establishing Quantified Uncertainty for Neural Networks

Project description

Establishing Quantified Uncertainty in Neural Networks

PyPi Build Status python_passing_tests python_coverage Code style: black Tested with Hypothesis DOI

Usage

Deep neural networks (DNNs) for supervised labeling problems are known to produce accurate results on a wide variety of learning tasks. However, when accuracy is the only objective, DNNs frequently make over-confident predictions, and they also always make a label prediction regardless of whether or not the test data belongs to any known labels.

EQUINE was created to simplify two kinds of uncertainty quantification for supervised labeling problems:

  1. Calibrated probabilities for each predicted label
  2. An in-distribution score, indicating whether any of the model's known labels should be trusted.

Dive into our documentation examples to get started. Additionally, we provide a companion web application.

Installation

Users are recommended to install a virtual environment such as Anaconda, as is also recommended in the pytorch installation. EQUINE has relatively few dependencies beyond torch.

pip install equine

Users interested in contributing should refer to CONTRIBUTING.md for details.

Design

EQUINE extends pytorch's nn.Module interface using a predict method that returns both the class predictions and the extra OOD scores.

Disclaimer

DISTRIBUTION STATEMENT A. Approved for public release. Distribution is unlimited.

© 2024 MASSACHUSETTS INSTITUTE OF TECHNOLOGY

  • Subject to FAR 52.227-11 – Patent Rights – Ownership by the Contractor (May 2014)
  • SPDX-License-Identifier: MIT

This material is based upon work supported by the Under Secretary of Defense for Research and Engineering under Air Force Contract No. FA8702-15-D-0001. Any opinions, findings, conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the Under Secretary of Defense for Research and Engineering.

The software/firmware is provided to you on an As-Is basis.

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

equine-0.1.5.tar.gz (967.5 kB view details)

Uploaded Source

Built Distribution

equine-0.1.5-py3-none-any.whl (27.5 kB view details)

Uploaded Python 3

File details

Details for the file equine-0.1.5.tar.gz.

File metadata

  • Download URL: equine-0.1.5.tar.gz
  • Upload date:
  • Size: 967.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for equine-0.1.5.tar.gz
Algorithm Hash digest
SHA256 7af1efa528f9f317aa52270c0c3b51fb171f3ca4861e12370fb2713fe6f470eb
MD5 d919a68ca5408c390d274fd1aecfc275
BLAKE2b-256 ef7cafe216070afee5b5c487adf46ed9bd9b7939c76629a6655b0c32b10c5e8c

See more details on using hashes here.

File details

Details for the file equine-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: equine-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 27.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for equine-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e26e1aa02c7d26d0b54712a4ce8db9809ccdf07e637261747e9831f1d6275fd6
MD5 44864420db47fb3c84c7c52b6b754607
BLAKE2b-256 8c78bfb0a1ca1d54576ccdc6f2699be246f7a0b88bf4d51f229694933cd24fd6

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