Skip to main content

Code for Bayesian Analysis

Project description

Author:

Jesus Torrado and Antony Lewis

Source:

Source code at GitHub

Documentation:

Documentation at Readthedocs

Licence:

LGPL + mandatory bug reporting asap + mandatory arXiv’ing of publications using it (see LICENCE.txt for exceptions). The documentation is licensed under the GFDL.

E-mail list:

https://cosmocoffee.info/cobaya/sign up for important bugs and release announcements!

Support:

For general support, CosmoCoffee; for bugs and issues, use the issue tracker.

Installation:

pip install cobaya --upgrade (see the installation instructions; in general do not clone)

https://travis-ci.com/CobayaSampler/cobaya.svg?branch=master https://img.shields.io/pypi/v/cobaya.svg?style=flat https://readthedocs.org/projects/cobaya/badge/?version=latest https://codecov.io/gh/CobayaSampler/cobaya/branch/master/graphs/badge.svg https://img.shields.io/badge/arXiv-2005.05290-b31b1b.svg?color=0B6523

Cobaya (code for bayesian analysis, and Spanish for Guinea Pig) is a framework for sampling and statistical modelling: it allows you to explore an arbitrary prior or posterior using a range of Monte Carlo samplers (including the advanced MCMC sampler from CosmoMC, and the advanced nested sampler PolyChord). The results of the sampling can be analysed with GetDist. It supports MPI parallelization (and very soon HPC containerization with Docker/Shifter and Singularity).

Its authors are Jesus Torrado and Antony Lewis. Some ideas and pieces of code have been adapted from other codes (e.g CosmoMC by Antony Lewis and contributors, and Monte Python, by J. Lesgourgues and B. Audren).

Cobaya has been conceived from the beginning to be highly and effortlessly extensible: without touching cobaya’s source code, you can define your own priors and likelihoods, create new parameters as functions of other parameters…

Though cobaya is a general purpose statistical framework, it includes interfaces to cosmological theory codes (CAMB and CLASS) and likelihoods of cosmological experiments (Planck, Bicep-Keck, SDSS… and more coming soon). Automatic installers are included for all those external modules. You can also use cobaya simply as a wrapper for cosmological models and likelihoods, and integrate it in your own sampler/pipeline.

The interfaces to most cosmological likelihoods are agnostic as to which theory code is used to compute the observables, which facilitates comparison between those codes. Those interfaces are also parameter-agnostic, so using your own modified versions of theory codes and likelihoods requires no additional editing of cobaya’s source.

How to cite us

If you use cobaya, please cite its pre-print, arXiv:2005.05290, and its ASCL record, ascl:1910.019.

To appropriately cite the packages (samplers, theory codes, likelihoods) that you have used, simply run the script cobaya-bib with your input file(s) as argument(s), and you will get bibtex references and a short suggested text snippet for each module mentioned in your input file. You can find a usage example here.

Acknowledgements

Thanks to J. Lesgourgues and W. Handley for support on interfacing CLASS and PolyChord respectively.

Thanks too to G. Cañas Herrera, A. Finke, X. Garrido, S. Heimersheim, L. Hergt, C. Hill, P. Lemos, M.S. Madhavacheril, V. Miranda, T. Morton, M. Rashkovetskyi, J. Zunz and many others for extensive and somewhat painful testing.

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

cobaya-3.2.tar.gz (327.2 kB view details)

Uploaded Source

File details

Details for the file cobaya-3.2.tar.gz.

File metadata

  • Download URL: cobaya-3.2.tar.gz
  • Upload date:
  • Size: 327.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.3

File hashes

Hashes for cobaya-3.2.tar.gz
Algorithm Hash digest
SHA256 ec16adb8a69b443d69118be4b302e80726d36b995dab3c918b2e6c37e423f880
MD5 d4a557e2edc6d686b39652ef975110ae
BLAKE2b-256 003b24168c3989b941a4bd082d2d8a98c708bf8149fe93638b5dbc6047227a79

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