data.table::setDTthreads(1) # only needed to avoid issues on CRAN
library(magrittr) # pipe operator
scores <- score(example_continuous)
summarise_scores(scores)
# summarise over samples or quantiles to get one score per forecast
scores <- score(example_quantile)
summarise_scores(scores)
# get scores by model
summarise_scores(scores, by = c("model"))
# get scores by model and target type
summarise_scores(scores, by = c("model", "target_type"))
# get standard deviation
summarise_scores(scores, by = "model", fun = sd)
# round digits
summarise_scores(scores, by = c("model")) %>%
summarise_scores(fun = signif, digits = 2)
# get quantiles of scores
# make sure to aggregate over ranges first
summarise_scores(scores,
by = "model", fun = quantile,
probs = c(0.25, 0.5, 0.75)
)
# get ranges
# summarise_scores(scores, by = "range")
Run the code above in your browser using DataLab