Skip to content

Infer BN joint probability with evidence #143

@SEICS

Description

@SEICS

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions