Description Usage Arguments Value
View source: R/stacking-utils.R
Assemble leave-one-season-out or test phase predictions made by kde, kcde, and sarima models on training data.
1 2 3 4 5 | assemble_predictions(preds_path = "inst/estimation/loso-predictions",
regions = c("National", paste0("Region", 1:10)), seasons = "*",
models = c("kde", "kcde", "sarima"), prediction_targets = c("onset",
"peak_week", "peak_inc", "ph_1_inc", "ph_2_inc", "ph_3_inc", "ph_4_inc"),
prediction_types = c("log_score", "competition_log_score", "bin_log_probs"))
|
preds_path |
path to leave-one-season-out or test phase predictions. |
regions |
character vector specifying regions for which to get predictions, "National" or "Regionk" for k in 1, ..., 10. |
seasons |
character vector specifying seasons for which to get predictions, "2011/2012" or "2011-2012" or "*" for all seasons |
models |
character vector specifying models for which to get predictions, "kde", "kcde", or "sarima" |
prediction_targets |
character vector specifying prediction targets, "onset", "peak_week", "peak_inc", "ph_1_inc", ..., "ph_4_inc" |
prediction_types |
character vector specifying prediction types, "log_score", "competition_log_score", or "bin_log_probs" |
a data frame with predictions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.