Skip to content

Commit

Permalink
Use generation_time_opts in touchstone as currently not in main
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmbaazam committed Jul 1, 2024
1 parent befe151 commit 950f40a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions touchstone/script.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ touchstone::benchmark_run(
expr_before_benchmark = { source("touchstone/setup.R") },
default = { epinow(
data = reported_cases,
generation_time = gt_opts(fixed_generation_time),
generation_time = generation_time_opts(fixed_generation_time),
delays = delay_opts(fixed_delays),
rt = rt_opts(prior = list(mean = 2, sd = 0.2)),
stan = stan_opts(
Expand All @@ -25,7 +25,7 @@ touchstone::benchmark_run(
expr_before_benchmark = { source("touchstone/setup.R") },
uncertain = { epinow(
data = reported_cases,
generation_time = gt_opts(example_generation_time),
generation_time = generation_time_opts(example_generation_time),
delays = delays,
rt = rt_opts(prior = list(mean = 2, sd = 0.2)),
stan = stan_opts(
Expand All @@ -41,7 +41,7 @@ touchstone::benchmark_run(
expr_before_benchmark = { source("touchstone/setup.R") },
no_delays = { epinow(
data = reported_cases,
generation_time = gt_opts(fixed_generation_time),
generation_time = generation_time_opts(fixed_generation_time),
rt = rt_opts(prior = list(mean = 2, sd = 0.2)),
stan = stan_opts(
cores = 2, samples = 500, chains = 2,
Expand All @@ -56,7 +56,7 @@ touchstone::benchmark_run(
expr_before_benchmark = { source("touchstone/setup.R") },
stationary = { epinow(
data = reported_cases,
generation_time = gt_opts(fixed_generation_time),
generation_time = generation_time_opts(fixed_generation_time),
delays = delay_opts(fixed_delays),
rt = rt_opts(prior = list(mean = 2, sd = 0.2), gp_on = "R0"),
stan = stan_opts(
Expand All @@ -72,7 +72,7 @@ touchstone::benchmark_run(
expr_before_benchmark = { source("touchstone/setup.R") },
random_walk = { epinow(
data = reported_cases,
generation_time = gt_opts(fixed_generation_time),
generation_time = generation_time_opts(fixed_generation_time),
delays = delay_opts(fixed_delays),
rt = rt_opts(prior = list(mean = 2, sd = 0.2), rw = 7),
gp = NULL,
Expand Down

0 comments on commit 950f40a

Please sign in to comment.