figaro


Namefigaro JSON
Version 1.6.6 PyPI version JSON
download
home_pageNone
SummaryFIGARO: Fast Inference for GW Astronomy, Research & Observations
upload_time2024-05-14 11:43:49
maintainerNone
docs_urlNone
authorNone
requires_python<3.12
licenseMIT License Copyright (c) 2022 Stefano Rinaldi Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords dpgmm figaro hierarchical inference hdpgmm
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # [FIGARO - Fast Inference for GW Astronomy, Research & Observations](https://www.youtube.com/watch?v=uJeJ4YiVFz8)

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)](https://ui.adsabs.harvard.edu/abs/2022MNRAS.509.5454R/abstract).
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](https://figaro.readthedocs.io).

## 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](https://figaro.readthedocs.io/en/latest/quickstart.html), and a guide on how to use the FIGARO reconstructions is available [here](https://figaro.readthedocs.io/en/latest/use_mixture.html).
If you want to include FIGARO in your own scripts, an introductive guide can be found [here](https://figaro.readthedocs.io/en/latest/python_script.html): 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 (2022b)](https://ui.adsabs.harvard.edu/abs/2022MNRAS.517L...5R/abstract):
```
@ARTICLE{2022MNRAS.517L...5R,
       author = {{Rinaldi}, Stefano and {Del Pozzo}, Walter},
        title = "{Rapid localization of gravitational wave hosts with FIGARO}",
      journal = {\mnras},
     keywords = {gravitational waves, methods: data analysis, methods: statistical, Astrophysics - Instrumentation and Methods for Astrophysics, General Relativity and Quantum Cosmology},
         year = 2022,
        month = nov,
       volume = {517},
       number = {1},
        pages = {L5-L10},
          doi = {10.1093/mnrasl/slac101},
archivePrefix = {arXiv},
       eprint = {2205.07252},
 primaryClass = {astro-ph.IM},
       adsurl = {https://ui.adsabs.harvard.edu/abs/2022MNRAS.517L...5R},
      adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}
```

If you make use of the hierarchical analysis, you should mention (H)DPGMM as the model used and cite [Rinaldi & Del Pozzo (2022a)](https://ui.adsabs.harvard.edu/abs/2022MNRAS.509.5454R/abstract):

```
@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}
}
```


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "figaro",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<3.12",
    "maintainer_email": null,
    "keywords": "DPGMM, figaro, hierarchical, inference, HDPGMM",
    "author": null,
    "author_email": "Stefano Rinaldi <stefano.rinaldi@uni-heidelberg.de>, Walter Del Pozzo <walter.delpozzo@unipi.it>, Daniele Sanfratello <daniele.sanfratello@studenti.unipi.it>",
    "download_url": "https://files.pythonhosted.org/packages/a7/d7/7dc665156e0cf1848fc3fd705ba9bfa5be259215e8c7de04f7eefe5f13b9/figaro-1.6.6.tar.gz",
    "platform": null,
    "description": "# [FIGARO - Fast Inference for GW Astronomy, Research & Observations](https://www.youtube.com/watch?v=uJeJ4YiVFz8)\n\nFIGARO 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.\nIt is also possible to perform hierarchical inferences: in this case, the model used is (H)DPGMM, described in [Rinaldi & Del Pozzo (2022a)](https://ui.adsabs.harvard.edu/abs/2022MNRAS.509.5454R/abstract).\nDifferently 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](https://figaro.readthedocs.io).\n\n## Getting started\n\nYou can install FIGARO either via pip (stable release, recommended) \n```\npip install figaro\n```\nor from the repository (potentially unstable)\n```\ngit clone git@github.com:sterinaldi/FIGARO.git\ncd FIGARO\npip install .\n```\n\nFIGARO comes with two plug-and-play CLI:\n\n* `figaro-density` reconstructs a probability density given a set of samples;\n* `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.\n\nIf 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](https://figaro.readthedocs.io/en/latest/quickstart.html), and a guide on how to use the FIGARO reconstructions is available [here](https://figaro.readthedocs.io/en/latest/use_mixture.html).\nIf you want to include FIGARO in your own scripts, an introductive guide can be found [here](https://figaro.readthedocs.io/en/latest/python_script.html): there we show how to to reconstruct a probability density with FIGARO and how to use its products.\n\n## Acknowledgments\n\nIf you use FIGARO in your research, please cite [Rinaldi & Del Pozzo (2022b)](https://ui.adsabs.harvard.edu/abs/2022MNRAS.517L...5R/abstract):\n```\n@ARTICLE{2022MNRAS.517L...5R,\n       author = {{Rinaldi}, Stefano and {Del Pozzo}, Walter},\n        title = \"{Rapid localization of gravitational wave hosts with FIGARO}\",\n      journal = {\\mnras},\n     keywords = {gravitational waves, methods: data analysis, methods: statistical, Astrophysics - Instrumentation and Methods for Astrophysics, General Relativity and Quantum Cosmology},\n         year = 2022,\n        month = nov,\n       volume = {517},\n       number = {1},\n        pages = {L5-L10},\n          doi = {10.1093/mnrasl/slac101},\narchivePrefix = {arXiv},\n       eprint = {2205.07252},\n primaryClass = {astro-ph.IM},\n       adsurl = {https://ui.adsabs.harvard.edu/abs/2022MNRAS.517L...5R},\n      adsnote = {Provided by the SAO/NASA Astrophysics Data System}\n}\n```\n\nIf you make use of the hierarchical analysis, you should mention (H)DPGMM as the model used and cite [Rinaldi & Del Pozzo (2022a)](https://ui.adsabs.harvard.edu/abs/2022MNRAS.509.5454R/abstract):\n\n```\n@ARTICLE{2022MNRAS.509.5454R,\n       author = {{Rinaldi}, Stefano and {Del Pozzo}, Walter},\n        title = \"{(H)DPGMM: a hierarchy of Dirichlet process Gaussian mixture models for the inference of the black hole mass function}\",\n      journal = {\\mnras},\n     keywords = {gravitational waves, methods: data analysis, methods: statistical, stars: black holes, Astrophysics - Instrumentation and Methods for Astrophysics, General Relativity and Quantum Cosmology},\n         year = 2022,\n        month = feb,\n       volume = {509},\n       number = {4},\n        pages = {5454-5466},\n          doi = {10.1093/mnras/stab3224},\narchivePrefix = {arXiv},\n       eprint = {2109.05960},\n primaryClass = {astro-ph.IM},\n       adsurl = {https://ui.adsabs.harvard.edu/abs/2022MNRAS.509.5454R},\n      adsnote = {Provided by the SAO/NASA Astrophysics Data System}\n}\n```\n\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2022 Stefano Rinaldi  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "FIGARO: Fast Inference for GW Astronomy, Research & Observations",
    "version": "1.6.6",
    "project_urls": {
        "Documentation": "https://figaro.readthedocs.io",
        "Issues": "https://github.com/sterinaldi/FIGARO/issues",
        "Repository": "https://github.com/sterinaldi/FIGARO.git"
    },
    "split_keywords": [
        "dpgmm",
        " figaro",
        " hierarchical",
        " inference",
        " hdpgmm"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e4839928eaf6c13f37eaf598d97acf700f88e2aa7f7bd1e9256d6422d570499e",
                "md5": "c779ce2b60d295922d2ee97649fff47c",
                "sha256": "cd791c09512d7962c268379368d3578c16ae13adf793151d91f04f43e1c81a4f"
            },
            "downloads": -1,
            "filename": "figaro-1.6.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c779ce2b60d295922d2ee97649fff47c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.12",
            "size": 68851,
            "upload_time": "2024-05-14T11:43:47",
            "upload_time_iso_8601": "2024-05-14T11:43:47.089729Z",
            "url": "https://files.pythonhosted.org/packages/e4/83/9928eaf6c13f37eaf598d97acf700f88e2aa7f7bd1e9256d6422d570499e/figaro-1.6.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a7d77dc665156e0cf1848fc3fd705ba9bfa5be259215e8c7de04f7eefe5f13b9",
                "md5": "8bb100820850bbe75931a65a242c074c",
                "sha256": "0d784b4ed0b3a189549f28b90400c8512d309d8b24e20498b9c14cf8a0f35d1a"
            },
            "downloads": -1,
            "filename": "figaro-1.6.6.tar.gz",
            "has_sig": false,
            "md5_digest": "8bb100820850bbe75931a65a242c074c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.12",
            "size": 59159,
            "upload_time": "2024-05-14T11:43:49",
            "upload_time_iso_8601": "2024-05-14T11:43:49.077843Z",
            "url": "https://files.pythonhosted.org/packages/a7/d7/7dc665156e0cf1848fc3fd705ba9bfa5be259215e8c7de04f7eefe5f13b9/figaro-1.6.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-14 11:43:49",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "sterinaldi",
    "github_project": "FIGARO",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "figaro"
}
        
Elapsed time: 0.27792s