Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

SymbolicBayesNet

A SymbolicBayesNet is a directed acyclic graph (DAG) composed of SymbolicConditional objects. It represents the structure of a factorized probability distribution P(X) = Π P(Xi | Parents(Xi)) purely in terms of variable connectivity.

It is typically the result of running sequential variable elimination on a SymbolicFactorGraph.

Open In Colab

Creating a SymbolicBayesNet

SymbolicBayesNets are usually created by eliminating a SymbolicFactorGraph. But you can also build them directly:

Directly Built Symbolic Bayes Net:
 
size: 5
conditional 0:  P( l1 | x0)
conditional 1:  P( x0 | x1)
conditional 2:  P( l2 | x1)
conditional 3:  P( x1 | x2)
conditional 4:  P( x2)

Accessing Conditionals and Visualization

Conditional at index 1:  P( x0 | x1)
Loading...