Skip to main content

BayesValidRox

bayesvalidrox logo

An open-source, object-oriented Python package for surrogate-assisted Bayesain Validation of computational models. This framework provides an automated workflow for surrogate-based sensitivity analysis, Bayesian calibration, and validation of computational models with a modular structure.

Project Status: Active – The project has reached a stable, usable state and is being actively developed.

Features

  • Surrogate modeling with Polynomial Chaos Expansion, Gaussian Process Emulator, mixed surrogate types
  • Global sensitivity analysis using Sobol Indices
  • Bayesian calibration and validation with Rejection sampling or MCMC using emcee package
  • Bayesian model comparison with model weights or confusion matrix for multi-model setting

Resources

The following resources are useful to get started on working with BayesValidRox:

Important links:

Authors

Best to contact: @RKohlhaas, @mariafer.morales

Full list of authors:

Installation

The best practive is to create a virtual environment and install the package inside it.

To create and activate the virtual environment run the following command in the terminal:

  python3 -m venv bayes_env
  cd bayes_env
  source bin/activate

You can replace bayes_env with your preferred name. For more information on virtual environments see this link.

Now, you can install the latest release of the package on PyPI inside the venv with:

  pip install bayesvalidrox

and installing the version on the master branch can be done by cloning this repo and installing:

  git clone https://git.iws.uni-stuttgart.de/inversemodeling/bayesvalidrox.git
  cd bayesvalidrox
  pip install .

Requirements

Core packages (same for all Python >=3.9)

  • numpy>=1.26.4
  • pandas>=2.2.3
  • joblib>=1.5.3
  • seaborn>=0.13.2
  • tqdm>=4.64.0
  • chaospy==4.3.21
  • h5py>=3.9.0
  • statsmodels>=0.14.2
  • multiprocess>=0.70.16
  • corner==2.2.3

Python 3.9

  • matplotlib>=3.7,<3.10
  • scipy>=1.9,<1.11
  • emcee>=3.0.2,<3.1.6
  • scikit-learn>=1.0,<1.2
  • datasets>=2.20.0,<4.0.0

Python >= 3.10

  • matplotlib>=3.10.0
  • scipy>=1.15.2
  • emcee>=3.1.6
  • scikit-learn>=1.7.2,<1.8.0
  • datasets>=4.6.1

TexLive for Plotting with matplotlib

Here you need super user rights

sudo apt-get install dvipng texlive-latex-extra texlive-fonts-recommended cm-super

Metadata

Release files for bayesvalidrox 2.2.0

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

Source distribution (sdist)

Source distribution for bayesvalidrox 2.2.0
File Size Uploaded
bayesvalidrox-2.2.0.tar.gz 174.4 kB Details

Built distribution (wheel)

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

Total release size: 329.4 kB

Release files / bayesvalidrox-2.2.0.tar.gz

Download URL bayesvalidrox-2.2.0.tar.gz
Size 174.4 kB
Tags Source
SHA-256 checksum
How to use checksums
85b5c0720c938a2b46e035c8d62c34e603f687e6a54a3bb6f132b687d22ff0fa
BLAKE2b-256 checksum
How to use checksums
47f8d78edf450fbe97fe30b0d73e009a40449058214de7ee673a00e39bf58962
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.5

Release files / bayesvalidrox-2.2.0-py3-none-any.whl

Download URL bayesvalidrox-2.2.0-py3-none-any.whl
Size 155.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f1d0adce9a68d77c6c130a397508736e059066ae74b37b9560a7db9adb99570b
BLAKE2b-256 checksum
How to use checksums
502153494ada3966b0141ed23d614e1862ad43221ec056110af0c31e8a426293
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.5

Release history Release notifications | RSS feed

This release

2.2.0 This release

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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