[R] ipred bagging segfault on 64 bit linux build

jamesmcc jlmccreight at gmail.com
Fri Sep 11 22:02:44 CEST 2009


I wanted to report this issue here so others may not find themselves alone
and as the author is apparently active on the list.

I havent done an exhaustive test by any means, cause I dont have time. But
here's a small example. Apparently the "ns" argument is the one that is
killing it. I've gotten several different segfault messages, the only other
one I remember said "out of memory". This one is probably most common from
the about 10 segfaults I've had. 

 *** caught segfault ***
address(nil), cause 'unknown'


I'm working on a 64bit build of R 2.8.1 on a linux machine. If you want more
details, I can surely get them.

It happens on the last line for the following for all different valies of
ns:

library(rpart)
library(ipred)

data("Forbes2000", package="HSAUR")
Forbes2000 <- subset(Forbes2000, !is.na(profits))
datasize=length(Forbes2000$profits)
f <- rpart(profits ~ assets + marketvalue + sales, data=Forbes2000)

fb <- bagging(profits ~ assets + marketvalue + sales, data=Forbes2000)
fb <- bagging(profits ~ assets + marketvalue + sales, data=Forbes2000,
              nbagg=100,coob=TRUE)
fb <- bagging(profits ~ assets + marketvalue + sales, data=Forbes2000,
              nbagg=100,coob=TRUE, ns=round(.9*datasize))

-- 
View this message in context: http://www.nabble.com/ipred-bagging-segfault-on-64-bit-linux-build-tp25407509p25407509.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list