ThompsonTreePosterior
Thompson sampling over the leaf's Normal-Gamma posterior. Given the leaf's pseudo- count n, sample mean m, and sample variance v, draws are mu ~ N(m, exploration * v / max(n, 1)); the posterior on the leaf mean assuming a Normal-Gamma conjugate. The variance is blended with priorVariance on a priorWeight pseudo-count, so a leaf holding one observation - whose sample variance is exactly zero - still has spread. exploration = 0.0 collapses to the leaf mean.
Constructors
ThompsonTreePosterior
Properties
priorVariance
Prior variance applied when the leaf has effectively no signal.
priorWeight
Pseudo-count added to the leaf's totalWeights to avoid divide-by-zero on empty leaves.
Functions
evaluate
Score a query point x under the regression snapshot. exploration controls the posterior-variance scale (Thompson) or the UCB width (LinUcb-style); 0.0 collapses to the point estimate.