sample

Contents

sample#

hybrid_aif.composition.sample()[source]#

The step of a process: its System sampled forward from its declarations.

The first call (the reset) draws the initial state, or takes the partial point state the carry was seeded with through run(carries=...), and returns the emissions of that state. Each round calls System.sample_step() on the unsliced view with the control nodes that other nodes drive taken from obs (a driven node’s value as the driver realised it), returning every emission realised by its declared rule from the stepped state and the action node of each control node that no variable drives, drawn from its habit or uniformly. The carry is the point state, keyed by state factor name.