View source: R/experiment_utils.R
LinTSModel | R Documentation |
Creates a linear Thompson Sampling model for multi-armed bandit problems.
LinTSModel(
K,
p = NULL,
floor_start,
floor_decay,
num_mc = 100,
is_contextual = TRUE
)
K |
Integer. Number of arms. Must be a positive integer. |
p |
Integer. Dimension of the contextual vector, if |
floor_start |
Numeric. Specifies the initial value for the assignment probability floor. It ensures that at the start of the process, no assignment probability falls below this threshold. Must be a positive number. |
floor_decay |
Numeric. Decay rate of the floor. The floor decays with the number of observations in the experiment such that at each point in time, the applied floor is: |
num_mc |
Integer. Number of Monte Carlo simulations used to approximate the expected reward. Must be a positive integer. Default is 100. |
is_contextual |
Logical. Indicates whether the problem is contextual or not. Default is |
A list containing the parameters of the LinTSModel.
model <- LinTSModel(K = 5, p = 3, floor_start = 1/5, floor_decay = 0.9, num_mc = 100,
is_contextual = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.