View source: R/tidy_model_stuff.R
best_wflow_preds_vi | R Documentation |
Get "best" parameter sets for each modeling approach (RF, DT, GLM-EN), and also generating metrics of fit on training data
best_wflow_preds_vi( regression_workflow_results, outcome_var, classification = FALSE, metric = "rmse", train_sample = train, test_sample = test, vi = TRUE )
classification |
is a logical to tell us if this is a classification model. in which case we want the ROC curve stuff |
metric |
is our measure of fit, I guess, like rmse or roc_auc |
vi |
if we want variable importance measures |
returns a tibble of the workflow ('output' is a 'fit workflow') with the best parameters, predictions, true outcomes, and some metrics
Used in best_wflow_preds_vi, also... best_dt_preproc <- best_wflow_preds_vi(preproc_results, metric = 'roc_auc', classification = TRUE, outcome_var = "showup", train_sample = eas_all_train, test_sample = eas_all_test)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.