I'm following along in Julia Silge's amazing tidymodel blogs. It occurred to me that I don't know which outcome level for a classification problem is the positive class (class of interest). Suppose I have an outcome variable with factor levels: "No Repair" and "Repair". When I run the code below is the sensitivity calculated with "No Repair" as the positive class since it's the first factor level?
last_bagtree_fit<-last_fit(repair_wf,repair_split,
metrics = metric_set(sensitivity,specificity,roc_auc))
Suppose I run the code below. Does it relevel the factor so that "Repair" is the positive class? Thanks.
repair_recipe <- recipe(Repair ~ ., data = repair_train) %>%
step_relevel(Repair,ref_level = "Repair")