I am trying get a number of performance metrics from a model based on cross validation using the code below
tree_res <- tree_wf %>% tune_grid( resamples = report_resamples, grid = tree_grid, perf = metric_set("roc_auc", "sens", "spec", "kap", "accuracy") )
It returns results for the AUC and the accuracy but tells me that
...are not used in this function but one or more objects were passed: 'perf'
Has anyone seen something like this before?
Am i using it incorrectly?