inferlo.InferenceResult

class inferlo.InferenceResult[source]

Inference result for discrete graphical model.

Inference result consists of log Z (logarithm of partition function) and marginal probabilities.

Marginal probabilities specify for each variable and for each value what is the probability of this variable to assume given value when other variables can take any value.

__init__(log_pf: float, marg_prob: array) None

Methods

__init__(log_pf, marg_prob)

Attributes

log_pf

marg_prob