Hi there, I'm having some difficulty with the ROCR package. I've installed it fine, and the sample data works (ROCR.simple), however when I try to load my own data it complains that there is an error in prediction as the number of classes is not equal to 2. I read the data from a text file which contains one column of probabilities and one column of binary 0 and 1. I then put it into a data file called "prob", and try
pred <- prediction("prob$probabilities", "prob$label") which is when it comes up with an error. I think maybe I'm not importing it properly? probabilities 0.00000 0.00282 0.00001 0.04990 0.00009 label 0 0 0 1 0 Thanks for any assistance -- View this message in context: http://r.789695.n4.nabble.com/ROCR-data-input-tp2328117p2328117.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.