However, I am not seeing the raw probabilities to create a precision-recall curve. I just see a .pred_class which is a 0/1 and another column for the true label. Do I have to choose the best model and then run a similar code using fit_resamples() instead?
I can't be sure where your issue is coming from without access to your rf_wf and auction_folds objects, though. If this doesn't address your problem, could you please provide a minimal reprex (reproducible example)? A reprex will help me troubleshoot and fix your issue more quickly.
What you have produced is exactly what I'm seeing. I am using metric_set(f_meas,precision,recall). Maybe I will try pr_auc and see if I get the probabilities back. Thanks. I will also try fit_resamples() with the best model and see if that does anything.
What you have produced is exactly what I'm seeing.
The spacing turned out a bit weird with the reprex frame—you can scroll down from within and see how I fix the issue.
re: your chosen metrics, this makes sense:
library(yardstick)
#> For binary classification, the first factor level is assumed to be the event.
#> Use the argument `event_level = "second"` to alter this as needed.
metric_set(f_meas,precision,recall)
#> # A tibble: 3 Ă— 3
#> metric class direction
#> <chr> <chr> <chr>
#> 1 f_meas class_metric maximize
#> 2 precision class_metric maximize
#> 3 recall class_metric maximize