get_best_workflows: Get Best Workflows

View source: R/helper_functions.R

get_best_workflowsR Documentation

Get Best Workflows

Description

Extracts the best workflows from a nested list of model workflows based on the provided best model names.

Usage

get_best_workflows(models, best_model_name)

Arguments

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.

Details

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.

Value

A named list of workflows corresponding to the best engine for each algorithm. Each list element is named in the format "algorithm (engine)".


fastml documentation built on June 11, 2025, 1:07 a.m.