OutOfMemory java heap size
Hi... Currently I am doin the k nearest neighbour classification using java.. The data size for training data set and test data set consist of 10k samples each.. I have to calculate the distance for the data set.. So I create and 2D array to store them as for all samples in training data set have to calculate to each sample in the test data set... So the dimension of my 2d array is dist and this seems to cause the exception... I would like to check whether any1 got an idea to solve this???
Re: OutOfMemory java heap size
Where is the data stored? Or do you have to generate it? The smartest solution is to break it down into chunks, only 1000 rows at a time perhaps.
The lazy solution (assuming your computer has enough RAM) is to just give Java more memory with -Xmx####M