Skip to content

Commit ab1c552

Browse files
committed
Minor documentation update
Fixes #14
1 parent 1bbfbd6 commit ab1c552

16 files changed

+101
-14
lines changed

R/bandit_offline_direct_method.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ OfflineDirectMethodBandit <- R6::R6Class(
140140
#' Policy subclass examples: \code{\link{EpsilonGreedyPolicy}}, \code{\link{ContextualLinTSPolicy}}
141141
#'
142142
#' @examples
143+
#'
143144
#' \dontrun{
144145
#'
145146
#' library(contextual)
@@ -166,6 +167,7 @@ OfflineDirectMethodBandit <- R6::R6Class(
166167
#' model_f <- function(arm) glm(f, data=data[trt==arm],
167168
#' family=binomial(link="logit"),
168169
#' y=FALSE, model=FALSE)
170+
#'
169171
#' arms <- sort(unique(data$trt))
170172
#' model_arms <- lapply(arms, FUN = model_f)
171173
#'
@@ -198,7 +200,7 @@ OfflineDirectMethodBandit <- R6::R6Class(
198200
#'
199201
#' # plot the results
200202
#' plot(sim, type = "cumulative", regret = FALSE, rate = TRUE, legend_position = "bottomright")
201-
#' plot(sim, type = "arms", limit_agents = "LinUCB", legend_position = "topright")b
203+
#' plot(sim, type = "arms", limit_agents = "LinUCB", legend_position = "topright")
202204
#'
203205
#' }
204206
NULL

_pkgdown.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ reference:
7474
- title: "Utility functions"
7575
desc: "Contextual utility functions."
7676
contents:
77+
- data_table_factors_to_numeric
78+
- get_global_seed
79+
- set_global_seed
7780
- get_arm_context
7881
- get_full_context
7982
- dec<-

docs/articles/introduction.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/EpsilonFirstPolicy.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/EpsilonGreedyPolicy.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/Exp3Policy.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/GradientPolicy.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)