Giter Club home page Giter Club logo

Comments (2)

BochkarevV avatar BochkarevV commented on August 19, 2024

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:

pred_dists = (pm.sample_prior_predictive(1000, model, var_names=["y_obs"]),
              pm.sample_posterior_predictive(idata, model, var_names=["y_obs"]))

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.

from bookcode_edition1.

canyon289 avatar canyon289 commented on August 19, 2024

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/

from bookcode_edition1.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.