[R] randomForest: help with combine() function
Liaw, Andy
andy_liaw at merck.com
Sun Dec 12 05:28:13 CET 2010
combine() is meant to be used on randomForest objects that were built
from identical training data.
Andy
> -----Original Message-----
> From: r-help-bounces at r-project.org
> [mailto:r-help-bounces at r-project.org] On Behalf Of Dennis Duro
> Sent: Friday, December 10, 2010 11:59 PM
> To: r-help at r-project.org
> Subject: [R] randomForest: help with combine() function
>
> I've built two RF objects (RF1 and RF2) and have tried to combine
> them, but I get the following error:
>
> Error in rf$votes + ifelse(is.na(rflist[[i]]$votes), 0,
> rflist[[i]]$votes) :
> non-conformable arrays
> In addition: Warning message:
> In rf$oob.times + rflist[[i]]$oob.times :
> longer object length is not a multiple of shorter object length
>
>
> Both RF models use the same variables, although the NAs in both models
> likely differ (using na.roughfix in both models). I assume this is
> part of the reason that my arrays are "non-conformable". If so, does
> anyone have any suggestions on how to combine in such a situation? How
> similar do RFs have to be in order to combine?
>
> Cheers
>
> ______________________________________________
> 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.
>
Notice: This e-mail message, together with any attachme...{{dropped:11}}
More information about the R-help
mailing list