-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port book to PyMC 4.0 #537
Comments
4.0! Congrats! I'd like to invite any motivated volunteers watching to help port examples over (ideally entire chapters at a time). @twiecki is it correct that there's not yet a beta release for pymc v4? |
@CamDavidsonPilon Thanks!
Correct, but we'll release the beta today or tomorrow. |
Beta is out if someone wants to take this on! |
Hi! print("parameter.value =", parameter.value)
the models are no longer declared as in the example: import pymc as pm
parameter = pm.Exponential("poisson_param", 1)
data_generator = pm.Poisson("data_generator", parameter)
data_plus_one = data_generator + 1 tau.random()
etc etc, TBH I'm trying to re-write the code on this chapter, but it seems not only that the API has changed completely like I think is better to re-write the chapter using this "new library" or the missing methods are available somewhere but the documentation it's just not giving any hint. Am I missing something? is this chapter that outdated? Thanks ! |
Hi @pabloazurduy,
I appreciate your efforts in porting content to use PyMC4 (it's a great learning exercise I'm sure). There's lots of freedom in how to port it, too, and I'm open to suggestions and PRs on how it's done. |
hey @CamDavidsonPilon,
3+end. I will be more than happy to help, I was trying too! and then I realized that either, you know how to use PYMC3 and then learn how to port it to PYMC4, or you know PYMC4 and write a chapter about it, I think I don't belong to either of those groups 😂😂 (That's why I bought the book on the first place). I found the migration guide, but not very helpful, maybe there is a PYMC3 v1.0 to migration guide somewhere ?. Anyway, thanks for the context, and sorry to sound rude (not my intention ! ) |
Yeah, the modeling API is mostly intact but otherwise things definitely changed, and this great book definitely teachers more than just the modeling API. A more comprehensive migration guide is definitely required. For now, you can read https://github.com/pymc-devs/pymc/blob/main/RELEASE-NOTES.md#pymc-400 to get some pointers. |
With PyMC 4.0 almost ready, we should work on porting the examples here. Most models should continue to run just fine.
The text was updated successfully, but these errors were encountered: