select_metrics {scoringutils} | R Documentation |
Select metrics from a list of functions
Description
Helper function to return only the scoring rules selected by the user from a list of possible functions.
Usage
select_metrics(metrics, select = NULL, exclude = NULL)
Arguments
metrics |
A list of scoring functions. |
select |
A character vector of scoring rules to select from the list. If
|
exclude |
A character vector of scoring rules to exclude from the list.
If |
Value
A list of scoring functions.
Examples
select_metrics(
metrics = get_metrics(example_binary),
select = "brier_score"
)
select_metrics(
metrics = get_metrics(example_binary),
exclude = "log_score"
)
[Package scoringutils version 2.1.0 Index]