Skip to main content

Uncertainty Representation and Quantification for Machine Learning

Project description

probly: Uncertainty Representation and Quantification for Machine Learning

PyPI version License PePy PyPI status Contributions Welcome Last Commit

🛠️ Install

probly is intended to work with Python 3.10 and above. Installation can be done via pip:

pip install probly

⭐ Quickstart

probly makes it very easy to make models uncertainty-aware and perform several downstream tasks:

import probly
import torch.nn.functional as F

net = ... # get neural network
model = probly.representation.Dropout(net) # make neural network a Dropout model
train(model) # train model as usual

data = ... # get data
preds = model.predict_representation(data) # predict an uncertainty representation
eu = probly.quantification.classification.mutual_information(preds) # compute model's epistemic uncertainty

data_ood = ... # get out of distribution data
preds_ood = model.predict_representation(data_ood)
eu_ood = probly.quantification.classification.mutual_information(preds_ood)
auroc = probly.tasks.out_of_distribution_detection(eu, eu_ood) # compute the AUROC score for out of distribution detection

📜 License

This project is licensed under the MIT License.


Built with ❤️ by the probly team.

Changelog

This changelog is updated with every release of probly.

Development

0.1.0 (2024-03-14)

Initial pre-release of probly without functionalities.

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

probly-0.2.0.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

probly-0.2.0-py3-none-any.whl (28.1 kB view details)

Uploaded Python 3

File details

Details for the file probly-0.2.0.tar.gz.

File metadata

  • Download URL: probly-0.2.0.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for probly-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9a42502ce8d62dd8bec91ce50272d7a76fdd098f5beaf2aec4fe3c267ed2b790
MD5 faee791d2024be59837b50dee3452653
BLAKE2b-256 2731d48f1ff0fd55ab727b0603b46b3a1b0f124207296df12b1931c12cfe7ec2

See more details on using hashes here.

File details

Details for the file probly-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: probly-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 28.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for probly-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c6362c2e0602c7a2e07f56b9326001399fbdf925d6941a30d106b95469b4cc02
MD5 edd302174c91cfc77de2f8f399832667
BLAKE2b-256 af33875d7ddf691d894ad1434fb3cae72f5e0934a2544cb5d9c7a5cf38db826f

See more details on using hashes here.

Supported by

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