evaluate_policy_tree_total

evaluate_policy_tree_total#

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

Score every policy of the grid straight to its G, one Interval per node.

The metrics-free sibling of evaluate_policy_tree(): each level’s step tree is folded with total() and added to the parent’s G (an empty level passes it through), then the terminal terms. Seeded with the step tree’s static derived and approximate flags. Returns the per-policy G and the aligned policy set.