get_metric: Load built-in metrics

Description Usage Arguments Value

Description

Load the selected built-in metric as a 'metric-list' to be used in Tuning function or directly by the user using $Metric. Use names(get_metric()) to have a list of all the built-in metrics.

Usage

1
get_metric(metric = NULL, list_format = FALSE)

Arguments

metric

a character. The metric to be used.

list_format

logical, to return the result as a list

Value

a metric list. $name is the name used to access the metric with get_metric function. $label is the full name of the metric. $Metric is either an internal metric or external metric function and gives a score to the given partition (and some given data if it's an internal metric). $maximize is a logical value indicating if the score returned is best when maximized (TRUE) or when minimized (FALSE).


agapow/subtypr documentation built on May 5, 2019, 1:33 a.m.