Metadata-Version: 2.4
Name: cosmocompare
Version: 0.0.12
Summary: Bayesian model comparison by importance sampling of existing nested-sampling chains
Author-email: Dily Duan Yi Ong <dlo26@cam.ac.uk>
License-Expression: MIT
Project-URL: Homepage, https://github.com/DilyOng/cosmocompare
Project-URL: Bug Tracker, https://github.com/DilyOng/cosmocompare/issues
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Astronomy
Classifier: Topic :: Scientific/Engineering :: Physics
Requires-Python: >=3.11
Description-Content-Type: text/x-rst
License-File: LICENSE
Requires-Dist: numpy
Requires-Dist: scipy
Requires-Dist: pandas
Requires-Dist: pyyaml
Requires-Dist: anesthetic
Provides-Extra: likelihood
Requires-Dist: cobaya; extra == "likelihood"
Provides-Extra: parallel
Requires-Dist: joblib; extra == "parallel"
Requires-Dist: tqdm; extra == "parallel"
Provides-Extra: docs
Requires-Dist: sphinx; extra == "docs"
Requires-Dist: sphinx_rtd_theme; extra == "docs"
Requires-Dist: numpydoc; extra == "docs"
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Requires-Dist: pytest-cov; extra == "test"
Requires-Dist: flake8; extra == "test"
Requires-Dist: pydocstyle; extra == "test"
Requires-Dist: packaging; extra == "test"
Requires-Dist: black; extra == "test"
Requires-Dist: isort; extra == "test"
Dynamic: license-file

===================================================================================
cosmocompare: Bayesian model comparison by importance sampling of existing chains
===================================================================================

:Author: Dily Duan Yi Ong
:License: MIT
:Homepage: https://github.com/DilyOng/cosmocompare

.. image:: https://img.shields.io/pypi/v/cosmocompare.svg
   :target: https://pypi.org/project/cosmocompare/
   :alt: PyPI

.. image:: https://img.shields.io/pypi/pyversions/cosmocompare.svg
   :target: https://pypi.org/project/cosmocompare/
   :alt: Python versions

.. image:: https://img.shields.io/badge/License-MIT-yellow.svg
   :target: https://github.com/DilyOng/cosmocompare/blob/main/LICENSE
   :alt: License: MIT

``cosmocompare`` performs Bayesian model comparison without rerunning nested
sampling. It takes the posterior samples a survey already produced under one
model and prior, reweights them onto a narrowed or changed prior and onto
extended models, and recomputes the Bayesian evidence with an uncertainty, so
that a model-comparison verdict and its sensitivity to the prior can be obtained
in seconds on a laptop.

Developed under a UKRI-funded high performance computing (DiRAC) project.

Installation
------------

.. code:: bash

    pip install cosmocompare                  # reweighting, evidence, diagnostics
    pip install "cosmocompare[likelihood]"    # adds the Cobaya likelihood stack

Requires Python 3.11 or later.
