Confusion Matrix

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Confusion Matrix

I started learning R very recently.

This command is creates a confusion matrix and I'm pretty confused about how it works. Could someone please explain this? And also, how do we choose threshold values?

table(test$violator, as.numeric(predictions >= 0.5))

Thank you!