Generic C-MAB Simulation
1 | sim_bandit(nsteps, J, means, sd, bas_type = "poly", alpha = 1, b = 1)
|
nsteps |
The number of steps in the Simulation. |
J |
The number of basis functions to be used in the model. |
means |
A list containing mean-reward functions for each lever. |
sd |
A vector with the standard deviation of each lever. |
bas_type |
Either "fourier" or "poly". |
alpha |
Parameter to control the rate of decay in the prior variance. |
b |
Hyper-parameter of the gamma distribution. Directly influences the rate of exploration in the simulation. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.