Fit the best model from each algorithm to the data.
fit_best_model(
lasso_wf,
best_lasso,
rand_wf,
best_rand,
xg_wf,
best_xg,
train_x_class,
train_y_class,
category
)
A lasso workflow (including the search space for the model)
The best model output for lasso
A random forest workflow (including the search space for the model)
The best model output for random forest
An XGBoost workflow (including the search space for the model)
The best model output for XGBoost
Training data for predictors
Training data for outcomes
The target binary category.
A list output that contains the best output for lasso, random forest, and XGBoost.