Description Usage Arguments Details Value
This function calculates different metrics for all contained forecasts in a dataframe. The different models have to be seperated with the help of the key column.
1 2 | tf_calc_metrics(forecasts, testset, metrics = c("rmse", "mae", "rsq",
"mase", "mape"), detailed = FALSE)
|
forecasts |
The dataframe containing the forecasts. |
testset |
The dataframe containing the testset. |
metrics |
A list with the returned metrics. Following metrics are possible:
|
detailed |
If True the metrics for each article will be returned. |
The metrics are calculated with the help of the yardstick package (https://github.com/tidymodels/yardstick).
The calculated metrics for each method.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.