kumulant

RouletteWheelSpec

@Serializable
@SerialName(value = "RouletteWheel")
data class RouletteWheelSpec(val nbrArms: Int, val reactionFactor: Double = 0.1, val segmentLength: Int = 10, val initialWeight: Double = 1.0, val minWeight: Double = 0.01) : UnivariateBanditSpec(source)

Spec for RouletteWheelBandit.

Constructors

Link copied to clipboard
constructor(nbrArms: Int, reactionFactor: Double = 0.1, segmentLength: Int = 10, initialWeight: Double = 1.0, minWeight: Double = 0.01)

Properties

Link copied to clipboard

Starting weight assigned to every arm.

Link copied to clipboard

Floor on the rebalanced weight.

Link copied to clipboard

Number of arms in the population.

Link copied to clipboard

Blend factor for the Ropke-Pisinger weight update.

Link copied to clipboard

Updates between successive weight rebalances.

Functions

Link copied to clipboard

Build a live RouletteWheelBandit from its spec.

fun UnivariateBanditSpec.materialize(random: Random = Random.Default): Bandit

Dispatch any UnivariateBanditSpec to its concrete bandit.

RouletteWheelSpec

constructor(nbrArms: Int, reactionFactor: Double = 0.1, segmentLength: Int = 10, initialWeight: Double = 1.0, minWeight: Double = 0.01)(source)

initialWeight

Starting weight assigned to every arm.

minWeight

Floor on the rebalanced weight.

nbrArms

Number of arms in the population.

reactionFactor

Blend factor for the Ropke-Pisinger weight update.

segmentLength

Updates between successive weight rebalances.