Skip to main content

Multilevel Monte Carlo method.

Project description

https://github.com/GeoMop/MLMC/workflows/package/badge.svg https://img.shields.io/pypi/v/mlmc.svg https://img.shields.io/pypi/pyversions/mlmc.svg https://img.shields.io/badge/License-GPLv3-blue.svg

MLMC is a Python library implementing the Multilevel Monte Carlo (MLMC) method. It provides tools for sampling, moment estimation, statistical post-processing, and more.

Originally developed as part of the GeoMop project.

Features

  • Sample scheduling

  • Estimation of generalized moments

  • Advanced post-processing with the Quantity structure

  • Approximation of probability density functions using the maximum entropy method

  • Bootstrap and regression-based variance estimation

  • Diagnostic tools (e.g., consistency checks)

Installation

The package is available on PyPI and can be installed with pip:

pip install mlmc

To install the latest development version:

git clone https://github.com/GeoMop/MLMC.git
cd MLMC
pip install -e .

Documentation

Full documentation, including tutorials, is available at: https://mlmc.readthedocs.io/

Topics covered include:

  • Basic MLMC workflow and examples

  • Definition and composition of Quantity objects

  • Moment and covariance estimation

  • Probability density function reconstruction

Development

Contributions are welcome! To contribute, please fork the repository and create a pull request.

Before submitting, make sure all tests pass by running tox:

pip install tox
tox

tox creates a clean virtual environment, installs all dependencies, runs unit tests via pytest, and checks that the package installs correctly.

Requirements

MLMC depends on the following Python packages:

License

  • Free software: GNU General Public License v3.0

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

mlmc-1.0.3.tar.gz (128.6 kB view details)

Uploaded Source

Built Distribution

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

mlmc-1.0.3-py3-none-any.whl (113.2 kB view details)

Uploaded Python 3

File details

Details for the file mlmc-1.0.3.tar.gz.

File metadata

  • Download URL: mlmc-1.0.3.tar.gz
  • Upload date:
  • Size: 128.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for mlmc-1.0.3.tar.gz
Algorithm Hash digest
SHA256 afda9b7954ac7f296232af633e0592b5f1965a557c0127588e50569b2b3b9d41
MD5 fdf7be176c03f66eb2ae128bc0a3fff4
BLAKE2b-256 8a7a989a0d3b3d966d69eccb9ab2fac284455329e11f8c3589e1baedba48312f

See more details on using hashes here.

File details

Details for the file mlmc-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: mlmc-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 113.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for mlmc-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 60d256e14d3413ebe7dac74a79612f9881350533d2855367eedc4234da5e384a
MD5 b848a1f47849ebc68846f809271ec887
BLAKE2b-256 a74c4aa1e810ef953408cfa11463d57ec3727b2b6074f7e6444e50409649b1bb

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