Skip to main content

BayesFlux

BayesFlux is a JAX Python package that provides Fast Linear algebra sUbspace eXtraction for Bayesian inverse problems built off https://github.com/joshuawchen/randLAX.

Features

  • Active Subspace for parameter dimension reduction
  • Informative Output Subspace for data dimension reduction

Installation

Core Installation (JAX-only functionality)

You can install the core BayesFlux package using pip:

pip install bayesflux

This installs the JAX-based functionality only and does not require Fenics or hippylib.

Installation with hippylib Support (Requires Fenics)

Some BayesFlux functionality depends on hippylib, which requires Fenics 2019.1.

Fenics has system-level dependencies and cannot be reliably installed via pip alone. You must first create a conda environment.

Step 1 — Create a Fenics environment

conda create -n fenics-2019.1_env -c conda-forge fenics==2019.1.0
conda activate fenics-2019.1_env

Step 2 — Install BayesFlux with the hippylib extra

pip install bayesflux[hippylib]

This installs:

  • hippylib
  • hickle
  • bayesflux

Make sure the conda environment is activated before running pip install.

For Developers

If your software depends on BayesFlux with hippylib functionality, declare the dependency in your pyproject.toml as:

dependencies = [
    "bayesflux[hippylib]>=<minimum_version>"
]

However, your users must still create the Fenics conda environment before installing your software:

conda create -n fenics-2019.1_env -c conda-forge fenics==2019.1.0
conda activate fenics-2019.1_env
pip install your_package

Important: pip cannot install Fenics. Any software depending on bayesflux[hippylib] must document the required conda environment setup.

Requirements

  • Python 3.9+

Metadata

Release files for BayesFlux 0.8

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

Source distribution (sdist)

Source distribution for BayesFlux 0.8
File Size Uploaded Provenance
bayesflux-0.8.tar.gz 16.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for BayesFlux 0.8
File Interpreter ABI Platform
bayesflux-0.8-py3-none-any.whl Python 3 none any Details

Total release size: 35.4 kB

Release files / bayesflux-0.8.tar.gz

Download URL bayesflux-0.8.tar.gz
Size 16.7 kB
Tags Source
SHA-256 checksum
How to use checksums
0fb38b1508d6a584c3472ea8ff8ca1728c248d38f8ad3438562b5e89c316d1c7
BLAKE2b-256 checksum
How to use checksums
1b2529cf66a1e02a2cdc3db1950764bc39254c147886c78fe3e8be53e2db7983
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.19

Release files / bayesflux-0.8-py3-none-any.whl

Download URL bayesflux-0.8-py3-none-any.whl
Size 18.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c2a461317165c4e07a58a37ef73b3cd8f37acb128c705bbd48a19bd8a9a8226
BLAKE2b-256 checksum
How to use checksums
e3c8ca8f376b5a224ddfc816808f33f298dc5259480d70904dfcbce8feb6039a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.19

Security for BayesFlux 0.8

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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