Evidence#

class hybrid_aif.learning.Evidence[source]#

Bases: NamedTuple

The evidence of one learnable slot (a likelihood, transition or initial_state_prior entry) for what its posterior absorbed from its prior, as evidence_by_slot() reports it, summed over the slot’s parent combinations.

nats: Array | None#

The evidence in nats (None when the slot is unscored).

exact: bool#

Whether the number is the exact marginal likelihood.

count: Array | None#

The mass the slot absorbed (None when it holds no posterior).

static __new__(_cls, nats, exact, count)#

Create new instance of Evidence(nats, exact, count)