mxfusion.components.modules.module

Members

class mxfusion.components.modules.module.Module(model, inferences)

Bases: mxfusion.components.factor.Factor

Modules are a combined Model/Posterior + Inference algorithm object in MXFusion. They act as Factors and are defined as such during model definition, producing Random Variables like a typical Distribution. During inference, instead of the Module having a closed form solution, the outside inference algorithm will call the module’s internal inference algorithm to perform modular inference.

create_variable()

Create a variable drawn from this module for use during model building.