Open gaoleihlj opened 6 years ago
I removed the [0] indexing and it worked. It looks like lambda_1.random() is a scalar and not an array.
samples = [lambda_1.random() for i in range(20000)]
as of numpy 1.18.5 / pymc 2.3.8, you may need something like this:
samples = np.array([lambda_1.random() for i in range(20000)]).reshape(20000,1)
The codes in Ln[11] are:
And the program stopped at:
with error:
So I tried to change it as:
and it worked.