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.12 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.1.tar.gz (50.7 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.1-py3-none-any.whl (59.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: probly-0.3.1.tar.gz
  • Upload date:
  • Size: 50.7 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.1.tar.gz
Algorithm Hash digest
SHA256 3261dbcf0d3626f9be51bd7f0b34824c43e4371fd3d3421f731ab808dfa63144
MD5 0ed9b8b79065b855c1e53c176ada0095
BLAKE2b-256 8f8151272dda8f6b571027a33d53958e9cec2a5ee632c26210a55b748c432d05

See more details on using hashes here.

File details

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

File metadata

  • Download URL: probly-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 59.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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 60eb5ebc71774388f736e52719f8cd91eacea437c16f9976fd9b39ffefc82305
MD5 fef39c7e3d30f71ab51c2f46854e7306
BLAKE2b-256 2cb807e8c14abbcc39e37b5c24178dbff440ce581f88afbfe8b486bdebca18fb

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