Parameter#

class hybrid_aif.Parameter[source]#

Bases: Module

A reference to a named parameter variable, in place of a table.

A state factor’s transition entry or a modality’s likelihood entry may be Parameter(name), which says the state factor or modality reads the declaration held under name in SystemParams.parameters. Every reader of one name reads one table, and learn updates it once from the sum of the readers’ count statistics. The token carries no array: the name is static, so a reference is a pytree node with no leaves.

The variable is internal to one particle: its readers share it outright, and another particle sees it only as a report of counts (by stats, the counts since the last report; mode and sample of a parameter stay deferred). Design: shared-parameters.md; nesting-and-coupling.md N6.

name: str#

The name of the parameter variable, a key of SystemParams.parameters (static).

__init__(name)#