Skip to content

ROCR crashes for simple recall plot

4 messages · Yang Zhang, R. Michael Weylandt, David Winsemius

#
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.
#
Works fine for me.

sessionInfo()?

Michael
On Wed, Feb 8, 2012 at 8:00 PM, Yang Zhang <yanghatespam at gmail.com> wrote:
#
On Feb 8, 2012, at 8:00 PM, Yang Zhang wrote:

            
Define "crash". please (...as well as answering the sessionInfor()  
request.)
David Winsemius, MD
West Hartford, CT
#
On Wed, Feb 8, 2012 at 6:46 PM, David Winsemius <dwinsemius at comcast.net> wrote:
By crash I mean the rsession process spins the CPU for about 5-10
seconds (all attributed to in-kernel time though - maybe coredumping
somewhere?) before the process terminates.  It may be a sigsegv, but
I'm not sure.
R version 2.14.1 (2011-12-22)
Platform: x86_64-pc-linux-gnu (64-bit)

locale:
[1] C

attached base packages:
[1] grid      stats     graphics  grDevices utils     datasets
methods   base

other attached packages:
 [1] e1071_1.5-27      class_7.3-2       ROCR_1.0-4
gplots_2.10.1     KernSmooth_2.23-7
 [6] caTools_1.12      bitops_1.0-4.1    gdata_2.8.2
gtools_2.6.2      Kendall_2.2
[11] data.table_1.6.6  glmnet_1.7.1      doMC_1.2.2
multicore_0.1-5   Matrix_1.0-3
[16] caret_5.13-20     foreach_1.3.2     codetools_0.2-8
iterators_1.0.5   cluster_1.14.1
[21] reshape_0.8.4     plyr_1.6          lattice_0.20-0

loaded via a namespace (and not attached):
[1] boot_1.3-4   tools_2.14.1