Skip to main content

Last-layer uncertainty modeling via zonotopic representations.

Project description

Zonolayer

Python Version License: MIT PyPI Version

Zonolayer is a Python package for last-layer uncertainty modeling via zonotopic representations.
It provides zonotopic output bounds and statistical prediction intervals for neural networks with interval-bounded outputs, enabling precise and interpretable uncertainty quantification in regression tasks.


Features

  • Compute zonotopic bounds for last-layer outputs.
  • Combine statistical prediction intervals with interval uncertainty.
  • Compatible with PyTorch networks exposing latent features.
  • Modular, research-friendly, and easy to use.

By default, Zonolayer relies on NumPy for all numerical computations and interval handling.

If you require more advanced interval arithmetic (e.g., using pyinterval or other specialized packages), you can install the optional dependencies and modify the code accordingly, or submit a request for support to be added. I appreciate any and all feedback.


Installation

Ensure all requirements from requirements.txt are installed to reduce any potential issues.

pip install zonolayer

Getting Started

See basic_usage.py in the examples directory for the quickest method to get up and running and start experimenting with the library.

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

zonolayer-0.1.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zonolayer-0.1.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file zonolayer-0.1.0.tar.gz.

File metadata

  • Download URL: zonolayer-0.1.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for zonolayer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3be2955da850fb480e72aed60ba977e9884dbfa184c2ad47addd0624930e39dc
MD5 3ed581408f6d2d9be59047ecc869ee61
BLAKE2b-256 83cc2d99651cff52ac57223db8ef87f408a523e22db33169413abf8958000c67

See more details on using hashes here.

File details

Details for the file zonolayer-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: zonolayer-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for zonolayer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9fe974a85d42203d3c9742530a285a82b2534a1f25522e76738aaeb3f7a40a22
MD5 a5541aebe1cfbf24fdc2fc5dd6fe57e2
BLAKE2b-256 aa0154539c76fd46cb9f16fd7a71084475a418f82a6406ca5ce8ffc03f7cb776

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