mixle.stats.compute.backend module¶
Generic backend scoring dispatch over distribution-owned math hooks.
- exception BackendScoringError[source]
Bases:
NotImplementedErrorRaised when a distribution has no backend scoring hook.
- child_seq_update(accumulator, enc, weights, estimate, engine)[source]
Route a child accumulator’s E-step through the active engine when possible.
Structural distributions (sequence, composite, optional, …) delegate accumulation to child accumulators. When the engine prefers staying resident (
resident_estep) this uses the child’sseq_update_engineso nested families stay engine-resident; otherwise it falls back to the hostseq_updatewith numpy weights. This is the recursion that pushes engine residency down a model tree.
- backend_seq_log_density(dist, enc, engine=NUMPY_ENGINE)[source]
Return per-row log densities using
engineand distribution-local math.
- backend_seq_component_log_density(dist, enc, engine=NUMPY_ENGINE)[source]
Return component log densities when a distribution exposes them.