Make models into model_list object
as.model_list(
...,
listed_models = NULL,
target = ".outcome",
model_class,
tuned = TRUE,
recipe = NULL,
positive_class = NULL,
model_name = NULL,
best_levels = NULL,
original_data_str,
versions
)
A model_list with child class type_list
caret
-trained models to put into a model list
Use this if your models are already in a list
Quoted name of response variable
"classification" or "regression". Will be determined if not provided
Logical; if FALSE, will have super-class untuned_models
recipe object from prep+_data, or NULL if the data didn't go through prep_data
If classification, the positive outcome class, otherwise NULL
Quoted, name of the model. Defaults to the name of the outcome variable.
best_levels list as attached to data frames from add_best_levels
zero-row data frame with names and classes of all columns except the outcome as they came into either the model training function such as tune_models or prep_data
A list containing the following environmental variables from model training: r_version, hcai_version, and other_packages (a tibble). If not provided, will be extracted from the current session. See healthcareai:::attach_session_info for details