Skip to content

Commit 116a2e9

Browse files
committed
v0.4.4
只有run_m里加入chunk = 9是有效的. 到estimate的地方, 加入params参数是无效的, 因为model已经固定了
1 parent 2951276 commit 116a2e9

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

R/tool_fake_block.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@
2727
}
2828

2929
return(data)
30-
}
30+
}

tests/testthat/test-estimate_2_ABC.R

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ testthat::test_that("ABC", {
1717
),
1818

1919
models = list(multiRL::TD, multiRL::RSTD, multiRL::Utility),
20-
params = list(
21-
list(constant = list(chunk = 9)),
22-
list(constant = list(chunk = 9)),
23-
list(constant = list(chunk = 9)),
24-
),
2520
priors = list(
2621
list(
2722
alpha = function(x) {stats::rbeta(n = 1, shape1 = 2, shape2 = 2)},

tests/testthat/test-step_1_run_m.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ testthat::test_that("Epsilon-First, non-priors, on-policy", {
2323
),
2424
constant = list(
2525
seed = 123,
26+
chunk = NULL,
2627
L = 0,
2728
penalty = 1,
2829
Q0 = NaN,
@@ -77,6 +78,7 @@ testthat::test_that("Epsilon-Greedy, priors, on-policy", {
7778
),
7879
constant = list(
7980
seed = 123,
81+
chunk = NULL,
8082
L = 1,
8183
penalty = 1,
8284
Q0 = 0,
@@ -140,6 +142,7 @@ testthat::test_that("Epsilon-Decreasing, priors, off-policy", {
140142
),
141143
constant = list(
142144
seed = 123,
145+
chunk = 9,
143146
L = 2,
144147
penalty = 1,
145148
Q0 = 0,

0 commit comments

Comments
 (0)