View source: R/use_ensemble_criteria.R
use_ensemble_criteria | R Documentation |
Load models according to inclusion criteria before ensembling
use_ensemble_criteria(
forecasts,
exclude_models = NULL,
exclude_designated_other = TRUE,
return_criteria = TRUE,
eval_dir = here::here("evaluation", "weekly-summary"),
rel_wis_cutoff = Inf,
config_file = here::here("project-config.json")
)
forecasts |
|
exclude_models |
optional character vector to exclude over all dates, or data.frame with cols model and forecast_date, to exclude for specific dates |
exclude_designated_other |
logical: whether to exclude models designated
as "other" in their metadata file (default |
return_criteria |
logical : whether to return a model/inclusion criteria
grid as well as the ensemble forecast (default |
eval_dir |
character: the path in which to look for evaluation csv files |
rel_wis_cutoff |
numeric: any model with relative WIS greater than this value will be excluded |
config_file |
Path to the config file |
Steps: Currently, models included based on having:
All quantiles
4 horizons
Not manually specified for exclusion
Not the hub ensemble
if return_criteria = TRUE
, a list with the following elements
"ensemble" : tibble : a single ensemble forecast
"criteria": tibble : all candidate models against criteria for inclusion in ensemble (all locations and horizons)
"forecast_date" : date : latest date
if return_criteria = FALSE
, a tibble of a single ensemble forecast
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.