Skip to content

Commit

Permalink
switch benchmarks back to previous syntax
Browse files Browse the repository at this point in the history
otherwise they won't work on main
  • Loading branch information
sbfnk committed Nov 26, 2024
1 parent 2a2d403 commit deedb9e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion inst/dev/benchmark-functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ create_profiles <- function(dir = file.path("inst", "stan"),
data = reported_cases,
generation_time = gt_opts(fixed_generation_time),
delays = delay_opts(delays),
rt = rt_opts(prior = Normal(mean = 2, sd = 0.2)),
rt = rt_opts(prior = list(mean = 2, sd = 0.2)),
stan = stan_opts(
samples = 1000, chains = 2, object = compiled_model,
cores = 2
Expand Down
10 changes: 5 additions & 5 deletions touchstone/script.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ touchstone::benchmark_run(
data = reported_cases,
generation_time = generation_time_opts(fixed_generation_time),
delays = delay_opts(fixed_delays),
rt = rt_opts(prior = Normal(mean = 2, sd = 0.2)),
rt = rt_opts(prior = list(mean = 2, sd = 0.2)),
stan = stan_opts(
cores = 2, samples = 500, chains = 2,
control = list(adapt_delta = 0.95)),
Expand All @@ -27,7 +27,7 @@ touchstone::benchmark_run(
data = reported_cases,
generation_time = generation_time_opts(example_generation_time),
delays = delays,
rt = rt_opts(prior = Normal(mean = 2, sd = 0.2)),
rt = rt_opts(prior = list(mean = 2, sd = 0.2)),
stan = stan_opts(
cores = 2, samples = 500, chains = 2,
control = list(adapt_delta = 0.95)),
Expand All @@ -42,7 +42,7 @@ touchstone::benchmark_run(
no_delays = { epinow(
data = reported_cases,
generation_time = generation_time_opts(fixed_generation_time),
rt = rt_opts(prior = Normal(mean = 2, sd = 0.2)),
rt = rt_opts(prior = list(mean = 2, sd = 0.2)),
stan = stan_opts(
cores = 2, samples = 500, chains = 2,
control = list(adapt_delta = 0.95)),
Expand All @@ -58,7 +58,7 @@ touchstone::benchmark_run(
data = reported_cases,
generation_time = generation_time_opts(fixed_generation_time),
delays = delay_opts(fixed_delays),
rt = rt_opts(prior = Normal(mean = 2, sd = 0.2), gp_on = "R0"),
rt = rt_opts(prior = list(mean = 2, sd = 0.2), gp_on = "R0"),
stan = stan_opts(
cores = 2, samples = 500, chains = 2,
control = list(adapt_delta = 0.95)),
Expand All @@ -74,7 +74,7 @@ touchstone::benchmark_run(
data = reported_cases,
generation_time = generation_time_opts(fixed_generation_time),
delays = delay_opts(fixed_delays),
rt = rt_opts(prior = Normal(mean = 2, sd = 0.2), rw = 7),
rt = rt_opts(prior = list(mean = 2, sd = 0.2), rw = 7),
gp = NULL,
stan = stan_opts(
cores = 2, samples = 500, chains = 2,
Expand Down

0 comments on commit deedb9e

Please sign in to comment.