On 23/02/20 11:42 am, greg holly wrote:

Dear R-Help members;

I have the following error messages when I would like to create
training and testing data for Random Forest.

Your help is highly appreciated.

Regards,
Greg

inTrain <- createDataPartition(a, p = 0.7, list = FALSE)
Error: cannot allocate vector of size 6.5 Gb

What help do you want, exactly? The error message seems pretty clear. Your data set "a" is such that trying to apply the function results in asking for more memory than can be allocated.

Without knowing something about "a" it is impossible to say more. Members of this list do not, as far as I know, have psychic powers.

cheers,

Rolf Turner

--
Honorary Research Fellow
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.

Reply via email to