kumulant

ContextualScorable

Contextual analog of Scorable: per-arm score under the current state and a supplied context vector. Implemented by com.eignex.kumulant.bandit.contextual.RegressionContextualBandit and com.eignex.kumulant.bandit.contextual.KnnContextualBandit; both have an argmax-shaped selection rule that decomposes into per-arm scores.

Inheritors

Functions

Link copied to clipboard
abstract fun evaluate(armIndex: Int, x: VectorView): Double

Score the arm at armIndex under the current state and context x.

evaluate

abstract fun evaluate(armIndex: Int, x: VectorView): Double(source)

Score the arm at armIndex under the current state and context x.