apply_metrics | R Documentation |
This helper function applies scoring rules (stored as a list of
functions) to a data table of forecasts. apply_metrics
is used within
score()
to apply all scoring rules to the data.
Scoring rules are wrapped in run_safely()
to catch errors and to make
sure that only arguments are passed to the scoring rule that are actually
accepted by it.
apply_metrics(forecast, metrics, ...)
forecast |
A forecast object (a validated data.table with predicted and observed values). |
metrics |
A named list of scoring functions. Names will be used as
column names in the output. See |
... |
Additional arguments to be passed to the scoring rules. Note that
this is currently not used, as all calls to |
A data table with the forecasts and the calculated metrics.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.