A previous release had provenance metadata, but this release does not. View details.
Deep-UQ is the most comprehensive uncertainty quantification toolkit for deep learning in PyTorch — 20+ UQ methods, scientific ML architectures, evaluation metrics, active learning, and physics constraints, all behind a unified predict_uq() API.
Install
pip install uqdeepnn
Quick Example
from deepuq.models import MLP
from deepuq.methods import LaplaceWrapper
model = MLP(input_dim=1, hidden_dims=[64, 64], output_dim=1)
# ... train as usual ...
la = LaplaceWrapper(model, likelihood="regression", hessian_structure="kron")
la.fit(train_loader)
result = la.predict_uq(x_test)
# result.mean, result.epistemic_var, result.total_var
20+ UQ Methods
Bayesian & Ensemble: Deep Ensembles, Batch Ensemble, Packed Ensemble, SWAG, MultiSWAG, Variational Inference (BBB, Last-Layer), SVGD
Post-hoc & Single-pass: Laplace (6 Hessian structures + GLM predictive), SNGP, Evidential DL, MC Dropout, Test-Time Augmentation, Temperature/Isotonic Calibration
MCMC: SGLD, SGHMC, Cyclical SGMCMC
Gaussian Processes: Exact, Sparse, Multi-Fidelity, Deep Kernel, Multi-task, Heteroscedastic, Spectral Mixture, Classification
Distribution-free: Conformal (split, CQR, weighted, adaptive), Selective Prediction
Full Toolkit
deepuq.methods— All 20+ UQ method wrappersdeepuq.models— Neural architectures (MLP, FNO, DeepONet, GNO, PINN, CNN, UNet, GPs)deepuq.metrics— ECE, CRPS, AUROC, PICP, Brier, interval score, AURCdeepuq.active— Active learning (Uncertainty Sampling, BALD, loop orchestration)deepuq.constraints— Physics constraints (positivity, bounds, conservation, monotonicity)deepuq.propagation— Uncertainty propagation for autoregressive rollouts
Scientific ML Backbones
DeepONet (1D/2D), FNO (2D/3D), Graph Neural Operators, CNN/ResNet/U-Net surrogates, PINNs, Diffusion models — all with first-class UQ support.
50+ Tutorials
Every method has a self-contained executable notebook with mathematical explanations, training, prediction, and visualization.
Key Features
- Zero external UQ dependencies — everything in pure PyTorch
- Unified API — every method returns
UQResult(mean, epistemic_var, aleatoric_var, total_var) - Any architecture — works with any
nn.Module - Evaluation built-in — calibration, scoring rules, OOD detection metrics
- Production-ready — selective prediction, post-hoc calibration, single-pass methods
Documentation
- Docs: https://vispikarkaria.github.io/Deep-UQ/
- Tutorials: https://vispikarkaria.github.io/Deep-UQ/tutorials/
- API: https://vispikarkaria.github.io/Deep-UQ/api/
- GitHub: https://github.com/Vispikarkaria/Deep-UQ
Package Names
- PyPI:
uqdeepnn - Import:
deepuq
Metadata
Release files for uqdeepnn 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Loss of provenance
These files do not have provenance metadata, despite files in a prior release including this data.
We recommend further investigation before installing these files. View details.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| uqdeepnn-0.2.1.tar.gz | 119.8 kB | Without provenance | Details for uqdeepnn-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| uqdeepnn-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for uqdeepnn-0.2.1-py3-none-any.whl |
Total release size: 240.4 kB
Release files / uqdeepnn-0.2.1.tar.gz
Loss of provenance
This file belongs to a release without provenance metadata, despite a prior release including this data.
We recommend further investigation before installing this file. View details.
| Download URL | uqdeepnn-0.2.1.tar.gz |
|---|---|
| Size | 119.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5275db1ed194b122b3e459fee674b602d03b6335358e55a6070240113825dd2d
|
|
BLAKE2b-256 checksum How to use checksums |
038fbfbba6b4051208e69f2561ff105de4f4544cc5782e52bf6d36c05415b043
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / uqdeepnn-0.2.1-py3-none-any.whl
Loss of provenance
This file belongs to a release without provenance metadata, despite a prior release including this data.
We recommend further investigation before installing this file. View details.
| Download URL | uqdeepnn-0.2.1-py3-none-any.whl |
|---|---|
| Size | 120.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
989e7c8e60013ef4135a0ffb71932c046c20911a2b216c5ced09335dc8944fb1
|
|
BLAKE2b-256 checksum How to use checksums |
90f2f5d423735f39c4361368b878996534237b5b14a46defa18bdddf808d4fda
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Security for uqdeepnn 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Loss of provenance
A previous release of these files had provenance metadata, but this release does not.
While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.
Release comparison
- Removed 0.1.20 2 files With provenance
- Added 0.2.1 2 files Without provenance
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.