Published February 5, 2021 | Journal article | Version v1 | https://doi.org/10.21105/joss.02550

PyAutoFit: A Classy Probabilistic Programming Language for Model Composition and Fitting

Files

joss.02550.pdf

Files (2.9 MB)

Name Size Download all
md5:5a449b85184517fc9d759d9f231503bc
150.7 kB Preview Download
md5:2b4ab03fb14d6076508e5a37172f1a23
2.8 MB Preview Download

Additional details

Funding

ROR icon Science and Technology Facilities Council
Cosmology and Cancer - Astronomical Statistics In Healthcare ST/T002565/1
ROR icon Science and Technology Facilities Council
Durham DiRAC-2 petascale facility ST/K00042X/1
ROR icon Durham University
ST/R000832/1
ROR icon Science and Technology Facilities Council
DiRAC-2.5 - the pathway to DiRAC Phase 3 ST/P002293/1
ROR icon Science and Technology Facilities Council
DiRAC-3 Operations 2019-2022 - Edinburgh ST/S003762/1
ROR icon Science and Technology Facilities Council
DiRAC-2 Datacentric support grant ST/M007006/1
ROR icon Science and Technology Facilities Council
ST/V001582/1
ROR icon Science and Technology Facilities Council
DiRAC SMP Facility: The Structure of the Universe ST/M007065/1
ROR icon Science and Technology Facilities Council
DiRAC 3 Operations ST/V002384/1
ROR icon Science and Technology Facilities Council
DiRAC-2: Recurrent Costs for Complexity@DiRAC Cluster at University of Leicester ST/M006948/1
ROR icon Science and Technology Facilities Council
DiRAC Bridging Grant 2019 - Cambridge ST/T001550/1
ROR icon Science and Technology Facilities Council
Dirac-3 Operations 2019-2022- Durham ST/V002376/1
ROR icon Science and Technology Facilities Council
Resources for DiRAC2 at HPCs ST/M007073/1
ROR icon Science and Technology Facilities Council
TS/V002856/1
ROR icon Science and Technology Facilities Council
Dirac 2.5 Operations ST/R001006/1
ROR icon Science and Technology Facilities Council
DiRAC 2.5y Bridging Funding - UCL ST/T001348/1
ROR icon Science and Technology Facilities Council
Edinburgh DiRAC Resource Grant ST/M006530/1
ROR icon Science and Technology Facilities Council
ST/S003916/1
ROR icon Science and Technology Facilities Council
DiRAC: Memory Intensive 2.5y ST/S002502/1
ROR icon Science and Technology Facilities Council
DiRAC Bridging Grant 2019 ST/T001372/1
ROR icon Science and Technology Facilities Council
Software development support for DiRAC ST/P002447/1
ROR icon Science and Technology Facilities Council
DiRAC 2.5 Operations 2017-2020 ST/R001014/1
ROR icon Science and Technology Facilities Council
DiRAC: Memory Intensive 2.5x ST/R002371/1

Dates

Issued
February 5, 2021

