A lightweight, modular library developed for large-scale Markov Chain Monte Carlo. In particular, it implements algorithms that are infinite-dimensionally consistent to ensure discretization independent acceptance probabilities. The library is lightweight in the sense, that it tries to keep the overhead for the user as small as possible and relies heavily on modularization, so extensions can be easily implemented. It focuses on large-scale problems by supporting disk-based storage and reusing computed results as much as possible. It is most likely not the fastest MCMC library out there, but it is quick to use and supports most features that are essential for MCMC on function spaces.
- pCN and MALA support
- On-Disk sample storage
- Graceful exit on errors
Markov-Chain-Monte-Carlo Methods aim to sample from an unknown probability measure
In this case the user only needs to supply the covariance operator of the reference measure
Releases of this version can be downloaded from pip directly:
pip install ls-mcmcThis library relies on uv for packaging. To install a development environment, clone the Github repository and run
uv sync --all-groupsin the projects root folder.
The usage section describes a basic setup for sampling from a distribution, configuring logging output, disk-storage and restarting of chains.
The API reference contains documentation for all parts of the library.
Other examples can be found here.
This package is developed by the Uncertainty Quantification Research Group at KIT. It is distributed under the MIT License.