kumulant

RegressionNode

sealed interface RegressionNode(source)

Internal tree node. The hot update path touches only the leaf an observation routes to; internal split nodes are never written by RegressionTree.update. Splits may carry an optional carryover arm: a one-shot snapshot of the pre-split aggregate captured at the moment a leaf converts into a split, plus any orphaned aggregates folded in by mixed-structure merges. Subtree aggregates include the carryover but the hot path never reads or writes it.

Inheritors

Functions

Link copied to clipboard

Walk to the leaf this row resolves to.

Link copied to clipboard

Freeze a live tree node into an immutable snapshot. Internal split aggregates are derived from the snapshotted children so the wire format stays stable even though live splits hold no arm.

findLeaf

Walk to the leaf this row resolves to.