-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Mixture should not allow mixing of discrete and continuous distributions #4511
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
#3582 raises the same concern (applied to the proposal distributions) |
This won't be worth addressing in |
We can perhaps substitute |
Sure, should be enough to check the dtype of the components is the same in |
Right now the Mixture class allows to mix distributions of any kind, leading to improper logp evaluations where probability densities are mixed with probability masses.
Questions related to the mixture of continuous and discrete distributions crop up now and then on the Discourse:
The STAN forum has an informative discussion on this:
It seems to me like this is an area where we could easily nudge users in the right direction, by raising an informative value error.
The text was updated successfully, but these errors were encountered: