TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

An Astronomer's Introduction to NumPyro

55 pointsby dil8almost 3 years ago

2 comments

rich_sashaalmost 3 years ago
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 未加载
rogue7almost 3 years ago
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>