Skip to main content

FIGARO: Fast Inference for GW Astronomy, Research & Observations

Project description

FIGARO - Fast Inference for GW Astronomy, Research & Observations

FIGARO is an inference code designed to estimate multivariate probability densities given samples from an unknown distribution using a Dirichlet Process Gaussian Mixture Model (DPGMM) as nonparameteric model. It is also possible to perform hierarchical inferences: in this case, the model used is (H)DPGMM, described in Rinaldi & Del Pozzo (2022a). Differently from other DPGMM implementations relying on variational algorithms, FIGARO does not require the user to specify a priori the maximum allowed number of mixture components. The required number of Gaussian distributions to be included in the mixture is inferred from the data. The documentation and user guide for FIGARO is available at the documentation page.

DOI Test

Getting started

You can install FIGARO either via pip (stable release, recommended)

pip install figaro

or from the repository (potentially unstable)

git clone git@github.com:sterinaldi/FIGARO.git
cd FIGARO
pip install .

FIGARO comes with two plug-and-play CLI:

  • figaro-density reconstructs a probability density given a set of samples;
  • figaro-hierarchical reconstructs a probability density given a set of single-event samples, each of them drawn around a sample from the initial probability density.

If you only want to reconstruct some probability density or run a vanilla hierarchical analysis, we strongly recommend using these CLI, which are already tested and optimised. A (hopefully gentle) introduction to them can be found at this page, and a guide on how to use the FIGARO reconstructions is available here. If you want to include FIGARO in your own scripts, an introductive guide can be found here: there we show how to to reconstruct a probability density with FIGARO and how to use its products.

Acknowledgments

If you use FIGARO in your research, please cite Rinaldi & Del Pozzo (2024):

@ARTICLE{Rinaldi2024,
       author = {{Rinaldi}, Stefano and {Del Pozzo}, Walter},
        title = "{FIGARO: hierarchical non-parametric inference for population studies}",
      journal = {Journal of Open Source Software},
    publisher = {The Open Journal},
         year = 2024,
        month = may,
       volume = {9},
       number = {97},
        pages = {6589},
          doi = {10.21105/joss.06589},
          url = {https://doi.org/10.21105/joss.06589}
}

If you make use of the hierarchical analysis, you should mention (H)DPGMM as the model used and cite Rinaldi & Del Pozzo (2022):

@ARTICLE{2022MNRAS.509.5454R,
       author = {{Rinaldi}, Stefano and {Del Pozzo}, Walter},
        title = "{(H)DPGMM: a hierarchy of Dirichlet process Gaussian mixture models for the inference of the black hole mass function}",
      journal = {\mnras},
     keywords = {gravitational waves, methods: data analysis, methods: statistical, stars: black holes, Astrophysics - Instrumentation and Methods for Astrophysics, General Relativity and Quantum Cosmology},
         year = 2022,
        month = feb,
       volume = {509},
       number = {4},
        pages = {5454-5466},
          doi = {10.1093/mnras/stab3224},
archivePrefix = {arXiv},
       eprint = {2109.05960},
 primaryClass = {astro-ph.IM},
       adsurl = {https://ui.adsabs.harvard.edu/abs/2022MNRAS.509.5454R},
      adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

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

figaro-1.11.0.tar.gz (65.7 kB view details)

Uploaded Source

Built Distribution

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

figaro-1.11.0-py3-none-any.whl (76.6 kB view details)

Uploaded Python 3

File details

Details for the file figaro-1.11.0.tar.gz.

File metadata

  • Download URL: figaro-1.11.0.tar.gz
  • Upload date:
  • Size: 65.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for figaro-1.11.0.tar.gz
Algorithm Hash digest
SHA256 319eafbc593c3f2a40cb48a940a92f00dfd7de4fd441ec8d355a583d6eba899e
MD5 97d8b992c1eebaed2cbbe811302e35ca
BLAKE2b-256 5d4ca46a3d9a0984902e023fc7e712adec0ffac6606d47f6fd8fd8e979b1fdfb

See more details on using hashes here.

Provenance

The following attestation bundles were made for figaro-1.11.0.tar.gz:

Publisher: publish-to-pypi.yml on sterinaldi/FIGARO

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file figaro-1.11.0-py3-none-any.whl.

File metadata

  • Download URL: figaro-1.11.0-py3-none-any.whl
  • Upload date:
  • Size: 76.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for figaro-1.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2d5e4d7ae42e3de7f569e00885dac058c262e7b024b049511025afc98385bc96
MD5 f88c405eb4c99ed33c54ff6face27fbc
BLAKE2b-256 08201e6270b174f4d371f66f2722150f5eeefb02a35aa36020f1bd5e9e69eac2

See more details on using hashes here.

Provenance

The following attestation bundles were made for figaro-1.11.0-py3-none-any.whl:

Publisher: publish-to-pypi.yml on sterinaldi/FIGARO

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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