metricinfo: Display Performance Metric Information

Description Usage Arguments Value Examples

View source: R/metricinfo.R

Description

Display information about metrics provided by the MachineShop package.

Usage

1

Arguments

...

metric functions or function names; observed responses; observed and predicted responses; confusion or resample results for which to display information. If none are specified, information is returned on all available metrics by default.

Value

List of named metric elements each containing the following components:

label

character descriptor for the metric.

maximize

logical indicating whether higher values of the metric correspond to better predictive performance.

arguments

closure with the argument names and corresponding default values of the metric function.

response_types

data frame of the observed and predicted response variable types supported by the metric.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## All metrics
metricinfo()

## Metrics by observed and predicted response types
names(metricinfo(factor(0)))
names(metricinfo(factor(0), factor(0)))
names(metricinfo(factor(0), matrix(0)))
names(metricinfo(factor(0), numeric(0)))

## Metric-specific information
metricinfo(auc)

MachineShop documentation built on June 18, 2021, 9:06 a.m.