-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Description
Hello,
I wonder what is the syntax to query a Bayesian Network's (BN) joint probability with some evidence? The docs seem a little bit too brief and lots of syntaxes are not mentioned.
Based on this infer statement:
infer(ExactInference(), bn, [:distance], evidence=Assignment(:carrier_id=>15))
I have tried to omit the query objects (e.g., [:a,:b]) from the infer statement:
infer(ExactInference(), bn, evidence=Assignment(:carrier_id=>15))
and BayesNets.jl output compilation errors:
MethodError: no method matching infer(::ExactInference, ::DiscreteBayesNet; evidence=Dict{Symbol, Any}(:carrier_id => 15))
I wonder if such feature is implemented or will it be on plan? Really looking forward to your reply! Thank you so much!
Metadata
Metadata
Assignees
Labels
No labels