-
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.
Answered by
ztangent
Jun 29, 2024
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.
0 replies
Answer selected by
sdwfrost
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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!