custom_performance | R Documentation |
This function applies a user-supplied performance metric to a prediction result object.
custom_performance(x, custom_fun, split_list = NULL)
x |
The prediction result object. |
custom_fun |
The function used to compute performance metrics, i.e., |
split_list |
An optional named list of splitting groups. If provided, the performance metric will be computed for each group and returned as a named vector. |
The function allows users to apply a custom performance metric to a prediction result object. If a split list is provided, the performance metric will be computed for each group separately, and the results will be returned as a named vector.
A named vector with the calculated custom performance metric(s).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.