habit_planner

Contents

habit_planner#

hybrid_aif.planning.habit_planner(ctx, use_bound='midpoint', metrics=True)[source]#

The Planner face of this module.

Returns (q_pi, tree, policies). For a policy module the policy set is the one sampled plan and q_pi a point mass on it; for a vector E the policy set is the enumeration and q_pi is E. The module case draws from key; the vector case ignores it. metrics=True returns {}, False returns None; use_bound is unused.