inferlo.pairwise.junction_tree.max_likelihood_junction_tree
- inferlo.pairwise.junction_tree.max_likelihood_junction_tree(model) ndarray [source]
Finds most probable state using Junction Tree decomposition.
Decomposes graph into junction tree, builds equivalent model on that tree, finds the most probable state for the new model and restores answer for the original model.
- Parameters:
model – Model, for which to find the most probable state.
result – The most probable state. Integer np.array of length
model.gr_size
.