mxfusion.models.posterior

Members

class mxfusion.models.posterior.Posterior(model, name=None, verbose=False)

Bases: mxfusion.models.factor_graph.FactorGraph

A Posterior graph defined over an existing model.

clone(model, leaves=None)

Clones a model, maintaining the same functionality and topology. Replicates all of its ModelComponents, while maintaining the same UUIDs.

Starts upward from the leaves and copies everything in the graph recursively.

Parameters:leaves – If None, use the leaves in this model, otherwise use the provided leaves.
Returns:the cloned model