| compute_forecast_metrics | R Documentation |
Compute MASE, sMAPE, and RMSE for a forecast
compute_forecast_metrics(actual_df, forecast_df, label = "Test")
actual_df |
A tibble with |
forecast_df |
A tibble with |
label |
Character scalar identifying this evaluation (shown as the
|
A tibble with columns Set, Metric ("MASE", "sMAPE (%)",
"RMSE"), and Value – NA for all three if fewer than 2 rows
overlap.
ds <- as.Date("2024-01-01") + 0:9
actual_df <- tibble::tibble(ds = ds, y = 1:10)
forecast_df <- tibble::tibble(ds = ds, yhat = 1:10 + 0.5)
compute_forecast_metrics(actual_df, forecast_df, label = "Test")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.