kumulant

UcbForestPosterior

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

Forest counterpart to UcbTreePosterior.

Constructors

Link copied to clipboard
constructor(priorWeight: Double = 1.0, priorVariance: Double = 1.0)

Properties

Link copied to clipboard

Prior variance used when the leaf has no signal yet.

Link copied to clipboard

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

Functions

Link copied to clipboard
open override fun evaluate(snapshot: ForestRegressionResult, x: VectorView, rng: Random, exploration: Double = 1.0): Double

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.

UcbForestPosterior

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

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.

priorVariance

Prior variance used when the leaf has no signal yet.

priorWeight

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