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
>>> c = sq.norm(mean=sq.norm(mean=0,sd=1), sd=1)
>>> c
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/joel/Library/Python/3.9/lib/python/site-packages/squigglepy/distributions.py", line 40, in __repr__
return str(self)
File "/Users/joel/Library/Python/3.9/lib/python/site-packages/squigglepy/distributions.py", line 588, in __str__
round(self.mean, 2),
TypeError: type NormalDistribution doesn't define __round__ method
>>> c.mean
<Distribution> norm(mean=0, sd=1)
i guess because sampling is determined by the user, after computing everything else, in order to keep squigglepy very fast. i definitely appreciate the speed, but there have been a couple of times when "something like the above example, implemented fast enough for a web app" would be dreamy.
The text was updated successfully, but these errors were encountered:
this would work in squiggle
but doesn't work in squigglepy
i guess because sampling is determined by the user, after computing everything else, in order to keep squigglepy very fast. i definitely appreciate the speed, but there have been a couple of times when "something like the above example, implemented fast enough for a web app" would be dreamy.
The text was updated successfully, but these errors were encountered: