View source: R/deprecated-template.R
metric_vec_template | R Documentation |
metric_vec_template()
has been soft-deprecated as of yardstick 1.2.0.
Please switch to use check_metric and yardstick_remove_missing functions.
metric_vec_template(
metric_impl,
truth,
estimate,
na_rm = TRUE,
cls = "numeric",
estimator = NULL,
case_weights = NULL,
...
)
metric_impl |
The core implementation function of your custom metric. This core implementation function is generally defined inside the vector method of your metric function. |
truth |
The realized vector of |
estimate |
The realized |
na_rm |
A |
cls |
A character vector of length 1 or 2 corresponding to the
class that |
estimator |
The type of averaging to use. By this point, the averaging
type should be finalized, so this should be a character vector of length 1\.
By default, this character value is required to be one of: |
case_weights |
Optionally, the realized case weights, as a numeric
vector. This must be the same length as |
... |
Extra arguments to your core metric function, |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.