| bandit-class | R Documentation |
A bandit reference class (RC) object.
formula |
an object of class "formula" (or one that can be coerced
to that class): a symbolic description of the model that is fitted. The response
must be named |
data |
a data frame (or object coercible by |
family |
a character string describing the error distribtion and link function
to be used in the model. Can be either |
contrasts |
an optional list. See the |
newLevels |
a logical value indicating whether to allow for new factor levels when adding samples. Default is FALSE. |
db |
an optional named list of arguments passed to |
path |
an optional character string naming a folder open for writing. |
The RC "bandit" class is the main object defined in
banditr. It allows to manage bandit experiments easily. Two
classes inherit from "bandit": the "bandit_ucb"
class for LinUCB algorithms, and the "bandit_thompson" for
Thompson sampling algorithms.
The introductory vignette provides a detailed explanation of bandit algorithms, and
their implementation with banditr. See the Examples section.
formulaan object of class "formula" (or one that can be coerced to that class): a symbolic description of the model that is fitted.
contrastsan optional list. See the contrasts.arg of model.matrix.default.
newLevelsa logical value indicating whether to allow for new factor levels when adding samples.
xlevelsif newLevels is false, a record of the levels of the factors used in fitting.
currentJoba numeric with the id of the current job.
currentModelthe prototype of the latest fit.
currentParamsa list of tuning parameters.
banditDatathe bandit's data.
statisticsa character vector of statistics to be computed when adding outcomes
bandit_ucb, bandit_thompson
vignette("introduction", "banditr")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.