Closed hassannasir closed 3 years ago
The problem here is that readr::spec()
is overriding the yardstick sensitivity metric. I will need to go in and edit this in the course itself, but for now to make things run locally for you, try this:
set.seed(234)
rf_res <- vote_wf %>%
fit_resamples(
vote_folds,
metrics = metric_set(roc_auc, sensitivity, specificity),
control = control_resamples(save_pred = TRUE)
)
I am trying to run the following code from Chapter 3 on my machine.
And receiving the following errors related to metrics arguments:
The same happens when I am running the glm model.
If I remove the metrics argument, everything works fine. But then I have to find alternative ways to computing roc_auc, sens and spec (e.g. as shown by @juliasilge elsewhere).