-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Examples pymc2 => pymc3 #2022
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
Comments
For you particular problem, it is worth to have a look at the GP smoothing notebook in the example and the new As for you general question of porting pymc2 code into pymc3 (or even generally porting WinBugs, JAGS, or STAN code into pymc3), from my experience you should try to think in matrix/tensor. If you are interested in more information of how to port WinBugs, JAGS, or STAN code into pymc3, you can have a look of my port of Lee and Wagenmakers' book. For example, in Chapter 19, the STAN code use a for loop to generate the likelihood function, and I generate the matrix outside and use matrix multiplication etc to archive the same purpose. |
You will need to define your custom likelihood function with I dont think there is any guide for that yet - but I can try to reformulate the CAR model in your question which has something similar. |
Wow this is really awesome! Thanks to you I implemented the BYM model of CAR |
@junpenglao definitely make a PR |
Hello everybody,
first of all thanks for this library. I like it A LOT!
I'm new to pymc3 (and probabilistic programming) and I find many Pymc examples on the web that I cannot convert to pymc3. Would it be possible to add a page on the website to help people converting pymc2 instructions to pymc3?
(example: http://stackoverflow.com/questions/43328715/car-model-from-pymc2-to-pymc3 disclamer I'm the one who asked it)
The text was updated successfully, but these errors were encountered: