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,
  • No hand-tuning,
  • Excellent performance in terms of autocorrelation time and convergence rate,
  • Scale to multiple CPUs without any extra effort.

GitHub 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 logp(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.rand(ndim)

sampler = zeus.sampler(logp, nwalkers, ndim, args=[ivar])
sampler.run(start, nsteps)

Documentation

Read the docs at zeus-mcmc.readthedocs.io

Installation

To install zeus using pip run

pip install git+https://github.com/minaskar/zeus

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.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

zeus_mcmc-1.0.0-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zeus-mcmc-1.0.0.tar.gz
  • Upload date:
  • Size: 7.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.0.tar.gz
Algorithm Hash digest
SHA256 d6bd4039533eac1a4fb9dad3f05fd935bd95ea43f847c1fa247f5b45c74aaa42
MD5 d99242e19723fd4838c50206fcc28450
BLAKE2b-256 36256271e86cd58be911ae794101e9010519e0a136d2b923e1e37add6b6ef48f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zeus_mcmc-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 21.0 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e669692e290f182546264e8facaf50f9081dd4b29bc0e9ff8480c675ca031c2b
MD5 bfd6a3402ffdfae68e23088a90bb0637
BLAKE2b-256 58f1193ebd7a0c7880399db5b031449a28554a811aeee186d9e11c3b2775feeb

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