TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

An Astronomer's Introduction to NumPyro

55 点作者 dil8超过 2 年前

2 条评论

rich_sasha超过 2 年前
It&#x27;s a nice summary.<p>Last time I looked at it, Python had an awkward situation with with probabilistic programming packages. There&#x27;s PyMC3 which is fairly robust and feature-complete, but mostly for static models. Simple things are easy, moderate things are (to me) hard. It also had a bit of an uncertain future; PyMC3 was reliant on Theano, then PyMC4 was conceived, based on TensorFlow, then abandoned in favour of supporting Theano, etc etc.<p>There&#x27;s Edward and TF Probability, but somehow I never ever got on with it.<p>Then there&#x27;s Pyro, backed by Uber, which again seems fairly feature-complete. Simple things were moderately hard, but hard things were doable. It is also based on PyTorch, which is certainly much easier (IMO) to use than TensorFlow, but still marginally harder than numpy. Also last time I looked, MCMC sampling was a bit missing.<p>NumPyro perhaps fits into the gap in the happy middle? Most of the power of Pyro, using more familiar numpy-esque (JAX) backend, with an emphasis on simplicity. I should give it a try.
评论 #32494853 未加载
rogue7超过 2 年前
I&#x27;ve been using Numpyro for a while (2 years), and it&#x27;s very fast, robust and well designed.<p>I recommend the Statistical rethinking translation [0].<p>I&#x27;ve had some trouble with the plates sometimes, especially when using discrete latent variables.<p>With PyMC these are the best for bayesian modelling.<p>[0] <a href="https:&#x2F;&#x2F;fehiepsi.github.io&#x2F;rethinking-numpyro&#x2F;" rel="nofollow">https:&#x2F;&#x2F;fehiepsi.github.io&#x2F;rethinking-numpyro&#x2F;</a>