You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: R/get_test_data.R
+7-4Lines changed: 7 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,12 @@
1
1
#' Get test data for prediction based on longest lag period
2
2
#'
3
-
#' If `predict()` is given the full training dataset, it will produce a forecast
4
-
#' for every day which has enough data. For most cases, this is far more
5
-
#' forecasts than is necessary. `get_test_data()` is designed to restrict the given dataset to the minimum amount needed to produce a forecast on the `forecast_date`.
6
-
#' Primarily this is based on the longest lag period in the recipe.
3
+
#' If `predict()` is given the full training dataset, it will produce a
4
+
#' prediction for every `time_value` which has enough data. For most cases, this
5
+
#' generates predictions for `time_values` where the `outcome` has already been
6
+
#' observed. `get_test_data()` is designed to restrict the given dataset to the
7
+
#' minimum amount needed to produce a forecast on the `forecast_date` for future
8
+
#' data, rather than a prediction on past `time_value`s. Primarily this is
9
+
#' based on the longest lag period in the recipe.
7
10
#'
8
11
#' The minimum required (recent) data to produce a forecast is equal to
9
12
#' the maximum lag requested (on any predictor) plus the longest horizon
0 commit comments