-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
TypeError: zip argument #1 must support iteration #3330
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
Comments
It seems to have problems with sending samples through the determinstic. Maybe @lucianopaz has an idea? |
I'll look into this in more detail but from a first glance, I think I had run into this also in the PR #3293. The problem I had run into was that the |
I checked the issue more in depth. The problem is caused because ...
counts = pm.NegativeBinomial('counts', 10, probs,
shape=(np.sum(τs >= 0),
np.sum(τs < 0) + 1))
... This is a limitation of pymc3's implementation of random variables and distributions. @brandonwillard's ideas of writing random variates as |
Thanks for checking! Sorry I haven't thought of that shape-problem. Probably, it would be a nice practice of coding just to define the shape parameter everywhere, so that possible errors could be avoided |
Uh oh!
There was an error while loading. Please reload this page.
Description of your problem
Please provide a minimal, self-contained, and reproducible example.
Please provide the full traceback.
Please provide any additional information below.
I wanted to sample sums over columns of counts, but sum() didn't work for me and then even simple creation of Deterministic node led to a Type error.
Versions and main components
The text was updated successfully, but these errors were encountered: