Hello,
This my first work with Pymc3 and I’m trying to run the follwoing model in Pymc3 to estimate the value of b (the upper bound of a truncated normal) :
Hi luisroque,
thanks for your reply.
I actually added the shape arguments because I was getting this error:
TypeError: For compute_test_value, one input test value does not have the requested type.
The error when converting the test value to that variable type:
Wrong number of dimensions: expected 0, got 1 with shape (1,).
Concerning using Metropolis, I’m actually using it for a particular reason, do you think it is what is causing the problem?
Then, the only thing that it is left are the values that you are supplying as arguments to the RV, such as b_lower, b_upper, etc. You might be supplying a data type that messes with shape, such as a list. You can’t do that. It should be something like:
+1 to remove the shape, as shape=(0, 1) create a zero size random variable which is another way to say no variable.
also, when you see error like Wrong number of dimensions: expected 0, got 1 with shape (1,)., it actually means some of the input is (1, ) shape instead of a scalar - I cannot quite reproduce your error but usually you can wrap the random variables in question with tt.squeeze.