References

  1. Nightingale, J. W., Hayes, R. G., & Griffiths, M. (2021). PyAutoFit: A Classy Probabilistic Programming Language for Model Composition and Fitting (Version 0.72.2) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.4497861
  2. 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
  3. Foreman-Mackey, D. (2016). corner.py: Scatterplot matrices in Python. The Journal of Open Source Software, 1(2), 24. https://doi.org/10.21105/joss.00024
  4. James V. Miranda, L. (2018). PySwarms: a research toolkit for Particle Swarm Optimization in Python. The Journal of Open Source Software, 3(21), 433. https://doi.org/10.21105/joss.00433
  5. Speagle, J. S. (2020). dynesty: a dynamic nested sampling package for estimating Bayesian posteriors and evidences. Monthly Notices of the Royal Astronomical Society, 493(3), 3132–3158. https://doi.org/10.1093/mnras/staa278
  6. Foreman-Mackey, D., Hogg, D. W., Lang, D., & Goodman, J. (2013). emcee : The MCMC Hammer. Publications of the Astronomical Society of the Pacific, 125(925), 306–312. https://doi.org/10.1086/670067
  7. 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
  8. 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
  9. Häußler, B., Bamford, S. P., Vika, M., Rojas, A. L., Barden, M., Kelvin, L. S., Alpaslan, M., Robotham, A. S. G., Driver, S. P., Baldry, I. K., Brough, S., Hopkins, A. M., Liske, J., Nichol, R. C., Popescu, C. C., & Tuffs, R. J. (2013). MegaMorph – multiwavelength measurement of galaxy structure: complete Sérsic profile information from modern surveys. Monthly Notices of the Royal Astronomical Society, 430(1), 330–369. https://doi.org/10.1093/mnras/sts633
  10. Nightingale, J. W., & Dye, S. (2015). Adaptive semi-linear inversion of strong gravitational lens imaging. Monthly Notices of the Royal Astronomical Society, 452(3), 2940–2959. https://doi.org/10.1093/mnras/stv1455
  11. Nightingale, J. W., Dye, S., & Massey, R. J. (2018). AutoLens: automated modeling of a strong lens’s light, mass, and source. Monthly Notices of the Royal Astronomical Society, 478(4), 4738–4784. https://doi.org/10.1093/mnras/sty1264
  12. Nightingale, J. W., Massey, R. J., Harvey, D. R., Cooper, A. P., Etherington, A., Tam, S.-I., & Hayes, R. G. (2019). Galaxy structure with strong gravitational lensing: decomposing the internal mass distribution of massive elliptical galaxies. Monthly Notices of the Royal Astronomical Society, Article stz2220. https://doi.org/10.1093/mnras/stz2220
  13. Salvatier, J., Wiecki, T. V., & Fonnesbeck, C. (2016). Probabilistic programming in Python using PyMC3. PeerJ Computer Science, 2, Article e55. https://doi.org/10.7717/peerj-cs.55
  14. Carpenter, B., Gelman, A., Hoffman, M. D., Lee, D., Goodrich, B., Betancourt, M., Brubaker, M., Guo, J., Li, P., & Riddell, A. (2017). Stan : A Probabilistic Programming Language. Journal of Statistical Software, 76(1). https://doi.org/10.18637/jss.v076.i01
  15. arXiv, 1810.09538, Bingham, Eli and Chen, Jonathan P. and Jankowiak, Martin and Obermeyer, F. and Pradhan, Neeraj and Karaletsos, Theofanis and Singh, Rohit and Szerlip, Paul and Horsfall, Paul and Goodman, Noah D., 1810.09538, :home/jammy/Documents/Papers/PPLs/Pyro.pdf:pdf, 15337928, Journal of Machine Learning Research, Approximate Bayesian inference,Deep learning,Generative models,Graphical models,Probabilistic programming, Xxxx, 0–5, Pyro: Deep universal probabilistic programming, 20, 2019
  16. Dillon, Joshua V. and Langmore, Ian and Tran, Dustin and Brevdo, Eugene and Vasudevan, Srinivas and Moore, Dave and Patton, Brian and Alemi, Alex and Hoffman, Matt and Saurous, Rif A., TensorFlow Distributions, arXiv e-prints, Computer Science - Machine Learning, Computer Science - Artificial Intelligence, Computer Science - Programming Languages, Statistics - Machine Learning, 2017, nov, arXiv:1711.10604, arXiv:1711.10604, arXiv, 1711.10604, cs.LG, https://ui.adsabs.harvard.edu/abs/2017arXiv171110604D, Provided by the SAO/NASA Astrophysics Data System, 11
  17. Buchner, J., Georgakakis, A., Nandra, K., Hsu, L., Rangel, C., Brightman, M., Merloni, A., Salvato, M., Donley, J., & Kocevski, D. (2014). X-ray spectral modelling of the AGN obscuring region in the CDFS: Bayesian model selection and catalogue. Astronomy & Astrophysics, 564, A125. https://doi.org/10.1051/0004-6361/201322971
  18. Feroz, F., Hobson, M. P., & Bridges, M. (2009). MultiNest: an efficient and robust Bayesian inference tool for cosmology and particle physics. Monthly Notices of the Royal Astronomical Society, 398(4), 1601–1614. https://doi.org/10.1111/j.1365-2966.2009.14548.x
  19. Van Rossum, Guido and Drake, Fred L., Python 3 Reference Manual, 2009, 1441412697, CreateSpace, Scotts Valley, CA
  20. McCluskey, A., & Snow, T. (2020). uravu: Making Bayesian modelling easy(er). Journal of Open Source Software, 5(50), 2214. https://doi.org/10.21105/joss.02214

