You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Manuscript Error: Code 1.7 doesn't work in PyMC version 5 #204
However, I also went for the most recent PyMC version which was 5.0.2 when I started reading the book and experienced similar issues as you did. I found some workarounds how to execute the code with minimal changes. In particular, the code snippet you refer to should be updated to this:
Nonetheless, I hope the authors will update the book to make it usable with newer PyMC versions. Found it to be a great source with clear explanations and practical examples.
Hey folks, both thank you for the kind words and apologies for the trouble. The book is written in PyMC3, the concepts will be the same for PyMC v5, or any ppl, but the code will not, hence why PyMC is at v5.
We wont be updating the code anytime this year to be frank, but we do expect to write a second edition of this book which will update the code and add additional topics.
You can get hepl from the pymc discourse for api help. Ourselves and a number of the core contributors are active there. https://discourse.pymc.io/
Activity
BochkarevV commentedon Jun 12, 2023
Hi @bskrainka. To the best of my understanding, the book is using PyMC version 3.11.4 (https://github.com/BayesianModelingandComputationInPython/BookCode_Edition1/blob/main/environment.yml), so it should be possible to execute the code with this version.
However, I also went for the most recent PyMC version which was 5.0.2 when I started reading the book and experienced similar issues as you did. I found some workarounds how to execute the code with minimal changes. In particular, the code snippet you refer to should be updated to this:
Nonetheless, I hope the authors will update the book to make it usable with newer PyMC versions. Found it to be a great source with clear explanations and practical examples.
canyon289 commentedon Jun 12, 2023
Hey folks, both thank you for the kind words and apologies for the trouble. The book is written in PyMC3, the concepts will be the same for PyMC v5, or any ppl, but the code will not, hence why PyMC is at v5.
We wont be updating the code anytime this year to be frank, but we do expect to write a second edition of this book which will update the code and add additional topics.
You can get hepl from the pymc discourse for api help. Ourselves and a number of the core contributors are active there.
https://discourse.pymc.io/