inferlo.pairwise.junction_tree.infer_junction_tree

inferlo.pairwise.junction_tree.infer_junction_tree(model) InferenceResult[source]

Performs inference using Junction Tree decomposition.

Decomposes graph into junction tree, builds equivalent model on that tree, performs inference for the new model and restores answer for the original model.

Parameters:
  • model – Model, for which to perform inference.

  • result – InferenceResult object.