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.

SymbolicBayesTreeClique

A SymbolicBayesTreeClique represents a single node within a SymbolicBayesTree. Each clique corresponds to a set of variables (frontal variables) that were eliminated together during the multifrontal elimination process.

Key aspects of a clique:

  • Conditional: It stores the SymbolicConditional P(Frontals | Parents/Separator) that results from eliminating the frontal variables.

  • Tree Structure: It maintains pointers to its parent and children cliques within the Bayes Tree, defining the tree’s topology.

  • Frontal and Separator Variables: Implicitly defines the frontal variables (eliminated in this clique) and separator variables (parents in the Bayes Tree, connecting it to its parent clique).

Users typically interact with the SymbolicBayesTree as a whole, but understanding the clique structure is helpful for comprehending how the Bayes Tree represents the factored distribution and facilitates efficient inference.

Open In Colab

Accessing and Inspecting Cliques

Cliques are obtained by first creating a SymbolicBayesTree (usually via elimination) and then accessing its nodes.

Bayes Tree has 4 cliques.
Number of roots: 1
Loading...

Inspecting Clique 0:
  Clique Structure:  P( x1 x2)
  Associated Conditional: P( P( x1 x2)
  Is Root? True
  Parent Clique is None (likely a root clique).
  Number of Children: 2

Inspecting Clique 0:
  Clique Structure:  P( x0 | x1)
  Associated Conditional: P( P( x0 | x1)
  Is Root? False
  Parent Clique exists.
  Number of Children: 1

Inspecting Clique 0:
  Clique Structure:  P( l1 | x0)
  Associated Conditional: P( P( l1 | x0)
  Is Root? False
  Parent Clique exists.
  Number of Children: 0

Inspecting Clique 0:
  Clique Structure:  P( l2 | x1)
  Associated Conditional: P( P( l2 | x1)
  Is Root? False
  Parent Clique exists.
  Number of Children: 0