| score_forecasts | R Documentation |
Computes standardized accuracy metrics from backtesting results.
score_forecasts(bt, metrics = c("mae", "rmse", "coverage", "wis"))
bt |
An |
metrics |
Character vector of metrics to compute:
|
A tibble with columns: engine, horizon, metric,
value.
Bracher J, Ray EL, Gneiting T, Reich NG (2021). Evaluating epidemic forecasts in an interval format. PLoS Computational Biology, 17(2):e1008618. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1371/journal.pcbi.1008618")}
compare_models() to rank engines based on scores.
sim <- simulate_dynamics(n_lineages = 3,
advantages = c("A" = 1.2, "B" = 0.8),
n_timepoints = 20, seed = 1)
bt <- backtest(sim, engines = "mlr",
horizons = c(7, 14), min_train = 42)
score_forecasts(bt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.