Description Arguments Details Fields See Also Examples
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.
formula
an object of class "formula" (or one that can be coerced to that class): a symbolic description of the model that is fitted.
contrasts
an optional list. See the contrasts.arg
of model.matrix.default
.
newLevels
a logical value indicating whether to allow for new factor levels when adding samples.
xlevels
if newLevels
is false, a record of the levels of the factors used in fitting.
currentJob
a numeric with the id of the current job.
currentModel
the prototype of the latest fit.
currentParams
a list of tuning parameters.
banditData
the bandit's data.
statistics
a character vector of statistics to be computed when adding outcomes
1 | vignette("introduction", "banditr")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.