Citations

  1. Salmaso, I., Pastorello, A., Borsato, E., Benetti, S., Botticella, M. T., Cai, Y.-Z., Elias-Rosa, N., Farina, A., Fraser, M., Galbany, L., González-Bañuelos, M., Gutiérrez, C. P., Huang, M., Lundqvist, P., Kangas, T., Killestein, T. L., Kravtsov, T., Matilainen, K., Morales-Garoffolo, A., … Wang, Z.-Y. (2026). SN 2024hpj: A perspective on SN 2009ip-like events. Astronomy & Astrophysics, 707, A80. https://doi.org/10.1051/0004-6361/202556906
  2. Trobbiani, L., Bonato, M., Baronchelli, I., De Zotti, G., Negrello, M., Giulietti, M., Berta, S., Vignali, C., & Massardi, M. (2026). A pilot sample of Planck-selected strongly lensed sub-millimetre galaxies: NOEMA observations and physical characterisation. Astronomy & Astrophysics, 715, A131. https://doi.org/10.1051/0004-6361/202659900
  3. Kollmann, K. E., Nightingale, J. W., Lisanti, M., Robertson, A., & Slone, O. (2026). Using strong lensing to detect subhaloes with steep inner density profiles. Monthly Notices of the Royal Astronomical Society, 546(4). https://doi.org/10.1093/mnras/stag066
  4. Solimano, M., González-López, J., Aravena, M., Alcalde Pampliega, B., Assef, R. J., Béthermin, M., Boquien, M., Bovino, S., Casey, C. M., Cassata, P., da Cunha, E., Davies, R. L., De Looze, I., Ding, X., Díaz-Santos, T., Faisst, A. L., Ferrara, A., Fisher, D. B., Förster-Schreiber, N. M., … Zamorani, G. (2025). A hidden active galactic nucleus powering bright [O III] nebulae in a protocluster at z = 4.5 revealed by JWST. Astronomy & Astrophysics, 693, A70. https://doi.org/10.1051/0004-6361/202451551
  5. Telikova, K., González-López, J., Aravena, M., Posses, A., Villanueva, V., Baeza-Garay, M., Jones, G. C., Solimano, M., Lee, L., De Looze, I., Förster Schreiber, N., Herrera-Camus, R., Tadaki, K., Assef, R. J., Diaz Santos, T., Ferrara, A., Ikeda, R., Lamperti, I., Mitsuhashi, I., … Übler, H. (2025). The ALMA-CRISTAL survey: Complex kinematics of galaxies at the end of the reionization era. Astronomy & Astrophysics, 699, A5. https://doi.org/10.1051/0004-6361/202452990
  6. Villaseñor, J. I., Sana, H., Mahy, L., Shenar, T., Bodensteiner, J., Britavskiy, N., Lennon, D. J., Moe, M., Patrick, L. R., Pawlak, M., Bowman, D. M., Crowther, P. A., de Mink, S. E., Deshmukh, K., Evans, C. J., Fabry, M., Fouesneau, M., Holgado, G., Langer, N., … Vink, J. S. (2025). Binarity at LOw Metallicity (BLOeM): Enhanced multiplicity of early B-type dwarfs and giants at Z = 0.2 Z⊙. Astronomy & Astrophysics, 698, A41. https://doi.org/10.1051/0004-6361/202453166
  7. Ding, H., Shu, Y., Chen, Y., Li, N., Cao, X., Nightingale, J., He, Q., Wang, L., & Li, H. (2025). Pixel-level Modeling of Group-scale Strong Lens CASSOWARY 19. Research in Astronomy and Astrophysics, 25(6), 065013. https://doi.org/10.1088/1674-4527/add0a0
  8. Amvrosiadis, A., Lange, S., Nightingale, J. W., He, Q., Frenk, C. S., Oman, K. A., Smail, I., Swinbank, A. M., Fragkoudi, F., Gadotti, D. A., Cole, S., Borsato, E., Robertson, A., Massey, R., Cao, X., & Li, R. (2025). The onset of bar formation in a massive galaxy at z ∼ 3.8. Monthly Notices of the Royal Astronomical Society, 537(2), 1163–1181. https://doi.org/10.1093/mnras/staf048
  9. Nightingale, J. W., Mahler, G., McCleary, J., He, Q., Hogg, N. B., Amvrosiadis, A., Gozaliasl, G., Mercier, W., Scognamiglio, D., Berman, E., Leroy, G., Liu, D., Massey, R. J., Shuntov, M., von Wietersheim-Kramsta, M., Franco, M., Paquereau, L., Ilbert, O., Allen, N., … Jin, S. (2025). The COSMOS-Web Lens Survey (COWLS) I: discovery of >100 high redshift strong lenses in contiguous JWST imaging. Monthly Notices of the Royal Astronomical Society, 543(1), 203–222. https://doi.org/10.1093/mnras/staf1253
  10. Lange, S. C., Amvrosiadis, A., Nightingale, J. W., He, Q., Frenk, C. S., Robertson, A., Cole, S., Massey, R., Cao, X., Li, R., & Wang, K. (2025). Galaxy mass modelling from multiwavelength JWST strong lens analysis: dark matter substructure, angular mass complexity, or both?. Monthly Notices of the Royal Astronomical Society, 539(2), 704–726. https://doi.org/10.1093/mnras/staf491
  11. Bukhari, S. A. M., Siddique, I., & Ali, A. (2025). pyMultiFit: A Python library for fitting data with multiple models. Journal of Open Source Software, 10(114), 9295. https://doi.org/10.21105/joss.09295
  12. He, Q., Robertson, A., Nightingale, J. W., Amvrosiadis, A., Cole, S., Frenk, C. S., Lange, S. C., Li, S., Li, R., Cao, X., Fung, L. W. H., Ma, X., Massey, R., Wang, K., & von Wietersheim-Kramsta, M. (2025). Not So Dark, Not So Dense: An Alternative Explanation for the Lensing Subhalo in SDSS J0946+1006. The Astrophysical Journal Letters, 991(2), L53. https://doi.org/10.3847/2041-8213/ae072d
  13. Solimano, M., González-López, J., Aravena, M., Herrera-Camus, R., De Looze, I., Förster Schreiber, N. M., Spilker, J., Tadaki, K., Assef, R. J., Barcos-Muñoz, L., Davies, R. L., Díaz-Santos, T., Ferrara, A., Fisher, D. B., Guaita, L., Ikeda, R., Johnston, E. J., Lutz, D., Mitsuhashi, I., … Villanueva, V. (2024). The ALMA-CRISTAL survey: Discovery of a 15 kpc-long gas plume in a z = 4.54 Lyman-α blob. Astronomy & Astrophysics, 689, A145. https://doi.org/10.1051/0004-6361/202449192
  14. Villanueva, V., Herrera-Camus, R., González-López, J., Aravena, M., Assef, R. J., Baeza-Garay, M., Barcos-Muñoz, L., Bovino, S., Bowler, R. A. A., da Cunha, E., De Looze, I., Diaz-Santos, T., Ferrara, A., Förster Schreiber, N. M., Algera, H., Ikeda, R., Killi, M., Mitsuhashi, I., Naab, T., … Übler, H. (2024). The ALMA-CRISTAL survey: Dust temperature and physical conditions of the interstellar medium in a typical galaxy at z = 5.66. Astronomy & Astrophysics, 691, A133. https://doi.org/10.1051/0004-6361/202451490
  15. Etherington, A., Nightingale, J. W., Massey, R., Tam, S.-I., Cao, X., Niemiec, A., He, Q., Robertson, A., Li, R., Amvrosiadis, A., Cole, S., Diego, J. M., Frenk, C. S., Frye, B. L., Harvey, D., Jauzac, M., Koekemoer, A. M., Lagattuta, D. J., Lange, S., … Steinhardt, C. L. (2024). Strong gravitational lensing’s ‘external shear’ is not shear. Monthly Notices of the Royal Astronomical Society, 531(3), 3684–3697. https://doi.org/10.1093/mnras/stae1375
  16. He, Q., Nightingale, J. W., Amvrosiadis, A., Robertson, A., Cole, S., Frenk, C. S., Massey, R., Li, R., Cao, X., Lange, S. C., & França, J. P. C. (2024). Unveiling lens light complexity with a novel multi-Gaussian expansion approach for strong gravitational lensing. Monthly Notices of the Royal Astronomical Society, 532(2), 2441–2462. https://doi.org/10.1093/mnras/stae1577
  17. Varadaraj, R. G., Bowler, R. A. A., Jarvis, M. J., Adams, N. J., Choustikov, N., Koekemoer, A. M., Carnall, A. C., McLeod, D. J., Dunlop, J. S., Donnan, C. T., & Grogin, N. A. (2024). The sizes of bright Lyman-break galaxies at z ≃ 3–5 with JWST PRIMER. Monthly Notices of the Royal Astronomical Society, 533(3), 3724–3741. https://doi.org/10.1093/mnras/stae2022
  18. Amvrosiadis, A., Wardlow, J. L., Birkin, J. E., Smail, I., Swinbank, A. M., Nightingale, J., Bertoldi, F., Brandt, W. N., Casey, C. M., Chapman, S. C., Chen, C.-C., Cox, P., da Cunha, E., Dannerbauer, H., Dudzevičiūtė, U., Gullberg, B., Hodge, J. A., Knudsen, K. K., Menten, K., … van der Werf, P. (2024). The kinematics of massive high-redshift dusty star-forming galaxies. Monthly Notices of the Royal Astronomical Society, 536(4), 3757–3783. https://doi.org/10.1093/mnras/stae2760
  19. Griffiths, M., Kubeyev, A., Laurie, J., Giorni, A., Zillmann da Silva, L. A., Sivasubramaniam, P., Foster, M., Biankin, A. V., & Asghar, U. (2024). Computational prediction of therapeutic response and cancer outcomes [Preprint]. In medRxiv. openRxiv. https://doi.org/10.1101/2024.01.17.24301444
  20. Nightingale, J. W., Massey, R. J., Kegerreis, J., & Hayes, R. G. (2024). PyAutoCTI: Open-Source Charge Transfer Inefficiency Calibration. Journal of Open Source Software, 9(98), 4904. https://doi.org/10.21105/joss.04904
  21. Schuldt, S., Suyu, S. H., Cañameras, R., Shu, Y., Taubenberger, S., Ertl, S., & Halkola, A. (2023). HOLISMOKES: X. Comparison between neural network and semi-automated traditional modeling of strong lenses. Astronomy & Astrophysics, 673, A33. https://doi.org/10.1051/0004-6361/202244534
  22. Knabel, S., Holwerda, B. W., Nightingale, J., Treu, T., Bilicki, M., Brough, S., Driver, S., Finnerty, L., Haberzettl, L., Hegde, S., Hopkins, A. M., Kuijken, K., Liske, J., Pimbblet, K. A., Steele, R. C., & Wright, A. H. (2023). Modelling strong lenses from wide-field ground-based observations in KiDS and GAMA. Monthly Notices of the Royal Astronomical Society, 520(1), 804–827. https://doi.org/10.1093/mnras/stad133
  23. Zhang, L., Zhang, Z.-Y., Nightingale, J. W., Zou, Z.-C., Cao, X., Tsai, C.-W., Yang, C., Shi, Y., Wang, J., Xu, D., Lin, L.-R., Zhou, J., & Li, R. (2023). Discovery of a radio jet in the Cloverleaf quasar at z = 2.56. Monthly Notices of the Royal Astronomical Society, 524(3), 3671–3682. https://doi.org/10.1093/mnras/stad2069
  24. Nightingale, J. W., He, Q., Cao, X., Amvrosiadis, A., Etherington, A., Frenk, C. S., Hayes, R. G., Robertson, A., Cole, S., Lange, S., Li, R., & Massey, R. (2023). Scanning for dark matter subhaloes in Hubble Space Telescope imaging of 54 strong lenses. Monthly Notices of the Royal Astronomical Society, 527(4), 10480–10506. https://doi.org/10.1093/mnras/stad3694
  25. Etherington, A., Nightingale, J. W., Massey, R., Robertson, A., Cao, X., Amvrosiadis, A., Cole, S., Frenk, C. S., He, Q., Lagattuta, D. J., Lange, S., & Li, R. (2023). Beyond the bulge–halo conspiracy? Density profiles of early-type galaxies from extended-source strong lensing. Monthly Notices of the Royal Astronomical Society, 521(4), 6005–6018. https://doi.org/10.1093/mnras/stad582

1–25 of 35