Examples

This is the gallery of examples that showcase the usage of probly. Some examples demonstrate the use of the API in general and some demonstrate specific applications in tutorial form. Also check out our user guide for more detailed illustrations.

Active Learning

Examples concerning the probly.evaluation.active_learning module.

Active Learning with sklearn - Margin vs Random

Active Learning with sklearn - Margin vs Random

Active Learning with PyTorch - BADGE Selection

Active Learning with PyTorch - BADGE Selection

Conformal Prediction

Examples concerning the probly.conformal module. New to conformal prediction? Start with A Gentle Introduction to Conformal Prediction.

Regression Conformal Prediction — sklearn

Regression Conformal Prediction — sklearn

Classification Conformal Prediction — sklearn

Classification Conformal Prediction — sklearn

Quantile Regression Conformal Prediction — sklearn

Quantile Regression Conformal Prediction — sklearn

Classification Conformal Prediction — PyTorch

Classification Conformal Prediction — PyTorch

Regression Conformal Prediction — PyTorch

Regression Conformal Prediction — PyTorch

Adaptive Conformal Intervals on Heteroscedastic Data

Adaptive Conformal Intervals on Heteroscedastic Data

A Gentle Introduction to Conformal Prediction

A Gentle Introduction to Conformal Prediction

Conformalized Credal Set Prediction — PyTorch.

Conformalized Credal Set Prediction — PyTorch.

How Conformal Sets Change with the Score and with Alpha

How Conformal Sets Change with the Score and with Alpha

Quantile Regression Conformal Prediction — PyTorch

Quantile Regression Conformal Prediction — PyTorch

Integrations

Examples showing how probly can be combined with external uncertainty libraries.

Uncertainty for Hugging Face vision transformers

Uncertainty for Hugging Face vision transformers

Depth estimation uncertainty with transformers

Depth estimation uncertainty with transformers

Mixing torch-uncertainty and probly

Mixing torch-uncertainty and probly

Uncertainty for Hugging Face transformers

Uncertainty for Hugging Face transformers

Forecast uncertainty with transformers

Forecast uncertainty with transformers

LoRA adapter ensembles with peft

LoRA adapter ensembles with peft

Cyclone forecast uncertainty with WeatherNext

Cyclone forecast uncertainty with WeatherNext

Method

Examples concerning the probly.method module.

SWAG on Two Moons

SWAG on Two Moons

DARE on Two Moons

DARE on Two Moons

Laplace Approximation on Two Moons

Laplace Approximation on Two Moons

Het-Net on Two Moons

Het-Net on Two Moons

Generative Variational Bayesian Last Layers on Two Moons

Generative Variational Bayesian Last Layers on Two Moons

Mahalanobis OOD on Two Moons

Mahalanobis OOD on Two Moons

Variational Bayesian Last Layers on Two Moons

Variational Bayesian Last Layers on Two Moons

DUQ on Two Moons

DUQ on Two Moons

DDU on Two Moons

DDU on Two Moons

Credal Net Visualization

Credal Net Visualization

Evidential on Two Moons

Evidential on Two Moons

Student-t Variational Bayesian Last Layers on Two Moons

Student-t Variational Bayesian Last Layers on Two Moons

Credal Wrapper Output Visualization

Credal Wrapper Output Visualization

Credal Ensembling Visualization

Credal Ensembling Visualization

Heteroscedastic Variational Bayesian Last Layers on Two Moons

Heteroscedastic Variational Bayesian Last Layers on Two Moons

Credal BNN Visualization

Credal BNN Visualization

Credal DRO Output Visualization

Credal DRO Output Visualization

Efficient Credal Prediction Visualization

Efficient Credal Prediction Visualization

DARE on MNIST

DARE on MNIST

SNGP Distance Awareness on 2D Toys

SNGP Distance Awareness on 2D Toys

Laplace on MNIST

Laplace on MNIST

Het-Net on MNIST

Het-Net on MNIST

G-VBLL on MNIST

G-VBLL on MNIST

Credal BNN on MNIST

Credal BNN on MNIST

VBLL on MNIST

VBLL on MNIST

SWAG on MNIST

SWAG on MNIST

Student-t VBLL on MNIST

Student-t VBLL on MNIST

Heteroscedastic VBLL on MNIST

Heteroscedastic VBLL on MNIST

Credal Wrapper on MNIST

Credal Wrapper on MNIST

Credal Ensembling on MNIST

Credal Ensembling on MNIST

Prior Network on Two Moons

Prior Network on Two Moons

Credal Net on MNIST

Credal Net on MNIST

