Info

This question is closed. Reopen it to edit or answer.

Out of memory in Error using svd (Neural Network Clustering) - Matlab 2014a

1 view (last 30 days)
Hello !
I am facing out of memory when training a Self Organizing Map. My input matrix test_set is of size [5x121494 double].
I have tried some of the steps mentioned in http://www.mathworks.se/help/matlab/matlab_prog/resolving-out-of-memory-errors.html which include Increasing System Swap Space and Using the 3GB Switch on Windows Systems, but still no success.
Even more surprisingly I am able to train another matrix of size [33x121494 double] without any OOM issues. My laptop has 4G RAM running on windows 7. Any one else faced a similar issue ? Any suggestions would be highly appreciated.
----------------------------- Below is a code snippet ----------------------------- x = test_set';
% Create a Self-Organizing Map dimension1 = 10; dimension2 = 10; net = selforgmap([dimension1 dimension2]);
% Train the Network [net,tr] = train(net,x);
----------------------------- Below is the stack trace ----------------------------- Error using svd Out of memory. Type HELP MEMORY for your options.
Error in initsompc>configure_weight (line 145) [components,gains,encodedInputsT] = svd(x);
Error in initsompc (line 43) out1 = configure_weight(in2);
Error in initwb>configure_input_weight (line 110) settings = feval(net.inputWeights{i,j}.initFcn,'configure',x);
Error in initwb (line 47) out1 = configure_input_weight(in2,in4,in5,in6);
Error in initlay>configure_input_weight (line 109) settings = feval(initFcn,'configure',net,'IW',i,j,x);
Error in initlay (line 41) out1 = configure_input_weight(in2,in4,in5,in6);
Error in nn_configure_input_weight (line 29) net.inputWeights{i,j}.initSettings = ...
Error in nn_configure_input (line 41) net = nn_configure_input_weight(net,j,i,x);
Error in network/configure (line 217) net = nn_configure_input(net,i,X{i});
Error in nntraining.config (line 118) net = configure(network(net),X);
Error in nntraining.setup>setupPerWorker (line 56) [net,X,Xi,Ai,T,EW,Q,TS,err] = nntraining.config(net,X,Xi,Ai,T,EW,configNetEnable);
Error in nntraining.setup (line 36) [net,data,tr,err] = setupPerWorker(net,trainFcn,X,Xi,Ai,T,EW,enableConfigure);
Error in network/train (line 319) [net,data,tr,err] = nntraining.setup(net,net.trainFcn,X,Xi,Ai,T,EW,enableConfigure,isComposite);
Error in test2 (line 17) [net,tr] = train(net,x); ------------------------------------------------

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!