| new_metric | R Documentation |
Internal helper for constructing metric function objects.
new_metric(name, fn, task = "both", parameters = list())
name |
A character string specifying the metric name. |
fn |
A function that computes the metric from observed and predicted values. |
task |
A character string specifying the supported task. |
parameters |
A list of metric-specific parameters. |
An object of class "met_metric".
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.