Description Usage Arguments Details Value
View source: R/best_summary_stat.R
best_summary_stat
returns the index of an element in a list of "tune"
objects with the best combination of performance statistics.
1 | normalize_summary_stat(tune_list, stat_name)
|
tune_list |
A list of |
stat_name_list |
A character vector of which statistics to consider. The
default is to consider all statistics, provided through the character vector
|
This function is a helper for [tune_helper()]
.
The function relies on [caret::defaultSummary()]
. It calls on
normalize_summary_stat
, which rescales the summary statistics of the list
of objects so all statistics given to the function can be evaluated together.
An integer index of the list where the best model occurs. Uses
which.max
, so if multiple maximums occur, the first will be returned.
If there are issues with finding the maximum, the default return is 1
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.