Skip to main content

Module packed

Module packed 

Source
Expand description

12-byte packed node format and ensemble binary layout.

§Binary Format

[EnsembleHeader: 16 bytes]
[TreeEntry × n_trees: 8 bytes each]
[PackedNode × total_nodes: 12 bytes each]

Learning rate is baked into leaf values at export time, eliminating one multiply per tree during inference.

Structs§

EnsembleHeader
Header for the packed ensemble binary format. 16 bytes, 4-byte aligned.
PackedNode
12-byte packed decision tree node. AoS layout for cache-optimal inference.
TreeEntry
Tree table entry: metadata for one tree in the ensemble. 8 bytes.