Skip to main content

zeus: Lightning Fast MCMC

Project description

logo

zeus is a pure-Python implementation of the Ensemble Slice Sampling method.

  • Fast & Robust Bayesian Inference,
  • Efficient Markov Chain Monte Carlo,
  • No hand-tuning,
  • Excellent performance in terms of autocorrelation time and convergence rate,
  • Scale to multiple CPUs without any extra effort.

GitHub arXiv Build Status License: GPL v3 Documentation Status

Example

For instance, if you wanted to draw samples from a 10-dimensional Gaussian, you would do something like:

import numpy as np
import zeus

def log_prob(x, ivar):
    return - 0.5 * np.sum(ivar * x**2.0)

nsteps, nwalkers, ndim = 1000, 100, 10
ivar = 1.0 / np.random.rand(ndim)
start = np.random.randn(nwalkers,ndim)

sampler = zeus.sampler(nwalkers, ndim, log_prob, args=[ivar])
sampler.run_mcmc(start, nsteps)

Documentation

Read the docs at zeus-mcmc.readthedocs.io

Installation

To install zeus using pip run

pip install zeus-mcmc

Attribution

Please cite Karamanis & Beutler (2020) if you find this code useful in your research. The BibTeX entry for the paper is:

@article{zeus,
      title={Ensemble Slice Sampling},
      author={Minas Karamanis and Florian Beutler},
      year={2020},
      eprint={2002.06212},
      archivePrefix={arXiv},
      primaryClass={stat.ML}
}

Licence

Copyright 2019-2020 Minas Karamanis and contributors.

zeus is free software made available under the GPL-3.0 License. For details see the LICENSE file.

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

zeus-mcmc-1.0.6.tar.gz (9.7 kB view details)

Uploaded Source

Built Distributions

zeus_mcmc-1.0.6-py3.7.egg (19.7 kB view details)

Uploaded Source

zeus_mcmc-1.0.6-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

Details for the file zeus-mcmc-1.0.6.tar.gz.

File metadata

  • Download URL: zeus-mcmc-1.0.6.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.6

File hashes

Hashes for zeus-mcmc-1.0.6.tar.gz
Algorithm Hash digest
SHA256 79b30589b81cdc39608447c50cef0661b04317d645737aa41b9a8b73ad8a0186
MD5 08eedce4604c3cc1efaf40632a8c831b
BLAKE2b-256 cd6e9cd2cd365dbdfa1ee90ee7f71c2884af5534017e877b9be59a0df4e73f01

See more details on using hashes here.

File details

Details for the file zeus_mcmc-1.0.6-py3.7.egg.

File metadata

  • Download URL: zeus_mcmc-1.0.6-py3.7.egg
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.6

File hashes

Hashes for zeus_mcmc-1.0.6-py3.7.egg
Algorithm Hash digest
SHA256 b815ab97e699c02acd8ff40302c65d3b809e8ab40b9f7d093ec2fba522f20873
MD5 2cc7d8adf190d5012b669c6c4a8ee87c
BLAKE2b-256 4132a0f837eedee6831d6d72093d8e80a57248b1c908f9969d3513c54d7b9ff5

See more details on using hashes here.

File details

Details for the file zeus_mcmc-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: zeus_mcmc-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 22.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.6

File hashes

Hashes for zeus_mcmc-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9cd74ea9cf3984d4b6de0c47edb7830304313ca68551198ca6054ad72c21a33a
MD5 f3f785400bab1dd9894bf97451ad6fee
BLAKE2b-256 6481f8176df68f2cac9afbd3c78a4b0d991523dbecc44b7e940e4bad0679cfea

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page