sophisticated_plan#
- hybrid_aif.planning.sophisticated_plan(
- ctx,
- use_bound='midpoint',
- metrics=True,
- memory_budget=None,
- split_depth=None,
- batch_size=None,
The sophisticated planner with its memory options.
batch_sizesets the number of subtrees evaluated at once belowsplit_depth(1 when onlybatch_sizeis given). With neither,memory_budget(bytes) chooses them from the estimate (chunk_plan()): the largest batch that fits, deepening the split until one subtree fits unlesssplit_depthis given. With none of the three, the whole deepest level is evaluated. Theq_pi,Gand plan are the same at every setting up to float rounding.A per-step
legal=mask that is traced is not checked: one leaving no legal action at a depth gives aNaNq_pi.