mrftools.MatrixTRBeliefPropagator module

Class to do tree-reweighted belief propagation with matrix-based computation.

class mrftools.MatrixTRBeliefPropagator.MatrixTRBeliefPropagator(markov_net, tree_probabilities=None)[source]

Bases: mrftools.MatrixBeliefPropagator.MatrixBeliefPropagator

Class to perform tree-reweighted belief propagation.

compute_beliefs()[source]
compute_bethe_entropy()[source]
compute_pairwise_beliefs()[source]
update_messages()[source]