File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11# The COVID Hospitalization Production Forecasting Pipeline.
22source(" scripts/targets-common.R" )
33
4- submit_climatological <- FALSE
4+ submit_climatological <- TRUE
55submission_directory <- Sys.getenv(" COVID_SUBMISSION_DIRECTORY" , " cache" )
66insufficient_data_geos <- c(" as" , " mp" , " vi" , " gu" )
77# date to cut the truth data off at, so we don't have too much of the past
@@ -149,12 +149,12 @@ rlang::list2(
149149 command = {
150150 if (as.Date(forecast_generation_date_int ) < Sys.Date()) {
151151 train_data <- nhsn_archive_data %> %
152- epix_as_of(as.Date(forecast_generation_date_int )) %> %
152+ epix_as_of(min(forecast_date , current_nssp_archive $ versions_end )) %> %
153+ add_season_info() %> %
153154 mutate(
154155 geo_value = ifelse(geo_value == " usa" , " us" , geo_value ),
155156 time_value = time_value - 3
156- ) %> %
157- add_season_info()
157+ )
158158 } else {
159159 train_data <-
160160 nhsn_latest_data %> %
You can’t perform that action at this time.
0 commit comments