powered by
Helper function to return only the scoring rules selected by the user from a list of possible functions.
select_metrics(metrics, select = NULL, exclude = NULL)
A list of scoring functions.
A character vector of scoring rules to select from the list. If select is NULL (the default), all possible scoring rules are returned.
select
NULL
A character vector of scoring rules to exclude from the list. If select is not NULL, this argument is ignored.
select_metrics( metrics = get_metrics(example_binary), select = "brier_score" ) select_metrics( metrics = get_metrics(example_binary), exclude = "log_score" )
Run the code above in your browser using DataLab