Skip to main content

CI Docs License Ruff

Large Scale MCMC Library

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.

Key Features

  • 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 $\mu$ that is known up to a normalization constant. We assume the density is known w.r.t. a reference Gaussian measure $\mu_0 = N(0, C)$, i.e.

$$ \frac{d\mu}{d\mu_0} \propto L(u) = \exp(-\Phi(u)). $$

In this case the user only needs to supply the covariance operator of the reference measure $C$ and the potential function $\Phi$.

Installation and Development

Releases of this version can be downloaded from pip directly:

pip install ls-mcmc

This library relies on uv for packaging. To install a development environment, clone the Github repository and run

uv sync --all-groups

in the projects root folder.

Documentation

Usage

The usage section describes a basic setup for sampling from a distribution, configuring logging output, disk-storage and restarting of chains.

API Reference

The API reference contains documentation for all parts of the library.

Examples

Other examples can be found here.

Acknowledgement and License

This package is developed by the Uncertainty Quantification Research Group at KIT. It is distributed under the MIT License.

Metadata

Release files for ls-mcmc 0.0.3

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

Source distribution (sdist)

Source distribution for ls-mcmc 0.0.3
File Size Uploaded
ls_mcmc-0.0.3.tar.gz 489.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ls-mcmc 0.0.3
File Interpreter ABI Platform
ls_mcmc-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 506.0 kB

Release files / ls_mcmc-0.0.3.tar.gz

Download URL ls_mcmc-0.0.3.tar.gz
Size 489.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d7d0772b6e6c7737487eda2fd52ad29dd61428b99511121302cfa4408bf25ae7
BLAKE2b-256 checksum
How to use checksums
af135f1792b9e9766d66b17741c81edb899d45aaf45631b72164e24830df3aa0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.8

Release files / ls_mcmc-0.0.3-py3-none-any.whl

Download URL ls_mcmc-0.0.3-py3-none-any.whl
Size 16.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1f9a362655bbd0a0fc1abb7ff7d0ca93853849ba31f11a04057c6336dbfdba2e
BLAKE2b-256 checksum
How to use checksums
7dde88bdb67de3bba7df4cf8ffe36b6574d9b9ed82abbe97b690af0bc6c4a0de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.8

Release history Release notifications | RSS feed

This release

0.0.3 This release

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