synthcity.plugins.core.models.mbi.factor_graph module

class FactorGraph(domain, cliques, total=1.0, convex=False, iters=25)

Bases: object

bethe_entropy(marginals)

Return the Bethe Entropy and the gradient with respect to the marginals

clique_marginals(mu_n, mu_f, potentials)
convergent_belief_propagation(potentials, callback=None)
datavector(flatten=True)

Materialize the explicit representation of the distribution as a data vector.

get_counting_numbers()
init_messages()
loopy_belief_propagation(potentials, callback=None)
mle(marginals)
primal_feasibility(mu)
project(attrs)