Skip to main content

Kick ass affine-invariant ensemble MCMC sampling

Project description

The Python ensemble sampling toolkit for affine-invariant MCMC

https://secure.travis-ci.org/dfm/emcee.png?branch=master https://pypip.in/d/emcee/badge.png https://pypip.in/v/emcee/badge.png

emcee is a stable, well tested Python implementation of the affine-invariant ensemble sampler for Markov chain Monte Carlo (MCMC) proposed by Goodman & Weare (2010). The code is open source and has already been used in several published projects in the Astrophysics literature.

Documentation

Read the docs at dan.iel.fm/emcee.

Attribution

Please cite Foreman-Mackey, Hogg, Lang & Goodman (2012) if you find this code useful in your research and add your paper to the testimonials list. The BibTeX entry for the paper is:

@article{emcee,
   author = {{Foreman-Mackey}, D. and {Hogg}, D.~W. and {Lang}, D. and {Goodman}, J.},
    title = {emcee: The MCMC Hammer},
  journal = {PASP},
     year = 2013,
   volume = 125,
    pages = {306-312},
   eprint = {1202.3665},
      doi = {10.1086/670067}
}

License

Copyright 2010-2013 Dan Foreman-Mackey and contributors.

emcee is free software made available under the MIT License. For details see the LICENSE file.

Changelog

2.1.0 (2014-05-22)

  • Removing dependence on acor extension.

  • Added arguments to PTSampler function.

  • Added automatic load-balancing for MPI runs.

  • Added custom load-balancing for MPI and multiprocessing.

  • New default multiprocessing pool that supports ^C.

2.0.0 (2013-11-17)

  • Re-licensed under the MIT license!

  • Clearer less verbose documentation.

  • Added checks for parameters becoming infinite or NaN.

  • Added checks for log-probability becoming NaN.

  • Improved parallelization and various other tweaks in PTSampler.

1.2.0 (2013-01-30)

  • Added a parallel tempering sampler PTSampler.

  • Added instructions and utilities for using emcee with MPI.

  • Added flatlnprobability property to the EnsembleSampler object to be consistent with the flatchain property.

  • Updated document for publication in PASP.

  • Various bug fixes.

1.1.3 (2012-11-22)

  • Made the packaging system more robust even when numpy is not installed.

1.1.2 (2012-08-06)

  • Another bug fix related to metadata blobs: the shape of the final blobs object was incorrect and all of the entries would generally be identical because we needed to copy the list that was appended at each step. Thanks goes to Jacqueline Chen (MIT) for catching this problem.

1.1.1 (2012-07-30)

  • Fixed bug related to metadata blobs. The sample function was yielding the blobs object even when it wasn’t expected.

1.1.0 (2012-07-28)

  • Allow the lnprobfn to return arbitrary “blobs” of data as well as the log-probability.

  • Python 3 compatible (thanks Alex Conley)!

  • Various speed ups and clean ups in the core code base.

  • New documentation with better examples and more discussion.

1.0.1 (2012-03-31)

  • Fixed transpose bug in the usage of acor in EnsembleSampler.

1.0.0 (2012-02-15)

  • Initial release.

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

emcee-2.1.0.tar.gz (23.1 kB view details)

Uploaded Source

File details

Details for the file emcee-2.1.0.tar.gz.

File metadata

  • Download URL: emcee-2.1.0.tar.gz
  • Upload date:
  • Size: 23.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for emcee-2.1.0.tar.gz
Algorithm Hash digest
SHA256 5ce1039a3d78fb9e7d53fcd768517585c5998193743bfcfaac407927d375ca63
MD5 c6b6fad05c824d40671d4a4fc58dfff7
BLAKE2b-256 de002358f12c98fa74ab58d78e6a4a4f9a8152fadf6ade2d809d98d771dcc31b

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