Skip to content

Commit 7288314

Browse files
committed
feat: longer time interval for aheads
1 parent b762470 commit 7288314

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

R/targets_utils.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,13 @@ make_shared_grids <- function() {
183183
tidyr::expand_grid(
184184
forecaster = "scaled_pop",
185185
trainer = c("linreg", "quantreg"),
186-
ahead = 1:4,
186+
ahead = c(1:7, 14, 21, 28),
187187
pop_scaling = c(FALSE)
188188
),
189189
tidyr::expand_grid(
190190
forecaster = "scaled_pop",
191191
trainer = c("linreg", "quantreg"),
192-
ahead = 1:7,
192+
ahead = c(1:7, 14, 21, 28),
193193
lags = list(c(0, 3, 5, 7, 14), c(0, 7, 14)),
194194
pop_scaling = c(FALSE)
195195
),

covid_hosp_explore.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ make_unique_grids <- function() {
99
tidyr::expand_grid(
1010
forecaster = "scaled_pop",
1111
trainer = c("linreg", "quantreg"),
12-
ahead = 1:4,
12+
ahead = c(1:7, 14, 21, 28),
1313
pop_scaling = TRUE
1414
),
1515
tidyr::expand_grid(
1616
forecaster = "scaled_pop",
1717
trainer = c("linreg", "quantreg"),
18-
ahead = 1:7,
18+
ahead = c(1:7, 14, 21, 28),
1919
lags = list(c(0, 3, 5, 7, 14), c(0, 7, 14)),
2020
pop_scaling = TRUE
2121
)

0 commit comments

Comments
 (0)