How to set a 'condition' in a model
like WebPPL?
#332
Unanswered
Flawless1202
asked this question in
Q&A
Replies: 1 comment 8 replies
-
Hi @Flawless1202! Thanks for trying out RxInfer.jl! I’m not entirely sure I understand your question. The variable “cough” is a random variable drawn from the lengthy expression. You then pass this random variable to a |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have read the tutorial called Probabilistic Models of Cognition. And I have read an example in Section Causal and statistical dependence as follows:
I try to realize the
condition
function inRxInfer.jl
. I follow the example in this tutorial. Here is my code:And I get the true answer. But in my implementation, the input of
Cond
must be a distribution. When I use a Bool expression such ascond .~ Cond(cough == true)
, I get the error as follows:Is there any way to fix this error and make the
Cond
function work well? @ThijsvdLaar @bvdmitri Thanks for your reply!Beta Was this translation helpful? Give feedback.
All reactions