You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue summarizes two inconsistent behaviors of pymc3's random method. One happens for distributions that are declared with shape (1,). The other happens when a distribution's random method is called with size=1.
These calls should output (1,), (1, 1) and (1, 10) respectively, but the single draw is incorrectly reduced. In particular, this behavior should only happen when we supply size=None or size=().
Versions and main components
PyMC3 Version: 3.9.3
Theano Version: 1.0.5
Python Version: 3.7.6
Operating system: Ubuntu
How did you install PyMC3: (conda/pip) pip
The text was updated successfully, but these errors were encountered:
Hi @AlexAndorra
This issue has been fixed by Michael is his #4214 PR. So, lets ping @michaelosthege to ask for closing this issue.
Coming to #4207, all the issues mention in the PR's description have been resolved. I think @twiecki closed them all.
Description of your problem
This issue summarizes two inconsistent behaviors of pymc3's
random
method. One happens for distributions that are declared with shape(1,)
. The other happens when a distribution'srandom
method is called withsize=1
.Singleton array distributions
These two calls should output shapes
(1,)
and(10, 1)
respectively. The singleton distribution dimension is incorrectly reduced.Random draws of a single value
These calls should output
(1,)
,(1, 1)
and(1, 10)
respectively, but the single draw is incorrectly reduced. In particular, this behavior should only happen when we supplysize=None
orsize=()
.Versions and main components
The text was updated successfully, but these errors were encountered: