TopTwoThompsonSpec
@Serializable
@SerialName(value = "TopTwoThompson")
Spec for TopTwoThompsonBandit.
Constructors
Link copied to clipboard
constructor(nbrArms: Int, policy: ThompsonSamplingSpec<R>, beta: Double = 0.5, maxResamples: Int = 32)
Properties
Functions
Link copied to clipboard
fun <R : Result> TopTwoThompsonSpec<R>.materialize(random: Random = Random.Default): TopTwoThompsonBandit<R>
Build a live TopTwoThompsonBandit from its spec.
Dispatch any UnivariateBanditSpec to its concrete bandit.
TopTwoThompsonSpec
beta
maxResamples
Cap on the resample loop when searching for the second arm.
nbrArms
policy
Thompson sampling policy carrying the per-arm posterior.