TreePosterior
Tree- and forest-aware scorer: routes the query x to its leaf evidence and turns the weighted-variance summary into a single Double. Parallels the linear-side com.eignex.kumulant.stat.regression.glm.LinearPosterior family for tree regressors.
A TreeRegressionResult scores the leaf x routes to. A ForestRegressionResult scores every tree's routed leaf merged with correlation-adjusted weight (ForestRegressionResult.findLeafEvidence), so the trees' shared data does not count once per tree. Any other snapshot is rejected.
Concrete posteriors differ only in how they consume the leaf's (mean, variance, totalWeights) triplet:
MeanTreePosterior: deterministic leaf mean.
ThompsonTreePosterior: Normal-Gamma draw built from the leaf's first two moments; the natural Thompson scheme when leaves accumulate normal-like rewards.
UcbTreePosterior: UCB-style mean + alpha * sqrt(variance / totalWeights) on the leaf's sampling-distribution-of-the-mean.