aloctavodia / BAP

Bayesian Analysis with Python (Second Edition)
https://www.amazon.com/dp/B07HHBCR9G
MIT License
649 stars 250 forks source link

pymc.gp.cov.WhiteNoise cannot be added to pymc.gp.cov.ExpQuad #87

Open PPatty666 opened 1 year ago

PPatty666 commented 1 year ago

I am learning Chapter 7 of Bayesian Analysis with Python and was trying to use pymc5 to reproduce some modeling examples.

In the examples where pymc.gp.cov.WhiteNoise was added to instantiate a covariance function, it gave me an error message saying "'WhiteNoise' object has no attribute 'input_dim'".

Attached is the printed code with the error message.

Could you please suggest some solutions?

Thank you very much!

white_noise_add_issue.pdf