when I run in shiny:
b <- res %>% best_tune() I get back the best roc_auc set of parameters from my res resamples:
A tibble: 1 × 4
trees min_n sample_size .config
1 1 2 0.1 Preprocessor1_Model1
when I run:
b<- <- res %>% best_tune("roc_auc") I get an error:
Warning: Error in get_metric_direction: Please check the value of metric
.
"roc_auc" is a metric in res, so why doesn't best_tune("roc_auc") find the best parameters as best_tune()?
thank