kumulant

ThompsonForestPosterior

data class ThompsonForestPosterior(val priorWeight: Double = 1.0, val priorVariance: Double = 1.0) : ForestPosterior(source)

Forest counterpart to ThompsonTreePosterior.

Constructors

ThompsonForestPosterior

constructor(priorWeight: Double = 1.0, priorVariance: Double = 1.0)(source)

Properties

priorVariance

Prior variance used when the leaf has no signal yet.

priorWeight

Pseudo-count added to the leaf's totalWeights; floor for empty leaves.

Functions

evaluate

open override fun evaluate(snapshot: ForestRegressionResult, x: VectorView, rng: Random, exploration: Double = 1.0): Double(source)

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.