Skip to main content

Uncertainty Representation and Quantification for Machine Learning

Project description

probly: Uncertainty Representation and Quantification for Machine Learning

probly logo

PyPI version PyPI status PePy Contributions Welcome License

🛠️ Install

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

pip install probly
uv add 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.3.0.tar.gz (32.0 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.3.0-py3-none-any.whl (36.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for probly-0.3.0.tar.gz
Algorithm Hash digest
SHA256 231f6137353bbfcf2c680707f1191a122b0579f53bc290ccc032722dab1f1317
MD5 bfefabe7e030edd520dca39a642ebab5
BLAKE2b-256 12baabdf5ebc9dfa2e1ddac53b3c7192591a29b8b6e78dd33936880f7599cee8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: probly-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 36.8 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9b838e6ee4cd24e83c5578dd3059e077327d2726f8ccffc49182ec655a745a9c
MD5 8bddb6c7e1f16308c08bfeca690d4efb
BLAKE2b-256 bb9b5a923635d8fd729a1b3026d41488e93d9c0f78d492839605d93f5b5b9413

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