View source: R/helper_functions.R
get_best_workflows | R Documentation |
Extracts the best workflows from a nested list of model workflows based on the provided best model names.
get_best_workflows(models, best_model_name)
models |
A nested list of model workflows. Each element should correspond to an algorithm and contain sublists keyed by engine names. |
best_model_name |
A named character vector where the names represent algorithm names and the values represent the chosen best engine for each algorithm. |
The function iterates over each element in best_model_name
and attempts to extract the corresponding workflow from models
using the specified engine. If the workflow for an algorithm-engine pair is not found, a warning is issued and NULL
is returned for that entry.
A named list of workflows corresponding to the best engine for each algorithm. Each list element is named in the format "algorithm (engine)"
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.