-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shape error in random method for HalfNormal #3147
Comments
Same error for Normal: with pm.Model() as m:
a = pm.Normal('a', 0, np.ones((3, 1)), shape=(3, 10))
a.random(m.test_point) also with pm.Model() as m:
a = pm.Normal('a', np.zeros((3, 1)), 1, shape=(3, 10))
a.random(m.test_point) So it is a general broadcast error |
Maybe in random method we can broadcast the numpy value that feed into |
I am pretty sure if shape is supplied, I tried to make sure it was equal to It sounds like you're suggesting that we set |
I meant something like: return generate_samples(stats.halfnorm.rvs, loc=0., scale=np.broadcast(self.shape, sd),
dist_shape=self.shape,
size=size) |
Has there been work on this? |
I don't think so, although there were many shape fixes so worth checking if the behavior is still the same. |
Closed via #3456 |
I have a vague feeling this is something to do with broadcasting
sigma
parameter in Normal/HalfNormal, I think I have seen it before...The text was updated successfully, but these errors were encountered: