kumulant

TreeRegressionResult

@Serializable
@SerialName(value = "TreeRegressionResult")
data class TreeRegressionResult(val root: TreeNodeResult) : Result(source)

Immutable snapshot of a RegressionTree at read time. Carries the tree structure (split predicates + per-node weighted-variance aggregates) so callers can route a context vector to its leaf without reaching back into the live stat.

The root's WeightedVarianceResult is exposed as the canonical scalar snapshot; callers wanting context-specific predictions use findLeaf or predict.

Constructors

Link copied to clipboard
constructor(root: TreeNodeResult)

Properties

Link copied to clipboard

Root of the snapshot tree.

Link copied to clipboard

Root aggregate mean (over every observation absorbed).

Link copied to clipboard

Cumulative weight folded into the tree.

Functions

Link copied to clipboard

Walk to the leaf the context resolves to.

Link copied to clipboard

Mean of the leaf the context resolves to.

TreeRegressionResult

constructor(root: TreeNodeResult)(source)

findLeaf

Walk to the leaf the context resolves to.

predict

Mean of the leaf the context resolves to.

rootMean

Root aggregate mean (over every observation absorbed).

root

Root of the snapshot tree.

totalWeights

Cumulative weight folded into the tree.