Skip to main content

Differentiable Likelihood for CMB Analysis

Project description

https://github.com/Lbalkenhol/candl/raw/main/docs/logos/candl_wordmark&symbol_col_RGB.png

CMB Analysis With A Differentiable Likelihood

Authors:

L. Balkenhol, C. Trendafilova, K. Benabed, S. Galli

Paper:

arxivshield

Source:

https://github.com/Lbalkenhol/candl

Documentation:

docsshield

candl is a differentiable likelihood framework for analysing CMB power spectrum measurements. Key features are:

  • JAX-compatibility, allowing for fast and easy computation of gradients and Hessians of the likelihoods.

  • The latest public data releases from the South Pole Telescope and Atacama Cosmology Telescope collaborations.

  • Interface tools for work with other popular cosmology software packages (e.g. Cobaya and MontePython).

  • Auxiliary tools for common analysis tasks (e.g. generation of mock data).

candl supports the analysis of primary CMB and lensing power spectrum data (\(TT\), \(TE\), \(EE\), \(BB\), \(\phi\phi\), \(\kappa\kappa\)).

Installation

candl can be installed with pip:

pip install candl-like

After installation, we recommend testing by executing the following python code:

import candl.tests
candl.tests.run_all_tests()

This well test all data sets included in candl.

Data Sets

The pip installation of candl currently ships with the following data sets:

Detailed information on these data sets, how to install data sets separately from the likelihood code, and instructions on how you can add your own data sets can be found in the docs.

JAX

JAX is a Google-developed python library. In its own words: “JAX is Autograd and XLA, brought together for high-performance numerical computing.”

candl is written in a JAX-friendly way. That means JAX is optional and you can install and run candl without JAX and perform traditional inference tasks such as MCMC sampling with Cobaya. However, if JAX is installed, the likelihood is fully differentiable thanks to automatic differentiation and many functions are jitted for speed.

Packages and Versions

candl has been built on python 3.10. You may be able to get it running on 3.9, but this is not officially supported - run it at your own risk.

candl has been tested on JAX versions 0.4.31 and 0.4.24.

Documentation

You can find the documentation here.

Citing candl

If you use candl please cite the release paper. Be sure to also cite the relevant papers for any samplers, theory codes, and data sets you use.


CNRS ERC NEUCosmoS IAP Sorbonne

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

candl_like-1.5.1.tar.gz (24.4 MB view details)

Uploaded Source

Built Distribution

candl_like-1.5.1-py3-none-any.whl (24.9 MB view details)

Uploaded Python 3

File details

Details for the file candl_like-1.5.1.tar.gz.

File metadata

  • Download URL: candl_like-1.5.1.tar.gz
  • Upload date:
  • Size: 24.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.14

File hashes

Hashes for candl_like-1.5.1.tar.gz
Algorithm Hash digest
SHA256 7472078b73a5016c72e5e6f58c36ce6a3274aa28b14ce99d604471cb55151603
MD5 f23fa9932799d9ea4660c8b811947c19
BLAKE2b-256 246c110e311afab7071d3488b42e0c1f60ea10c6ab7304283dce435bd44ca48b

See more details on using hashes here.

File details

Details for the file candl_like-1.5.1-py3-none-any.whl.

File metadata

  • Download URL: candl_like-1.5.1-py3-none-any.whl
  • Upload date:
  • Size: 24.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.14

File hashes

Hashes for candl_like-1.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 433ff35d1478b6ef0bcdd7737667a3b283ba0bbee0819bbe7d1543d8284226be
MD5 278dc8c1108aa20ce6cae9c2d12e9cf6
BLAKE2b-256 f118b8e1bc96543a35d92abc8651b51998dedb507a7d595aa8d160f9cb89faa3

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