Skip to content
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

Issue sampling from model using Beta distribution with small alpha values #2159

Open
yahrMason opened this issue Jan 24, 2024 · 0 comments
Open

Comments

@yahrMason
Copy link

Hello, I have a model that I am trying to sample with a BetaBinomial likelihood. I describe the model in detail with the code in this discourse post. The error I am receiving is as follows:

BetaBinomial: the condition α > zero(α) is not satisfied.

I have inverse logit constraints in my model, so it is not possible for the alpha value to reach zero (though can be arbitrarily small). From my investigations it looks like this is an issue related to this issue with Distributions.jl. The developers of Gen.jl have identified this issue as well outlined here and here. It looks like their solution was rather straightforward. I am not sure if it is worth exploring something similar for Turing.jl (if it doesn't exist already).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant