I've been trying to learn the Tidymodels package for the first time and immediately ran into a problem with logistic regression. I keep getting the error message: "Error: In metric: roc_auc" and I can't seem to find an answer for why this isn't working anywhere online. Is there maybe an issue with the data?
Yes, you are right and I just figured out why. So I was following along with a tutorial in one of Julia Silge's Youtube walkthroughs (on a different dataset). I thought she was predicting a three-level factor in her logistic regression model in the video, which led me to believe the engine would just automatically detect multi-level classification. However, your post caused me to go through her video again and this time I realized she actually had a different target variable entirely (which was in fact two-levels).
Drove myself crazy for no reason, but I am happy to know the solution was something so obvious. Thank you for pointing me in the right direction! Happy holiday!