PyMC

PyMC
PyMC
원저작자PyMC 개발팀
초기 릴리즈2013년 5월 4일(2013-05-04)
안정된 릴리스
4.1.1 / 2022년 7월 4일 (2022-07-04)
저장소https://github.com/pymc-devs/pymc
기입처파이썬
운영 체제Unix 계열, Mac OS X, Microsoft Windows
플랫폼인텔 x86 32비트, x64
유형통계 패키지
면허증.Apache 라이센스 버전 2.0
웹 사이트docs.pymc.io

PyMC(이전의 PyMC3)는 베이지안 통계 모델링 및 확률론적 기계 학습을 위한 Python 패키지이며, 고급 마르코프 체인 몬테카를로와 변형 피팅 알고리즘에 초점을 [1][2][3]맞추고 있습니다.[4] 이전 버전의 PyMC [5]소프트웨어를 처음부터 다시 쓴 것입니다.계산을 수행하기 위해 Fortran 확장을 사용한 PyMC2와 달리, PyMC는 다차원 배열과 관련된 수학 식을 정의, 최적화 및 효율적으로 평가할 수 있는 Python 라이브러리인 Aesara에 의존합니다.버전 3.8 이후 PyMC는 ArviZ에 의존하여 플롯, 진단 및 통계 확인을 처리합니다.PyMC와 Stan은 가장 인기 있는 확률론적 프로그래밍 [6]도구입니다.PyMC는 커뮤니티가 개발하고 NumFOCUS가 [7]재정적으로 후원하는 오픈 소스 프로젝트입니다.

PyMC는 천문학,[8][9] 역학,[10][11] 분자생물학,[12] 결정학,[13] 화학,[15] 생태학[16][17],[18] 심리학 등 여러 과학 분야에서 추론 문제를 해결하기 위해 사용되어 왔다.이전 버전의 PyMC도 기후과학,[19] 공중보건,[20] 신경과학,[21][22] 기생충학 등에서 널리 사용되었습니다.[23]

Theano가 2017년에 [24]개발을 중단할 계획을 발표한 후, PyMC 팀은 TensorFlow Probability를 계산 [25]백엔드로 평가했지만, 2020년에 [26]TensorFlow 개발을 인수하기로 결정했다.Theano 코드베이스의 많은 부분이 리팩터링되고 JAX와 Numba를 통한[27] 컴파일이 추가되었습니다.PyMC 팀은 Aesara라는 이름으로 수정된 계산 백엔드를 출시하고 PyMC [28]개발을 계속하고 있습니다.

추론 엔진

PyMC는 베이지안 추론을 위한 비구배 기반 및 구배 기반 마르코프 연쇄 몬테 카를로(MCMC) 알고리즘과 대략적인 베이지안 추론을 위한 확률적, 구배 기반 변동 베이지안 방법을 구현한다.

  • MCMC 기반 알고리즘:
  • 변동 추론 알고리즘:
    • 블랙박스 변이[30] 추론

「 」를 참조해 주세요.

  • Stan은 C++로 작성된 통계적 추론을 위한 확률론적 프로그래밍 언어이다.
  • ArviZ - 베이지안 모델의 탐색적 분석을 위한 Python 라이브러리

