expand_level

Contents

expand_level#

hybrid_aif.planning.expand_level(qs_nodes, actions, transition_fn, step_terms, t)[source]#

Push every node through every action: one level of the policy tree.

qs_nodes is a belief pytree with a leading node axis n; actions is int32 (b, K). Returns the children’s beliefs, leading axis n·b (child of i under a at i·b + a), and each child’s step term tree with the same leading axis. t is the static step index, passed to step_terms as an int32 scalar.