BranchingTreeMemory#

class hybrid_aif.planning.BranchingTreeMemory[source]#

Bases: NamedTuple

The memory of the sophisticated planner’s tree, estimated. All fields but the first are None without a budget.

whole_level_bytes: int#

The bytes of the deepest level, evaluated whole.

split_depth: int | None#

Given a budget, the split depth chunk_choice() would choose (None when the whole level fits).

batch_size: int | None#

Given a budget, the batch size chunk_choice() would choose (None when the whole level fits).

estimated_bytes: int | None#

The estimate under that choice.

static __new__(
_cls,
whole_level_bytes,
split_depth,
batch_size,
estimated_bytes,
)#

Create new instance of BranchingTreeMemory(whole_level_bytes, split_depth, batch_size, estimated_bytes)