evaluate_policy_tree

evaluate_policy_tree#

hybrid_aif.planning.evaluate_policy_tree(
num_controls,
controlled,
policy_len,
init_qs,
transition_fn,
step_terms,
terminal_terms=None,
)[source]#

Score every policy of the grid by summing the step term trees along its path.

terminal_terms at the horizon-end beliefs is merged in once. Returns the term tree (leading per-policy axis on every leaf) and the aligned policy set, enumerate_policies(num_controls, policy_len, controlled).