I have somewhat of an odd question.
I'm currently working on a dataset and after training my model, I'm trying to get the correct AUC and I'm using the RocR package to get that value.
Im using these commands
pred <- predict(model, testData,type='prob') pr=prediction(pred[,2],testData$var) prf <- performance(pr, measure = "tpr", x.measure = "fpr") auc <- performance(pr, measure = "auc") auc <- firstname.lastname@example.org[]
I've noticed that whether I add the
type='prob' changes the value of my
auc, meaning that if i predict just the binary output instead of the probabilities, the AUC changes. So my question is which value should I use? I'm a bit lost.