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 [[alternative HTML version deleted]]
Rolf Turner
2020-Feb-22 23:21 UTC
[R] [FORGED] Error: cannot allocate vector of size 6.5 Gb
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 GbWhat 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
Are you running the 32-bit or 64-bit version of R? The 32-bit version cannot allocate that much space; on Windows, the maximum contiguous space that can ever be allocated in a 32-bit process is a little over 1Gbyte, on Unix it's larger but cannot go over the 32-bit address space limit of 4Gbytes. Cheers, - Peter On Sat, 22 Feb 2020 at 22:43, greg holly <mak.hholly at gmail.com> 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 > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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. >[[alternative HTML version deleted]]