Skip to main content

Access modules for the MultiNest, APEMoST, Cuba and PolyChord integration libraries

Project description

This library provides programmatic access to MultiNest and PyCuba.

What is MultiNest?

MultiNest is a program and a sampling technique. As a Bayesian inference technique, it allows parameter estimation and model selection. (find out more in the MultiNest paper, http://arxiv.org/abs/0809.3437, or in a classic MCMC sampler, http://apemost.sf.net/ ). Recently, MultiNest added Importance Nested Sampling (INS, see http://arxiv.org/abs/1306.2144) which is now also supported.

The efficient Monte Carlo algorithm for sampling the parameter space is based on nested sampling and the idea of disjoint multi-dimensional ellipse sampling.

For the scientific community, where Python is becoming the new lingua franca (luckily), I provide an interface to MultiNest.

What does PyMultiNest do?

PyMultiNest

  • provides an easy-to-use interface to MultiNest

  • provides integration with your existing scientific Python code (numpy, scipy)

  • allows you to write Prior & LogLikelihood functions in Python.

PyMultiNest can

  • Plot and visualize MultiNests progress (watch.ProgressWatcher, watch.ProgressPlotter). This is still fairly basic, contributions and ideas are welcome)

  • Easy plotting, visualization and summary of MultiNest results.

The plotting can be run on existing MultiNest output, and when not using PyMultiNest for running MultiNest.

Code contributions are welcome! Contact me (buchner.johannes [ät] gmx.at).

How can I use MultiNest with Python?

Look at the documentation available at http://johannesbuchner.github.com/PyMultiNest/index.html

Citing PyMultiNest

See the documentation at http://johannesbuchner.github.com/PyMultiNest/index.html

What is PyAPEMoST?

Similarly to PyMultiNest, it is an access module for a Bayesian inference engine. However, APEMoST is a Markov Chain Monte Carlo engine. See the documentation.

What is PyCuba?

Cuba (http://www.feynarts.de/cuba/, https://github.com/JohannesBuchner/cuba) is a multidimensional numerical integration library for low dimensions. PyCuba allows integration of Python functions, providing an advanced alternative to the basic functions provided in scipy.integrate.

In the Bayesian sense, it is possible to use Cuba for model selection.

Q: Python callback functions are too slow!

If you really identified that your callback functions are too slow, even when using the usual tricks (numpy, etc.), you can implement and compile them as C functions.

You still have the neat python interface (default parameters, etc.), but achieve full execution speed, as only native code is executed while MultiNest runs.

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

pymultinest-1.8.tar.gz (39.3 kB view details)

Uploaded Source

Built Distribution

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

pymultinest-1.8-py2.7.egg (70.7 kB view details)

Uploaded Egg

File details

Details for the file pymultinest-1.8.tar.gz.

File metadata

  • Download URL: pymultinest-1.8.tar.gz
  • Upload date:
  • Size: 39.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pymultinest-1.8.tar.gz
Algorithm Hash digest
SHA256 6b71f0701d5450317534a678cd5bf2a8f43ab49d30a6b290d958d13f835a13cf
MD5 ee0cebadbe8cef9df55b4f4f3bbe867b
BLAKE2b-256 dd276606bb235d23a22103c2bc7d0c94c5d30b12ade22595f22f34a7370009d0

See more details on using hashes here.

File details

Details for the file pymultinest-1.8-py2.7.egg.

File metadata

  • Download URL: pymultinest-1.8-py2.7.egg
  • Upload date:
  • Size: 70.7 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pymultinest-1.8-py2.7.egg
Algorithm Hash digest
SHA256 c95035e93d52e4855f8b23526ff0b6a81122dd141ee4e22f3b0b88a80ecec20d
MD5 c9ad4f1cc3dbc7d0a3235dcb6763c40a
BLAKE2b-256 b9277ab56c13576a14a80c8eb31beb5cbbce8e011eeef3bc72d700b102f8cc9f

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