TidyModels Best_Tune - Retrieve Best

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

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.