fit_best_model | R Documentation |
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 )
lasso_wf |
A lasso workflow (including the search space for the model) |
best_lasso |
The best model output for lasso |
rand_wf |
A random forest workflow (including the search space for the model) |
best_rand |
The best model output for random forest |
xg_wf |
An XGBoost workflow (including the search space for the model) |
best_xg |
The best model output for XGBoost |
train_x_class |
Training data for predictors |
train_y_class |
Training data for outcomes |
category |
The target binary category. |
A list output that contains the best output for lasso, random forest, and XGBoost.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.