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: DEVELOPMENT.md
+4-2
Original file line number
Diff line number
Diff line change
@@ -35,12 +35,14 @@ R -e 'devtools::document()'
35
35
R -e 'pkgdown::build_site()'
36
36
```
37
37
38
-
Note that sometimes the caches from either `pkgdown` or `knitr` can cause difficulties. To clear those, run `make`, with either `clean_knitr`, `clean_site`, or `clean` (which does both).
38
+
Note that sometimes the caches from either `pkgdown` or `knitr` can cause
39
+
difficulties. To clear those, run `make`, with either `clean_knitr`,
40
+
`clean_site`, or `clean` (which does both).
39
41
40
42
If you work without R Studio and want to iterate on documentation, you might
#' See the Classification Vignette for details of how to create a reasonable
348
+
#' See the [Classification chapter from the forecasting book](https://cmu-delphi.github.io/delphi-tooling-book/arx-classifier.html) Vignette for details of how to create a reasonable
351
349
#' baseline for this case. Selecting `"growth_rate"` (the default) uses
352
350
#' [epiprocess::growth_rate()] to create the outcome using some of the
Copy file name to clipboardExpand all lines: R/get_test_data.R
+4-5
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,9 @@
1
1
#' Get test data for prediction based on longest lag period
2
2
#'
3
-
#' Based on the longest lag period in the recipe,
4
-
#' `get_test_data()` creates an [epi_df][epiprocess::as_epi_df]
5
-
#' with columns `geo_value`, `time_value`
6
-
#' and other variables in the original dataset,
7
-
#' which will be used to create features necessary to produce forecasts.
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.
8
7
#'
9
8
#' The minimum required (recent) data to produce a forecast is equal to
10
9
#' the maximum lag requested (on any predictor) plus the longest horizon
0 commit comments