Skip to main content

Calculate uncertainty measures from Monte Carlo sampled model outputs.

Project description

MC Uncertainty

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

Installation

pip install mc-uncertainty

Usage

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

# Variance
from mc_uncertainty import variance
print(variance(data))  # shape: [n, classes]

# Entropy
from mc_uncertainty import entropy
print(entropy(data))  # shape: [mc_samples, n]

# Predicted entropy
from mc_uncertainty import predicted_entropy
print(predicted_entropy(data))  # shape: [n,]

# Mutual information
from mc_uncertainty import mutual_information
print(mutual_information(data))  # shape: [n,]

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

mc-uncertainty-0.1.1.tar.gz (1.5 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page