View source: R/deprecated-template.R
metric_summarizer | R Documentation |
metric_summarizer()
has been soft-deprecated as of yardstick 1.2.0. Please
switch to use class_metric_summarizer()
, numeric_metric_summarizer()
,
prob_metric_summarizer()
, or curve_metric_summarizer()
.
metric_summarizer(
metric_nm,
metric_fn,
data,
truth,
estimate,
estimator = NULL,
na_rm = TRUE,
event_level = NULL,
case_weights = NULL,
...,
metric_fn_options = list()
)
metric_nm |
A single character representing the name of the metric to
use in the |
metric_fn |
The vector version of your custom metric function. It
generally takes |
data |
The data frame with |
truth |
The unquoted column name corresponding to the |
estimate |
Generally, the unquoted column name corresponding to
the |
estimator |
For numeric metrics, this is left as |
na_rm |
A |
event_level |
For numeric metrics, this is left as |
case_weights |
For metrics supporting case weights, an unquoted
column name corresponding to case weights can be passed here. If not |
... |
Currently not used. Metric specific options are passed in
through |
metric_fn_options |
A named list of metric specific options. These
are spliced into the metric function call using |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.