swyft: Truncated Marginal Neural Ratio Estimation in Python
Files
joss.04205.pdf
Files
(2.0 MB)
| Name | Size | Download all |
|---|---|---|
|
md5:11823c1605c7c2a204040e4a37e960ab
|
259.9 kB | Preview Download |
|
md5:c9421916e768bf7e01e100880cb7d06b
|
1.7 MB | Preview Download |
Additional details
Identifiers
Related works
- Describes
- 10.5281/zenodo.6412465 (DOI)
- Is reviewed by
- https://github.com/openjournals/joss-reviews/issues/4205 (URL)
Dates
- Issued
-
July 19, 2022
References
- Miller, B. K., Cole, A., Weniger, C., Nattino, F., Ku, O., Grootes, M. W., & Coogan, A. (2022). swyft: Truncated Marginal Neural Ratio Estimation in Python (Version v0.3.2) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.6412465
- Paszke, A., Gross, S., Massa, F., Lerer, A., Bradbury, J., Chanan, G., Killeen, T., Lin, Z., Gimelshein, N., Antiga, L., Desmaison, A., Kopf, A., Yang, E., DeVito, Z., Raison, M., Tejani, A., Chilamkurthy, S., Steiner, B., Fang, L., … Chintala, S. (2019). PyTorch: An imperative style, high-performance deep learning library. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d Alché-Buc, E. Fox, & R. Garnett (Eds.), Advances in neural information processing systems 32 (pp. 8024–8035). Curran Associates, Inc. https://papers.neurips.cc/paper/9015-pytorch-an-imperative-style-high-performance-deep-learning-library.pdf
- Harris, C. R., Millman, K. J., van der Walt, S. J., Gommers, R., Virtanen, P., Cournapeau, D., Wieser, E., Taylor, J., Berg, S., Smith, N. J., Kern, R., Picus, M., Hoyer, S., van Kerkwijk, M. H., Brett, M., Haldane, A., del Río, J. F., Wiebe, M., Peterson, P., … Oliphant, T. E. (2020). Array programming with NumPy. Nature, 585(7825), 357–362. https://doi.org/10.1038/s41586-020-2649-2
- Virtanen, P., Gommers, R., Oliphant, T. E., Haberland, M., Reddy, T., Cournapeau, D., Burovski, E., Peterson, P., Weckesser, W., Bright, J., van der Walt, S. J., Brett, M., Wilson, J., Millman, K. J., Mayorov, N., Nelson, A. R. J., Jones, E., Kern, R., Larson, E., … Vázquez-Baeza, Y. (2020). SciPy 1.0: fundamental algorithms for scientific computing in Python. Nature Methods, 17(3), 261–272. https://doi.org/10.1038/s41592-019-0686-2
- Waskom, M. (2021). seaborn: statistical data visualization. Journal of Open Source Software, 6(60), 3021. https://doi.org/10.21105/joss.03021
- Hunter, J. D. (2007). Matplotlib: A 2D Graphics Environment. Computing in Science & Engineering, 9(3), 90–95. https://doi.org/10.1109/mcse.2007.55
- Kluyver, T., Ragan-Kelley, B., Pérez, F., Granger, B., Bussonnier, M., Frederic, J., Kelley, K., Hamrick, J., Grout, J., Corlay, S., Ivanov, P., Avila, D., Abdalla, S., Willing, C., & team, J. development. (2016). Jupyter notebooks - a publishing format for reproducible computational workflows. In F. Loizides & B. Scmidt (Eds.), Positioning and power in academic publishing: Players, agents and agendas (pp. 87–90). IOS Press. https://eprints.soton.ac.uk/403913
- The pandas development team. (2026). pandas-dev/pandas: Pandas (Version v3.1.1) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.3509134
- McKinney, W. (2010). Data Structures for Statistical Computing in Python. Proceedings of the Python in Science Conference, 56–61. https://doi.org/10.25080/majora-92bf1922-00a
- Dask Development Team. (2016). Dask: Library for dynamic task scheduling. https://dask.org
- Miles, A., Jakirkham, Bussonnier, M., Moore, J., Fulton, A., Bourbeau, J., Onalan, T., Hamman, J., Patel, Z., Rocklin, M., Lee, G. R., Bennett, D., De Andrade, E. S., Abernathey, R., Durant, M., Schut, V., Dussin, R., Barnes, C., Williams, B., … Hunt-Isaak, I. (2021). zarr-developers/zarr-python: v2.10.3 (Version v2.10.3) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.5712786
- Miller, B. K., Cole, A., Forré, P., Louppe, G., & Weniger, C. (2021). Truncated marginal neural ratio estimation. Advances in Neural Information Processing Systems, 34.
- Miller, B. K., Cole, A., Louppe, G., & Weniger, C. (2020). Simulation-efficient marginal posterior estimation with swyft: Stop wasting your precious time. Machine Learning and the Physical Sciences: Workshop at the 34th Conference on Neural Information Processing Systems (NeurIPS).
- Batista, R. A., Amin, M., Barenboim, G., Bartolo, N., Baumann, D., Bauswein, A., Bellini, E., Benisty, D., Bertone, G., Blasi, P., & others. (2021). EuCAPT white paper: Opportunities and challenges for theoretical astroparticle physics in the next decade. arXiv Preprint arXiv:2110.10074.
- Coogan, A., Karchev, K., & Weniger, C. (2020). Targeted likelihood-free inference of dark matter substructure in strongly-lensed galaxies. Machine Learning and the Physical Sciences: Workshop at the 34th Conference on Neural Information Processing Systems (NeurIPS).
- Cole, A., Miller, B. K., Witte, S. J., Cai, M. X., Grootes, M. W., Nattino, F., & Weniger, C. (2021). Fast and credible likelihood-free cosmology with truncated marginal neural ratio estimation. arXiv Preprint arXiv:2111.08030.
- Lueckmann, J.-M., Boelts, J., Greenberg, D., Goncalves, P., & Macke, J. (2021). Benchmarking simulation-based inference. In A. Banerjee & K. Fukumizu (Eds.), Proceedings of the 24th international conference on artificial intelligence and statistics (Vol. 130, pp. 343–351). PMLR. https://proceedings.mlr.press/v130/lueckmann21a.html
- Hermans, J., Delaunoy, A., Rozet, F., Wehenkel, A., & Louppe, G. (2021). Averting a crisis in simulation-based inference. arXiv Preprint arXiv:2110.06581.
- Cranmer, K., Brehmer, J., & Louppe, G. (2020). The frontier of simulation-based inference. Proceedings of the National Academy of Sciences, 117(48), 30055–30062. https://doi.org/10.1073/pnas.1912789117
- Tejero-Cantero, A., Boelts, J., Deistler, M., Lueckmann, J.-M., Durkan, C., Gonçalves, P., Greenberg, D., & Macke, J. (2020). sbi: A toolkit for simulation-based inference. Journal of Open Source Software, 5(52), 2505. https://doi.org/10.21105/joss.02505
- Lintusaari, J., Vuollekoski, H., Kangasrääsiö, A., Skytén, K., Järvenpää, M., Marttinen, P., Gutmann, M. U., Vehtari, A., Corander, J., & Kaski, S. (2018). ELFI: Engine for likelihood-free inference. The Journal of Machine Learning Research, 19(1), 643–649.
- Hermans, J. (2019). Hypothesis. In GitHub repository. https://github.com/montefiore-ai/hypothesis; GitHub.
- Alsing, J. (2019). pydelfi: Density estimation likelihood-free inference. In GitHub repository. https://github.com/justinalsing/pydelfi; GitHub.
- Louppe, G., Cranmer, K., & Pavez, J. (2016). carl: a likelihood-free inference toolbox. The Journal of Open Source Software, 1(1), 11. https://doi.org/10.21105/joss.00011
- Klinger, E., Rickert, D., Hasenauer, J., & Stegle, O. (2018). pyABC: distributed, likelihood-free inference. Bioinformatics, 34(20), 3591–3593. https://doi.org/10.1093/bioinformatics/bty361
1–25 of 56
Citations
- Saxena, A., Meerburg, P. D., Sun, G., Chang, T.-C., & Mas-Ribas, L. (2026). Tracing the cosmic origins: machine learning reconstruction of the primordial density field from EoR observations. Monthly Notices of the Royal Astronomical Society, 553(2). https://doi.org/10.1093/mnras/stag1972
- Cole, P. S., Alvey, J., Speri, L., Weniger, C., Bhardwaj, U., Gerosa, D., & Bertone, G. (2026). Sequential simulation-based inference for extreme mass ratio inspirals. Physical Review D, 113(6). https://doi.org/10.1103/4cd3-wfjr
- Cerdeño, D., de los Rios, M., & Perez, A. D. (2025). Bayesian technique to combine independently-trained machine-learning models applied to direct dark matter detection. Journal of Cosmology and Astroparticle Physics, 2025(01), 038. https://doi.org/10.1088/1475-7516/2025/01/038
- Decant, Q., Dimitriou, A., Lopez-Honorez, L., & Zaldivar, B. (2025). Simulation-based inference on warm dark matter from HERA forecasts. Journal of Cosmology and Astroparticle Physics, 2025(07), 004. https://doi.org/10.1088/1475-7516/2025/07/004
- Kini, Y., Watts, A. L., Salmi, T., Bilous, A., Vinciguerra, S., Guillot, S., Ballantyne, D. R., Kuulkers, E., Bogdanov, S., & Suleimanov, V. (2025). Impact of accretion assumptions on pulse profile modelling of superburst oscillations in 4U 1636−536. Monthly Notices of the Royal Astronomical Society, 541(1), 46–57. https://doi.org/10.1093/mnras/staf908
- Eckner, C., Montel, N. A., List, F., Calore, F., & Weniger, C. (2025). Robust neural determination of the source-count distribution of the Fermi -LAT sky at high latitudes. Physical Review D, 112(10). https://doi.org/10.1103/p4gf-d2zt
- Alvey, J., Bhardwaj, U., Domcke, V., Pieroni, M., & Weniger, C. (2025). Leveraging time-dependent instrumental noise for the LISA stochastic gravitational wave background analysis. Physical Review D, 111(10). https://doi.org/10.1103/physrevd.111.102006
- Chathirathas, K., Ferber, T., Kahlhoefer, F., & Morandini, A. (2025). Finding excesses in model parameter space. The European Physical Journal C, 85(2). https://doi.org/10.1140/epjc/s10052-025-13795-w
- Zammit-Mangion, A., Sainsbury-Dale, M., & Huser, R. (2025). Neural Methods for Amortized Inference. Annual Review of Statistics and Its Application, 12(1), 311–335. https://doi.org/10.1146/annurev-statistics-112723-034123
- Dimitriou, A., Figueroa, D. G., & Zaldívar, B. (2024). Fast likelihood-free reconstruction of gravitational wave backgrounds. Journal of Cosmology and Astroparticle Physics, 2024(09), 032. https://doi.org/10.1088/1475-7516/2024/09/032
- Greig, B., Prelogović, D., Mirocha, J., Qin, Y., Ting, Y.-S., & Mesinger, A. (2024). Exploring the role of the halo-mass function for inferring astrophysical parameters during reionization. Monthly Notices of the Royal Astronomical Society, 533(2), 2502–2529. https://doi.org/10.1093/mnras/stae1983
- Greig, B., Prelogović, D., Qin, Y., Ting, Y.-S., & Mesinger, A. (2024). Inferring astrophysical parameters using the 2D cylindrical power spectrum from reionization. Monthly Notices of the Royal Astronomical Society, 533(2), 2530–2545. https://doi.org/10.1093/mnras/stae1984
- Alvey, J., Bhardwaj, U., Domcke, V., Pieroni, M., & Weniger, C. (2024). Simulation-based inference for stochastic gravitational wave background data analysis. Physical Review D, 109(8). https://doi.org/10.1103/physrevd.109.083008
- Morandini, A., Ferber, T., & Kahlhoefer, F. (2024). Reconstructing axion-like particles from beam dumps with simulation-based inference. The European Physical Journal C, 84(2). https://doi.org/10.1140/epjc/s10052-024-12557-4
- Matesic, M. R. B., Rowe, J. F., Livingston, J. H., Dholakia, S., Jontof-Hutter, D., & Lissauer, J. J. (2024). Gaussian Processes and Nested Sampling Applied to Kepler's Small Long-period Exoplanet Candidates. The Astronomical Journal, 167(2), 68. https://doi.org/10.3847/1538-3881/ad0fe9
- Berteaud, J., Eckner, C., Calore, F., Clavel, M., & Haggard, D. (2024). Simulation-based Inference of Radio Millisecond Pulsars in Globular Clusters. The Astrophysical Journal, 974(1), 144. https://doi.org/10.3847/1538-4357/ad6b1e
- Amerio, A., Cuoco, A., & Fornengo, N. (2023). Extracting the gamma-ray source-count distribution below the Fermi-LAT detection limit with deep learning. Journal of Cosmology and Astroparticle Physics, 2023(09), 029. https://doi.org/10.1088/1475-7516/2023/09/029
- Gagnon-Hartman, S., Ruan, J., & Haggard, D. (2023). Debiasing standard siren inference of the Hubble constant with marginal neural ratio estimation. Monthly Notices of the Royal Astronomical Society, 520(1), 1–13. https://doi.org/10.1093/mnras/stad069
- Alvey, J., Gerdes, M., & Weniger, C. (2023). Albatross: a scalable simulation-based inference pipeline for analysing stellar streams in the Milky Way. Monthly Notices of the Royal Astronomical Society, 525(3), 3662–3681. https://doi.org/10.1093/mnras/stad2458
- Saxena, A., Cole, A., Gazagnes, S., Meerburg, P. D., Weniger, C., & Witte, S. J. (2023). Constraining the X-ray heating and reionization using 21-cm power spectra with Marginal Neural Ratio Estimation. Monthly Notices of the Royal Astronomical Society, 525(4), 6097–6111. https://doi.org/10.1093/mnras/stad2659
- Coogan, A., Anau Montel, N., Karchev, K., Grootes, M. W., Nattino, F., & Weniger, C. (2023). The effect of the perturber population on subhalo measurements in strong gravitational lenses. Monthly Notices of the Royal Astronomical Society, 527(1), 66–78. https://doi.org/10.1093/mnras/stad2925
- Bhardwaj, U., Alvey, J., Miller, B. K., Nissanke, S., & Weniger, C. (2023). Sequential simulation-based inference for gravitational wave signals. Physical Review D, 108(4). https://doi.org/10.1103/physrevd.108.042004
- Crisostomi, M., Dey, K., Barausse, E., & Trotta, R. (2023). Neural posterior estimation with guaranteed exact coverage: The ringdown of GW150914. Physical Review D, 108(4). https://doi.org/10.1103/physrevd.108.044029
- Cole, A., Miller, B. K., Witte, S. J., Cai, M. X., Grootes, M. W., Nattino, F., & Weniger, C. (2022). Fast and credible likelihood-free cosmology with truncated marginal neural ratio estimation. Journal of Cosmology and Astroparticle Physics, 2022(09), 004. https://doi.org/10.1088/1475-7516/2022/09/004
- Biagetti, M., Calles, J., Castiblanco, L., Cole, A., & Noreña, J. (2022). Fisher forecasts for primordial non-Gaussianity from persistent homology. Journal of Cosmology and Astroparticle Physics, 2022(10), 002. https://doi.org/10.1088/1475-7516/2022/10/002