-
Notifications
You must be signed in to change notification settings - Fork 220
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
NegativeBinomial grad with k = 0 failures #680
Comments
I don't think this is the correct fix. When k is 0, this is just the probability of having Note that in the above code, I used |
PR opened. |
Yes, I see. Thanks for the explanation! |
Turing.jl/src/core/ad.jl
Line 187 in 0d5cf23
If I understand the parameterization of the NegativeBinomial being used, I believe _nbinomlogpdf_grad_1 would need to range from 0:k since there can be 0 failures before the rth success? Is that correct?
I believe that is the cause for the following error:
The text was updated successfully, but these errors were encountered: