-
I'd like to use folded or truncated distributions in my proposals for Metropolis-Hastings; is this possible with the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There isn't support for this with the You can also implement your own distribution in Gen, though note that Gen's API for distributions is not the same as the one for Distributions.jl! |
Beta Was this translation helpful? Give feedback.
There isn't support for this with the
@dist
DSL unfortunately! But you might be able to use the wrapper functionality provided by https://github.com/probcomp/GenDistributions.jl to wrap a truncated distribution from Distributions.jl.You can also implement your own distribution in Gen, though note that Gen's API for distributions is not the same as the one for Distributions.jl!