Below is the sample code I have found. I am not clear how to interpret with my dataset. Kindly help
What did ROCR.simple$predictions contains in my way of understanding it is the predictions done. Correct me if am wrong. Else help me wit some example.
library(ROCR)
data(ROCR.simple)
pred <- prediction( ROCR.simple$predictions, ROCR.simple$labels )
pred2 <- prediction(abs(ROCR.simple$predictions +
rnorm(length(ROCR.simple$predictions), 0, 0.1)),
ROCR.simple$labels)
perf <- performance( pred, "tpr", "fpr" )
perf2 <- performance(pred2, "tpr", "fpr")
plot( perf, colorize = TRUE)
plot(perf2, add = TRUE, colorize = TRUE)
• 0 views
•
link
try this -- and adapt for your dataset I have posted a redable/formatted version below