-
Notifications
You must be signed in to change notification settings - Fork 218
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
pdf
for ChineseRestaurantProcess
gives a stack overflow
#1397
Comments
pdf
for CRP gives a stack overflowpdf
for ChineseRestaurantProcess
gives a stack overflow
This already came up with other discrete distributions (see e.g. #1089). I really think one should change the definition in Distributions if possible. |
This also caught me by surprise when implementing |
This is completely insane. I think we should open a PR on the Distributions.jl side. |
Done. |
Thanks! |
The PR was merged into Distributions and released as part of Distributions 0.24. |
As mentioned in the last comment, this is fixed in recent versions of Distributions. |
Appearently this is because
Distributions
contains a recursive definition ofpdf
for discrete univariate distributions that does not fall back onlogpdf
:(
logpdf
works as it should.)CC @trappmartin
The text was updated successfully, but these errors were encountered: