EnsembleBatch#

class hybrid_aif.train.EnsembleBatch[source]#

Bases: NamedTuple

The flat (N, ...) batch the members are pointwise functions of.

A (B, T) batch becomes B·(T−1) examples (transitions()).

deter: Array#

The deterministic carry, (N, deter_dim).

code: Array#

The current code, (N, flat_code).

action: Array#

The action, (N, action_dim).

target: Array#

The next code, (N, flat_code).

check(members)[source]#

Validate against the members’ declared parent and child widths.

static __new__(_cls, deter, code, action, target)#

Create new instance of EnsembleBatch(deter, code, action, target)