mbi.marginal_oracles.variable_elimination
- mbi.marginal_oracles.variable_elimination(potentials: CliqueVector, clique: tuple[str, ...], total: float = 1, mesh: Mesh | None = None, evidence: dict[str, int] | None = None) Factor[source]
Compute an out-of-model/unsupported marginal from the potentials.
- Parameters:
potentials – The (log-space) potentials of a Graphical Model.
clique – The subset of attributes whose marginal you want.
total – The normalization factor.
mesh – The mesh over which the computation should be sharded.
evidence – A dictionary mapping attribute names to observed values.
- Returns:
The marginal defined over the domain of the input clique, where each entry is non-negative and sums to the input total.