[R] randomForest: too many element specified?

Liaw, Andy andy_liaw at merck.com
Mon Jan 17 14:48:01 CET 2005


> From: luk
> 
> When I run randonForest with a 169453x5 matrix, I got the 
> following message. 
> 
> Error in matrix(0, n, n) : matrix: too many elements specified
> 
> Can you please advise me how to solve this problem?
>  
> Thanks,
>  
> Lu

1.  When asking new questions, please don't reply to other posts.

2.  When asking questions like these, please do show the commands you used.

My guess is that you asked for the proximity matrix, or is running
unsupervised randomForest (by not providing a response vector).  This will
requires a couple of n by n matrices to be created (on top of other things),
n being 169453 in this case.  To store a 169453 x 169453 matrix in double
precision, you need 169453^2 * 8 bytes, or or nearly 214 GB of memory.  Even
if you have that kind of hardware, I doubt you'll be able to make much sense
out of the result.

Andy

 
> Uwe Ligges <ligges at statistik.uni-dortmund.de> wrote:
> Vera Hofer wrote:
> 
> > Dear colleagues,
> > 
> > I have a great problem in using "expression" for axes 
> labels. I want the 
> > labels in bold face (i.e.: par(font.lab=2)). When typing
> > 
> > boxplot(y ~ groups, names = "" , xlab = "", ylab = "", axes = F)
> > axis(side=1, at=c(1,2), xlab=c(expression(H[2]*O),"others")),
> 
> 1. If you don't mean "labels" instead of "xlab" in the axis() 
> call, use 
> xlab in the boxplot() call or in a call to title() (but then, 
> you cannot 
> use c(expression(), ...).
> 
> 2. See ?plotmath and use, e.g., bold(H[2]*O) ...
> 
> Uwe Ligges
> 
> 
> > I do not get a bold face labelling. Does anyone know, how I 
> could proceed?
> > Thank you very much.
> > 
> > Best regards
> > V.H.
> > 
> > ______________________________________________
> > R-help at stat.math.ethz.ch mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide! 
> > http://www.R-project.org/posting-guide.html
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html
> 
> 		
> 
> ---------------------------------
> 
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html
> 
>




More information about the R-help mailing list