# \dontshow{
data.table::setDTthreads(2) # restricts number of cores used on CRAN
# }
library(magrittr) # pipe operator
scores <- example_sample_continuous %>%
as_forecast_sample() %>%
score()
# get scores by model
summarise_scores(scores, by = "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 = "model") %>%
summarise_scores(fun = signif, digits = 2)
Run the code above in your browser using DataLab