Skip to main content

MC Uncertainty

Uncertainty estimation functions for use with Monte Carlo sampled model outputs.

Installation

pip install mc-uncertainty

Usage

import mc_uncertainty as mcu

# All functions accept data with shape (mc_samples, n, classes)
data = np.array(...

# Variance
print(mcu.variance(data).shape)  # [n, classes]

# Entropy
print(mcu.entropy(data).shape)  # [mc_samples, n]

# Predicted entropy
print(mcu.predicted_entropy(data).shape)  # [n,]

# Mutual information
print(mcu.mutual_information(data).shape)  # [n,]

Release files for mc-uncertainty 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mc-uncertainty 0.1.3
File Size Uploaded
mc-uncertainty-0.1.3.tar.gz 1.5 kB Details

Release files / mc-uncertainty-0.1.3.tar.gz

Download URL mc-uncertainty-0.1.3.tar.gz
Size 1.5 kB
Tags Source
SHA-256 checksum
How to use checksums
20d6ddbf781a11c2c64cfe24759ee8186853d263ea1d79253578c0f09b4ed5b2
BLAKE2b-256 checksum
How to use checksums
58d99cdc0f4aa57d0368fb766a39377c7166538a8a73cba7a018aca024c51e61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/3.6.5

Release history Release notifications | RSS feed

This release

0.1.3 This release

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page