View source: R/helper_functions.R
get_best_model_names | R Documentation |
Extracts and returns the best engine names from a named list of model workflows.
get_best_model_names(models)
models |
A named list where each element corresponds to an algorithm and contains a list of model workflows.
Each workflow should be compatible with |
For each algorithm, the function extracts the engine names from the model workflows using tune::extract_fit_parsnip
.
It then chooses "randomForest"
if it is available; otherwise, it selects the first non-NA
engine.
If no engine names can be extracted for an algorithm, NA_character_
is returned.
A named character vector. The names of the vector correspond to the algorithm names, and the values represent the chosen best engine name for that algorithm.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.