Skip to content

Commit 4957ccc

Browse files
committed
a
1 parent 80bdcaa commit 4957ccc

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

R/forecasters/forecaster_scaled_pop.R

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,14 @@ scaled_pop <- function(epi_data,
142142
)
143143
}
144144

145+
df <- preproc %>%
146+
prep(epi_data) %>%
147+
bake(epi_data)
148+
write_rds(df, "df2.rds")
149+
150+
df1 <- read_rds("df1.rds")
151+
df2 <- read_rds("df2.rds")
152+
145153
# with all the setup done, we execute and format
146154
pred <- run_workflow_and_format(preproc, postproc, trainer, season_data, epi_data)
147155
# now pred has the columns

scripts/covid_hosp_explore.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ fetch_args <- epidatr::fetch_args_list(return_empty = FALSE, timeout_seconds = 4
1919
# with prototyping the pipeline.
2020
dummy_mode <- as.logical(Sys.getenv("DUMMY_MODE", FALSE))
2121
# For testing, reduce dates
22-
forecast_generation_dates <- forecast_generation_dates[1:10]
23-
forecast_dates <- forecast_dates[1:10]
22+
forecast_generation_dates <- forecast_generation_dates[3]
23+
forecast_dates <- forecast_dates[3]
2424

2525

2626
# ================================ FORECASTER PARAMETERS ====================
@@ -457,6 +457,8 @@ forecasts_and_scores <- tar_map(
457457
# if (aheads == 14) {
458458
# browser()
459459
# }
460+
461+
browser()
460462
out <- epix_slide_simple(
461463
joined_archive_data,
462464
forecaster_fn,

0 commit comments

Comments
 (0)