Efficient Credal Prediction on MNIST

Efficient Credal Prediction on MNIST

SNGP on MNIST

SNGP on MNIST

Mahalanobis OOD on MNIST

Mahalanobis OOD on MNIST

DUQ on MNIST

DUQ on MNIST

DDU on MNIST

DDU on MNIST

Credal Relative Likelihood Visualization

Credal Relative Likelihood Visualization

Prior Network on MNIST

Prior Network on MNIST

Evidential Regression on a 1D Example

Evidential Regression on a 1D Example

Evidential on MNIST

Evidential on MNIST

Credal Relative Likelihood on MNIST

Credal Relative Likelihood on MNIST

DEUP on Two Moons

DEUP on Two Moons

DEUP on MNIST

DEUP on MNIST

Plot

Examples concerning the probly.plot module.

Visualising OOD detection results

Visualising OOD detection results

Plotting binary credal sets on an interval

Plotting binary credal sets on an interval

Plotting credal sets on the simplex

Plotting credal sets on the simplex

Plotting credal sets on a spider (radar) chart

Plotting credal sets on a spider (radar) chart

Pytraverse

Examples concerning the pytraverse module.

A Brief Introduction to PyTraverse

A Brief Introduction to PyTraverse

Quantification

Examples concerning the probly.quantification module.

Uncertainty Quantification

Uncertainty Quantification

Ensemble Regression Uncertainty

Ensemble Regression Uncertainty

Ensemble Ordinal Classification Uncertainty

Ensemble Ordinal Classification Uncertainty

Release Highlights

These examples illustrate the main features of the releases of probly.

Representation

Examples concerning the probly.representation module.

Singleton credal set

Singleton credal set

Distance-based credal set

Distance-based credal set

Convex credal set

Convex credal set

Discrete credal set

Discrete credal set

Probability-intervals credal set

Probability-intervals credal set

Working with samples

Working with samples

Sets of outcomes

Sets of outcomes

Point predictions and first-order distributions

Point predictions and first-order distributions

Second order: a parameterized Dirichlet

Second order: a parameterized Dirichlet

Second order: a sample of distributions

Second order: a sample of distributions

Streaming

Examples that combine probly with online learners on data streams. A single representer() + quantify() call gives you the full aleatoric / epistemic / total decomposition on every step of the stream.

Streaming uncertainty with ARFRegressor

Streaming uncertainty with ARFRegressor

Streaming uncertainty with ARFClassifier

Streaming uncertainty with ARFClassifier

MC-Dropout uncertainty on a 2-D stream

MC-Dropout uncertainty on a 2-D stream

Transformation

Examples concerning the probly.transformation module.

DropConnect on Two Moons

DropConnect on Two Moons

Deep Ensemble on Two Moons

Deep Ensemble on Two Moons

MC Dropout on Two Moons

MC Dropout on Two Moons

Masksembles on Two Moons

Masksembles on Two Moons

Natural Posterior Network on Two Moons

Natural Posterior Network on Two Moons

Posterior Network on Two Moons

Posterior Network on Two Moons

Bayesian Neural Network on Two Moons

Bayesian Neural Network on Two Moons

Sub-Ensemble on Two Moons

Sub-Ensemble on Two Moons

Bayesian Ensemble on Two Moons

Bayesian Ensemble on Two Moons

BatchEnsemble on Two Moons

BatchEnsemble on Two Moons

MC Dropout on MNIST

MC Dropout on MNIST

DropConnect on MNIST

DropConnect on MNIST

Deep Ensemble on MNIST

Deep Ensemble on MNIST

Bayesian Neural Network on MNIST

Bayesian Neural Network on MNIST

Natural Posterior Network on MNIST

Natural Posterior Network on MNIST

Bayesian Ensemble on MNIST

Bayesian Ensemble on MNIST

Posterior Network on MNIST

Posterior Network on MNIST

Sub-Ensemble on MNIST

Sub-Ensemble on MNIST

BatchEnsemble on MNIST

BatchEnsemble on MNIST

Masksembles on MNIST

Masksembles on MNIST

Dirichlet Calibration on MNIST

Dirichlet Calibration on MNIST

Platt Scaling on MNIST (Odd vs. Even)

Platt Scaling on MNIST (Odd vs. Even)

Vector Scaling on MNIST

Vector Scaling on MNIST

Temperature Scaling on MNIST

Temperature Scaling on MNIST

Isotonic Regression on MNIST (Odd vs. Even)

Isotonic Regression on MNIST (Odd vs. Even)

Gallery generated by Sphinx-Gallery