mxfusion.inference.map

Members

class mxfusion.inference.map.MAP(model, observed)

Bases: mxfusion.inference.inference_alg.InferenceAlgorithm

The class of the Maximum A Posteriori (MAP) algorithm.

Parameters:
  • model (Model) – the definition of the probabilistic model
  • observed ([Variable]) – A list of observed variables
posterior

return the variational posterior.

static create_posterior(model, observed)

Create the posterior of Maximum A Posteriori (MAP).

Parameters:
  • model (Model) – the model definition
  • observed ([UUID]) – the list of observed variables
Returns:

the resulting posterior representation

Return type:

Posterior

compute(F, variables)

The method for the computation of the inference algorithm

Parameters:
  • F (Python module) – the execution context (mxnet.ndarray or mxnet.symbol)
  • data ({Variable: mxnet.ndarray.ndarray.NDArray or mxnet.symbol.symbol.Symbol}) – the data variables for inference
  • parameters ({Variable: mxnet.ndarray.ndarray.NDArray or mxnet.symbol.symbol.Symbol}) – the parameters for inference
  • constants – the constants for inference
Returns:

the outcome of the inference algorithm

Return type:

mxnet.ndarray.ndarray.NDArray or mxnet.symbol.symbol.Symbol