Probabilistic-Programming-and-Bayesian-Methods-for-Hackers icon indicating copy to clipboard operation
Probabilistic-Programming-and-Bayesian-Methods-for-Hackers copied to clipboard

Chapter 2: model.initial_values AttributeError: 'Model' object has no attribute 'initial_values'

Open rwst opened this issue 1 year ago • 4 comments

The third cell will not work, it gives me:

In [3]: model.initial_values
AttributeError: 'Model' object has no attribute 'initial_values'

This is a conda installation of pymc 5.10.3. I had no problems running Chapter 1.

rwst avatar Jan 24 '24 16:01 rwst

OK, it looks like this has changed in PyMC to: model.initial_point()

rwst avatar Jan 24 '24 16:01 rwst

model.initial_point() solved it for me

ant358 avatar Jul 12 '24 16:07 ant358

+1 solution worked for me as well

TomHilder avatar Aug 12 '24 06:08 TomHilder