Skip to content

Commit cf8f741

Browse files
committed
Minor updates
1 parent f600344 commit cf8f741

File tree

4 files changed

+7
-11
lines changed

4 files changed

+7
-11
lines changed

R/functions_generic.R

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,7 @@ plot.History <- function(x, ...) {
254254
xlab = xlab,
255255
ylab = ylab,
256256
limit_agents = limit_agents,
257-
limit_context = limit_context,
258-
trunc_over_agents = trunc_over_agents,
259-
trunc_per_agent = trunc_per_agent
260-
257+
limit_context = limit_context
261258
)
262259
}
263260
}

R/plot.R

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,7 @@ Plot <- R6::R6Class(
260260
legend_title = NULL,
261261
limit_context = NULL,
262262
smooth = FALSE,
263-
limit_agents = NULL,
264-
trunc_over_agents = TRUE,
265-
trunc_per_agent = TRUE) {
263+
limit_agents = NULL) {
266264

267265
self$history <- history
268266

@@ -556,7 +554,6 @@ Plot <- R6::R6Class(
556554

557555
data.table::setorder(data, agent, t)
558556

559-
560557
if (isTRUE(smooth)) {
561558
for (agent_name in agent_levels) {
562559
data[data$agent == agent_name, c("t", line_data_name) :=

demo/demo_epsilon_greedy_to_epoch_greedy_policy.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,5 @@ plot(history, type = "arms")
7575
plot(history, type = "arms", limit_context= c("X.1"))
7676
plot(history, type = "arms", limit_context= c("X.2"))
7777

78+
79+

demo/replication_kruijswijk_2019/lif_offline.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ bandit <- OnlineOfflineContinuumBandit$new(delta = 0.1, horizon = ho
3636

3737

3838
agents <- list(Agent$new(UniformRandomContinuousPolicy$new(), bandit),
39-
Agent$new(ThompsonBayesianLinearPolicy$new(), bandit))
40-
#Agent$new(LifPolicy$new(int_time, amplitude, learn_rate, omega, x0_start), bandit),
41-
#Agent$new(EFirstRegressionPolicy$new(epsilon = 100), bandit))
39+
Agent$new(ThompsonBayesianLinearPolicy$new(), bandit),
40+
Agent$new(LifPolicy$new(int_time, amplitude, learn_rate, omega, x0_start), bandit),
41+
Agent$new(EFirstRegressionPolicy$new(epsilon = 100), bandit))
4242

4343

4444
history <- Simulator$new(agents = agents,

0 commit comments

Comments
 (0)