I'm trying to use ROCR to create a simple cutoff vs recall plot (recall at p) on the example ROCR.simple dataset: library(ROCR) data(ROCR.simple) pred <- prediction(ROCR.simple$predictions, ROCR.simple$labels) perf <- performance(pred, "rec") plot(perf) But R crashes on me on the last line. I'm using R 2.14.1, ROCR 1.0-4. ?Any ideas? Thanks in advance. -- Yang Zhang http://yz.mit.edu/
Works fine for me. sessionInfo()? Michael On Wed, Feb 8, 2012 at 8:00 PM, Yang Zhang <yanghatespam at gmail.com> wrote:> I'm trying to use ROCR to create a simple cutoff vs recall plot > (recall at p) on the example ROCR.simple dataset: > > library(ROCR) > data(ROCR.simple) > pred <- prediction(ROCR.simple$predictions, ROCR.simple$labels) > perf <- performance(pred, "rec") > plot(perf) > > But R crashes on me on the last line. > > I'm using R 2.14.1, ROCR 1.0-4. ?Any ideas? ?Thanks in advance. > > -- > Yang Zhang > http://yz.mit.edu/ > > ______________________________________________ > R-help at 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.
On Feb 8, 2012, at 8:00 PM, Yang Zhang wrote:> I'm trying to use ROCR to create a simple cutoff vs recall plot > (recall at p) on the example ROCR.simple dataset: > > library(ROCR) > data(ROCR.simple) > pred <- prediction(ROCR.simple$predictions, ROCR.simple$labels) > perf <- performance(pred, "rec") > plot(perf) > > But R crashes on me on the last line.Define "crash". please (...as well as answering the sessionInfor() request.)> > I'm using R 2.14.1, ROCR 1.0-4. Any ideas? Thanks in advance. > > -- > Yang Zhang > http://yz.mit.edu/ > > ______________________________________________ > R-help at 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.David Winsemius, MD West Hartford, CT
Maybe Matching Threads
- ROCR package finding maximum accuracy and optimal cutoff point
- ROCR - confidence interval for Sens and Spec
- pipe data from plot(). was: ROCR.plot methods, cross validation averaging
- ROCR - best sensitivity/specificity tradeoff?
- Extracting slots from ROCR prediction objects