Env#
- class hybrid_aif.envs.Env[source]#
Bases:
ModuleAbstract functional environment (pymdp’s
Env, with value semantics).An
Envis anequinox.Modulecarrying only static structure; every array-valued parameter travels in a separateparamspytree passed to each call, so one instance vmaps across a batch of parameter sets.reset()andstep()are pure and unjitted (callers jit, vmap or scan them). In the positional convention an observation is a tuple of scalarint32indices, one per modality; a state a tuple of scalarint32indices, one per state factor; and an action anint32(num_states,)array, one level per state factor (an uncontrolled state factor exposes a single no-op action). AGenerativeEnvspeaks name-keyed mappings instead.- null_action()[source]#
The no-op action, with the structure and shape every action this env takes.
Default: the level-index action,
(num_states,)int32 zeros.
- abstractmethod step(key, state, action, params)[source]#
Sample the next state given
action, and an observation of it.
- __init__()#