mxfusion.util.inference

Members

mxfusion.util.inference.variables_to_UUID(variables)
mxfusion.util.inference.realize_shape(shape, constants)
mxfusion.util.inference.discover_shape_constants(data_shapes, graphs)

The internal shape discovery from data and the shape inference for all the variables in the model and inference models.

Parameters:
  • data_shapes – a dict of shapes of data
  • graphs – a list of factor graphs of which variable shapes are searched.
Returns:

a dict of constants discovered from data shapes

Return type:

{Variable: int}

mxfusion.util.inference.init_outcomes(inference_outcomes)