kumulant

Scorable

interface Scorable(source)

Opt-in per-arm scoring for inspection / debugging / custom selectors. Bandits whose UnivariateBandit.choose is an argmax over independent per-arm scores expose this; UCB1, Thompson, epsilon-greedy, etc.

Joint-sampling bandits don't implement Scorable: their selection rule doesn't decompose into a per-arm score. Top-Two Thompson samples twice and picks conditionally, Exp3 samples from a weight distribution. For those, use the bandit's Snapshotable.snapshot to read the underlying state directly.

Inheritors

Functions

evaluate

abstract fun evaluate(armIndex: Int): Double(source)

Score armIndex under the current state. Higher scores are preferred. The interpretation is policy-specific, such as a confidence bound, posterior draw, or mean estimate. Sampling scores consume the bandit's randomness.