Re: [R] Prediction-class ROCR

2009-03-24 Thread Regina Beretta Mazaro
azaro. > Date: Thu, 19 Mar 2009 10:14:00 +0100 > Subject: Re: [R] Prediction-class ROCR > From: tobias.s...@gmail.com > To: rberet...@hotmail.com > CC: r-help@r-project.org > > Regina, > > to get a simple ROC curve, use the following sequence of commands: > pred <-

Re: [R] Prediction-class ROCR

2009-03-19 Thread Tobias Sing
Regina, to get a simple ROC curve, use the following sequence of commands: pred <- prediction(predictions, labels) perf <- performance(pred, "tpr", "fpr") plot(perf) In the first line, 'predictions' are the raw predictions (usually numerical) of your classifier, and labels (as you correctly guesse