get_metrics: Get metrics

View source: R/metrics.R

get_metricsR Documentation

Get metrics

Description

Generic function to to obtain default metrics available for scoring or metrics that were used for scoring.

  • If called on a forecast object it returns a list of functions that can be used for scoring.

  • If called on a scores object (see score()), it returns a character vector with the names of the metrics that were used for scoring.

See the documentation for the actual methods in the ⁠See Also⁠ section below for more details. Alternatively call ⁠?get_metrics.<forecast_type>⁠ or ?get_metrics.scores.

Usage

get_metrics(x, ...)

Arguments

x

A forecast or scores object.

...

Additional arguments passed to the method.

See Also

Other get_metrics functions: get_metrics.forecast_binary(), get_metrics.forecast_nominal(), get_metrics.forecast_ordinal(), get_metrics.forecast_point(), get_metrics.forecast_quantile(), get_metrics.forecast_sample(), get_metrics.scores()


epiforecasts/scoringutils documentation built on Dec. 11, 2024, 11:12 a.m.