Skip to main content

EQUINE^2: Establishing Quantified Uncertainty for Neural Networks

Project description

Establishing Quantified Uncertainty in Neural Networks

Build Status python_passing_tests python_coverage Code style: black Tested with Hypothesis

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.

© 2023 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.1rc3.tar.gz (23.2 kB view details)

Uploaded Source

Built Distribution

equine-0.1.1rc3-py3-none-any.whl (22.8 kB view details)

Uploaded Python 3

File details

Details for the file equine-0.1.1rc3.tar.gz.

File metadata

  • Download URL: equine-0.1.1rc3.tar.gz
  • Upload date:
  • Size: 23.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for equine-0.1.1rc3.tar.gz
Algorithm Hash digest
SHA256 e61707b6acb74955ccc83e799c9e82839c5585df3086dad1f3e5985238ed31dd
MD5 025e212a4c765ea525724fa8d8ed1c6a
BLAKE2b-256 dc612e9c72184d7aeee768e5ac58e06422ee766501a10e5f3ef15d8f5153dcb5

See more details on using hashes here.

File details

Details for the file equine-0.1.1rc3-py3-none-any.whl.

File metadata

  • Download URL: equine-0.1.1rc3-py3-none-any.whl
  • Upload date:
  • Size: 22.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for equine-0.1.1rc3-py3-none-any.whl
Algorithm Hash digest
SHA256 fde3d422afdd5efd3e420b4edfb3a38c6b640a442c60c8e701dcc2f043d5b080
MD5 621bc3d676727e6617e2a596a9a49da0
BLAKE2b-256 e3875f3c3fd86d44c09b8c28bec60caa94bae396f6806622accd365e6362dbb2

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