레퍼런스

  1. ^ Salvatier J, Wiki TV, Fonnesbeck C. (2016) PyMC3를 사용한 Python에서의 확률론적 프로그래밍.PeerJ Computer Science 2:e55 doi:10.7717/peerj-cs.55
  2. ^ Martin, Osvaldo (2016). Bayesian Analysis with Python. Packt Publishing Ltd. pp. 31–60. ISBN 9781785889851. Retrieved 16 September 2017.
  3. ^ Martin, Osvaldo; Kumar, Ravin; Lao, Junpeng (2021). Bayesian Modeling and Computation in Python. CRC-press. pp. 1–420. ISBN 9780367894368. Retrieved 7 July 2022.
  4. ^ Davidson-Pilon, Cameron (2015-09-30). Bayesian Methods for Hackers: Probabilistic Programming and Bayesian Inference. Addison-Wesley Professional. ISBN 9780133902921.
  5. ^ "documentation". Retrieved 2017-09-20.
  6. ^ "The Algorithms Behind Probabilistic Programming". Retrieved 2017-03-10.
  7. ^ "NumFOCUS Announces New Fiscally Sponsored Project: PyMC3". NumFOCUS Open Code = Better Science. Retrieved 2017-03-10.
  8. ^ Greiner, J.; Burgess, J. M.; Savchenko, V.; Yu, H.-F. (2016). "On the Fermi-GBM Event 0.4 s after GW150914". The Astrophysical Journal Letters. 827 (2): L38. arXiv:1606.00314. Bibcode:2016ApJ...827L..38G. doi:10.3847/2041-8205/827/2/L38. ISSN 2041-8205. S2CID 3529170.
  9. ^ Hilbe, Joseph M.; Souza, Rafael S. de; Ishida, Emille E. O. (2017-04-30). Bayesian Models for Astrophysical Data: Using R, JAGS, Python, and Stan. Cambridge University Press. ISBN 9781108210744.
  10. ^ Brauner, Jan M.; Mindermann, Sören; Sharma, Mrinank; Johnston, David; Salvatier, John; Gavenčiak, Tom; Stephenson, Anna B.; Leech, Gavin; Altman, George; Mikulik, Vladimir; Norman, Alexander John; Monrad, Joshua Teperowski; Besiroglu, Tamay; Ge, Hong; Hartwick, Meghan A.; Teh, Yee Whye; Chindelevitch, Leonid; Gal, Yarin; Kulveit, Jan (2020-12-15). "Inferring the effectiveness of government interventions against COVID-19". Science. 371 (6531): eabd9338. doi:10.1126/science.abd9338. PMC 7877495. PMID 33323424.
  11. ^ Systrom, Kevin; Vladek, Thomas; Krieger, Mike. "Rt.live Github repository". Rt.live. Retrieved 10 January 2021.
  12. ^ Wagner, Stacey D.; Struck, Adam J.; Gupta, Riti; Farnsworth, Dylan R.; Mahady, Amy E.; Eichinger, Katy; Thornton, Charles A.; Wang, Eric T.; Berglund, J. Andrew (2016-09-28). "Dose-Dependent Regulation of Alternative Splicing by MBNL Proteins Reveals Biomarkers for Myotonic Dystrophy". PLOS Genetics. 12 (9): e1006316. doi:10.1371/journal.pgen.1006316. ISSN 1553-7404. PMC 5082313. PMID 27681373.
  13. ^ Sharma, Amit; Johansson, Linda; Dunevall, Elin; Wahlgren, Weixiao Y.; Neutze, Richard; Katona, Gergely (2017-03-01). "Asymmetry in serial femtosecond crystallography data". Acta Crystallographica Section A. 73 (2): 93–101. doi:10.1107/s2053273316018696. ISSN 2053-2733. PMC 5332129. PMID 28248658.
  14. ^ Katona, Gergely; Garcia-Bonete, Maria-Jose; Lundholm, Ida (2016-05-01). "Estimating the difference between structure-factor amplitudes using multivariate Bayesian inference". Acta Crystallographica Section A. 72 (3): 406–411. doi:10.1107/S2053273316003430. ISSN 2053-2733. PMC 4850660. PMID 27126118.
  15. ^ Garay, Pablo G.; Martin, Osvaldo A.; Scheraga, Harold A.; Vila, Jorge A. (2016-07-21). "Detection of methylation, acetylation and glycosylation of protein residues by monitoring13C chemical-shift changes: A quantum-chemical study". PeerJ. 4: e2253. doi:10.7717/peerj.2253. ISSN 2167-8359. PMC 4963218. PMID 27547559.
  16. ^ Wang, Yan; Huang, Hong; Huang, Lida; Ristic, Branko (2017). "Evaluation of Bayesian source estimation methods with Prairie Grass observations and Gaussian plume model: A comparison of likelihood functions and distance measures". Atmospheric Environment. 152: 519–530. Bibcode:2017AtmEn.152..519W. doi:10.1016/j.atmosenv.2017.01.014.
  17. ^ MacNeil, M. Aaron; Chong-Seng, Karen M.; Pratchett, Deborah J.; Thompson, Casssandra A.; Messmer, Vanessa; Pratchett, Morgan S. (2017-03-14). "Age and Growth of An Outbreaking Acanthaster cf. solaris Population within the Great Barrier Reef". Diversity. 9 (1): 18. doi:10.3390/d9010018.
  18. ^ Tünnermann, Jan; Scharlau, Ingrid (2016). "Peripheral Visual Cues: Their Fate in Processing and Effects on Attention and Temporal-Order Perception". Frontiers in Psychology. 7: 1442. doi:10.3389/fpsyg.2016.01442. ISSN 1664-1078. PMC 5052275. PMID 27766086.
  19. ^ Graham, Nicholas A. J.; Jennings, Simon; MacNeil, M. Aaron; Mouillot, David; Wilson, Shaun K. (2015). "Predicting climate-driven regime shifts versus rebound potential in coral reefs". Nature. 518 (7537): 94–97. Bibcode:2015Natur.518...94G. doi:10.1038/nature14140. PMID 25607371. S2CID 4453338.
  20. ^ Mascarenhas, Maya N.; Flaxman, Seth R.; Boerma, Ties; Vanderpoel, Sheryl; Stevens, Gretchen A. (2012-12-18). "National, Regional, and Global Trends in Infertility Prevalence Since 1990: A Systematic Analysis of 277 Health Surveys". PLOS Medicine. 9 (12): e1001356. doi:10.1371/journal.pmed.1001356. ISSN 1549-1676. PMC 3525527. PMID 23271957.
  21. ^ Cavanagh, James F; Wiecki, Thomas V; Cohen, Michael X; Figueroa, Christina M; Samanta, Johan; Sherman, Scott J; Frank, Michael J (2011). "Subthalamic nucleus stimulation reverses mediofrontal influence over decision threshold". Nature Neuroscience. 14 (11): 1462–1467. doi:10.1038/nn.2925. PMC 3394226. PMID 21946325.
  22. ^ Gething, Peter W.; Elyazar, Iqbal R. F.; Moyes, Catherine L.; Smith, David L.; Battle, Katherine E.; Guerra, Carlos A.; Patil, Anand P.; Tatem, Andrew J.; Howes, Rosalind E. (2012-09-06). "A Long Neglected World Malaria Map: Plasmodium vivax Endemicity in 2010". PLOS Neglected Tropical Diseases. 6 (9): e1814. doi:10.1371/journal.pntd.0001814. ISSN 1935-2735. PMC 3435256. PMID 22970336.
  23. ^ Pullan, Rachel L.; Smith, Jennifer L.; Jasrasaria, Rashmi; Brooker, Simon J. (2014-01-21). "Global numbers of infection and disease burden of soil transmitted helminth infections in 2010". Parasites & Vectors. 7: 37. doi:10.1186/1756-3305-7-37. ISSN 1756-3305. PMC 3905661. PMID 24447578.
  24. ^ Lamblin, Pascal (28 September 2017). "MILA and the future of Theano". theano-users (Mailing list). Retrieved 28 September 2017.
  25. ^ Developers, PyMC (2018-05-17). "Theano, TensorFlow and the Future of PyMC". PyMC Developers. Retrieved 2019-01-25.
  26. ^ "The Future of PyMC3, or: Theano is Dead, Long Live Theano". PyMC Developers. 27 October 2020. Retrieved 10 January 2021.
  27. ^ Bradbury, James; Frostig, Roy; Hawkins, Peter; James, Matthew James; Leary, Chris; Maclaurin, Dougal; Necula, George; Paszke, Adam; VanderPlas, Jake; Wanderman-Milne, Skye; Zhang, Qiao. "JAX". GitHub. Retrieved 10 January 2021.
  28. ^ "PyMC Timeline". PyMC Timeline. Retrieved 10 January 2021.
  29. ^ Hoffman, Matthew D.; Gelman, Andrew (April 2014). "The No-U-Turn Sampler: Adaptively Setting Path Lengths in Hamiltonian Monte Carlo". Journal of Machine Learning Research. 15: pp. 1593–1623.
  30. ^ Kucukelbir, Alp; Ranganath, Rajesh; Blei, David M. (June 2015). "Automatic Variational Inference in Stan". 1506 (3431). arXiv:1506.03431. Bibcode:2015arXiv150603431K. {{cite journal}}:Cite 저널 요구 사항 journal=(도움말)

추가 정보

외부 링크