Code for Bayesian Analysis
Project description
- Source:
- Documentation:
- Licence:
LGPL + bug reporting asap + arXiv’ing of publications using it (see LICENCE.txt for details and 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)
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.
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.
(Copyright for the logos above belongs to their respective institutions.)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cobaya-3.6.1.tar.gz.
File metadata
- Download URL: cobaya-3.6.1.tar.gz
- Upload date:
- Size: 415.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9fb404903e8e221b73879f296e8d5b27c8ae5879d03ad7e86f05c9d3ce42a4c5
|
|
| MD5 |
0543400622fc8d33055792f5290b5956
|
|
| BLAKE2b-256 |
71167ce92d7a0a0f973d4dfb3046e2645be8c1dc6c9e92464a88764d4626f6dd
|
Provenance
The following attestation bundles were made for cobaya-3.6.1.tar.gz:
Publisher:
tests.yml on CobayaSampler/cobaya
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cobaya-3.6.1.tar.gz -
Subject digest:
9fb404903e8e221b73879f296e8d5b27c8ae5879d03ad7e86f05c9d3ce42a4c5 - Sigstore transparency entry: 894204930
- Sigstore integration time:
-
Permalink:
CobayaSampler/cobaya@e4c33bad0eab5e88421098cc59245a8a97dfb2fe -
Branch / Tag:
refs/tags/v3.6.1 - Owner: https://github.com/CobayaSampler
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
tests.yml@e4c33bad0eab5e88421098cc59245a8a97dfb2fe -
Trigger Event:
push
-
Statement type:
File details
Details for the file cobaya-3.6.1-py3-none-any.whl.
File metadata
- Download URL: cobaya-3.6.1-py3-none-any.whl
- Upload date:
- Size: 494.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45b3eab9fe1ca45b76f7cc582c4e3f974620bb76f1ab01d63daf132dcca7ce1f
|
|
| MD5 |
18c20f9356fd093ec64ae00c688a940c
|
|
| BLAKE2b-256 |
9fe3b7d89c7ff92a681a8d14374339c3f85dceaed27b60d040e665f1ac60d893
|
Provenance
The following attestation bundles were made for cobaya-3.6.1-py3-none-any.whl:
Publisher:
tests.yml on CobayaSampler/cobaya
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cobaya-3.6.1-py3-none-any.whl -
Subject digest:
45b3eab9fe1ca45b76f7cc582c4e3f974620bb76f1ab01d63daf132dcca7ce1f - Sigstore transparency entry: 894204950
- Sigstore integration time:
-
Permalink:
CobayaSampler/cobaya@e4c33bad0eab5e88421098cc59245a8a97dfb2fe -
Branch / Tag:
refs/tags/v3.6.1 - Owner: https://github.com/CobayaSampler
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
tests.yml@e4c33bad0eab5e88421098cc59245a8a97dfb2fe -
Trigger Event:
push
-
Statement type: