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

Numeric and domain issues with Dirichlet #935

Closed
itsdfish opened this issue Oct 21, 2019 · 1 comment
Closed

Numeric and domain issues with Dirichlet #935

itsdfish opened this issue Oct 21, 2019 · 1 comment
Assignees
Labels

Comments

@itsdfish
Copy link
Contributor

As discussed in Slack, here is a MWE in which sampling from the Dirichlet distribution produces numeric and domain errors.

using Turing, Random 
@model dir(K) = begin
    w ~ Dirichlet(ones(K) / K)
end
#Random.seed!(343) #Domain error
Random.seed!(344) #Numerical Errors
s = sample(dir(4), NUTS(1000, 0.8), 2000, progress=false)

Version Info:

Julia 1.2

(v1.2) pkg> st Turing
    Status `~/.julia/environments/v1.2/Project.toml`
  [0bf59076] AdvancedHMC v0.2.7
  [31c24e10] Distributions v0.21.3
  [276daf66] SpecialFunctions v0.7.2
  [4c63d2b9] StatsFuns v0.8.0
  [fce5fe82] Turing v0.7.0
  [e88e6eb3] Zygote v0.3.4
@yebai
Copy link
Member

yebai commented Dec 16, 2021

This is probably fixed with improvements to DistributionsAD and Bijectors. Please reopen if otherwise.

@yebai yebai closed this as completed Dec 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants