Selects best model by F1 score, AUPRC, MCC, or balanced accuracy.
selectBestModel(tune_res, wflow, select_best_metric = "mcc")Results of grid tuning, such as the output of tuneGrid()
A workflows object, such as the output of buildWflow()
rlang::chr Metric to select best model: "f_meas", "pr_auc", "mcc", or "bal_accuracy"
Best model workflow