validate_metrics: Validate metrics

View source: R/score.R

validate_metricsR Documentation

Validate metrics

Description

This function validates whether the list of metrics is a list of valid functions.

The function is used in score() to make sure that all metrics are valid functions.

Usage

validate_metrics(metrics)

Arguments

metrics

A named list with metrics. Every element should be a scoring function to be applied to the data.

Value

A named list of metrics, with those filtered out that are not valid functions


epiforecasts/scoringutils documentation built on Nov. 6, 2024, 8:49 a.m.