Skip to main content

PyPI version Supported Python versions License Code Style Black Tests

Coverage Vulnerabilities Bugs Lines of Code Duplicated Lines (%) Code Smells Security Rating Maintainability Rating

openMCMC

openMCMC is a package for constructing Bayesian models from distributional components, and then doing parameter estimation using Markov Chain Monte Carlo (MCMC) methods. The package supports a number of standard distributions used in Bayesian modelling (e.g. Normal, gamma, uniform), and a number of simple functional forms for the parameters of these distributions. For a model constructed in the toolbox, a number of different MCMC algorithms are available, including simple random walk Metropolis-Hastings, manifold MALA, exact samplers for conjugate distribution choices, and reversible-jump MCMC for parameters with an unknown dimensionality.


Installing openMCMC as a package

Suppose you want to use this openMCMC package in a different project. You can install it from PyPi through pip pip install openmcmc. Or you could clone the repository and install it from the source code. After activating the environment you want to install openMCMC in, open a terminal, move to the main openMCMC folder where pyproject.toml is located and run pip install ., optionally you can pass the -e flag is for editable mode. All the main options, info and settings for the package are found in the pyproject.toml file which sits in this repo as well.


Examples

For some examples on how to use this package please check out these Examples


Contribution

This project welcomes contributions and suggestions. If you have a suggestion that would make this better you can simply open an issue with a relevant title. Don't forget to give the project a star! Thanks again!

Contributor setup with uv

This repository now uses uv for contributor environment management.

  1. Install uv by following the official instructions.
  2. From the repository root (where pyproject.toml is located), create and sync the environment with contributor tools:
uv sync --group contributor --group dev
  1. Run commands in the project environment using uv:
uv run pytest .
uv run black . --check
uv run isort . --check
uv run pydocstyle .
uv run pylint src/

For more details on contributing to this repository, see the Contributing guide.


Licensing

Distributed under the Apache License Version 2.0. See the license file for more information.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openmcmc-1.0.9.tar.gz (50.3 kB view details)

Uploaded Source

Built Distribution

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

openmcmc-1.0.9-py3-none-any.whl (41.3 kB view details)

Uploaded Python 3

File details

Details for the file openmcmc-1.0.9.tar.gz.

File metadata

  • Download URL: openmcmc-1.0.9.tar.gz
  • Upload date:
  • Size: 50.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.15

File hashes

Hashes for openmcmc-1.0.9.tar.gz
Algorithm Hash digest
SHA256 97cd225be9eb3c296faf9a06a581934073a5d35d00660b63c982b23410d59283
MD5 53185bd75c05df9b1dfc8a080f7d110d
BLAKE2b-256 3f75f40bc7781ff99750f1e1c5d7c26e18fa11617fb1cd5100c1dfa925d38571

See more details on using hashes here.

File details

Details for the file openmcmc-1.0.9-py3-none-any.whl.

File metadata

  • Download URL: openmcmc-1.0.9-py3-none-any.whl
  • Upload date:
  • Size: 41.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.15

File hashes

Hashes for openmcmc-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 736f22753d4df81963837e32293ee42f5eda129a467654cacbbf7e68d5a316b5
MD5 ead15f0a36ede816a7055004ec1dff7c
BLAKE2b-256 3c59e5f4faffe91c772750dc75f36c3a25e0952ae78e284ca1140c0151bf2a07

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.9 This release

2 files

1.0.8

2 files

1.0.7

2 files

1.0.6

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

2 files

1.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page