Skip to content

Commit 8ce7082

Browse files
committed
always load both train and test input data
1 parent 8a7167f commit 8ce7082

File tree

1 file changed

+3
-6
lines changed
  • backfill_corrections/delphiBackfillCorrection/R

1 file changed

+3
-6
lines changed

backfill_corrections/delphiBackfillCorrection/R/io.R

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,9 @@ subset_valid_files <- function(files_list, file_type = c("daily", "rollup"), par
119119
}
120120
)
121121

122-
# Start_date depends on if we're doing model training or just corrections.
123-
n_addl_days <- params$ref_lag
124-
if (params$train_models) {
125-
n_addl_days <- n_addl_days + params$training_days
126-
}
127-
122+
## TODO: right now, this gets both training and testing data regardless of
123+
# which mode is selected
124+
n_addl_days <- params$ref_lag + params$training_days
128125
start_date <- TODAY - n_addl_days
129126
end_date <- TODAY - 1
130127

0 commit comments

Comments
 (0)