Error using internal.stats.pdist2mex

15 次查看(过去 30 天)
Hello All,
I need to run 76339x76339 array but Workspace says the array size limit is 10000. I may have to run even larger arrays in the future. Will access to supercomputer solve the issue? If not is there any way to increase the limit as needed? I am naive to MATLAB. I would appreciate all help.
Error using internal.stats.pdist2mex
Requested 76339x76339 (43.4GB) array exceeds maximum array size preference. Creation of arrays greater than this
limit may take a long time and cause MATLAB to become unresponsive. See array size limit or preference panel for
more information.
Error in pdist2 (line 374)
D = internal.stats.pdist2mex(X',Y',dist,additionalArg,smallestLargestFlag,radius);
Error in generateDistImage (line 26)
distances = pdist2(pcaCoeffs,pcaCoeffs);

回答(1 个)

Pratyush Roy
Pratyush Roy 2021-4-27
Hi,
This issue could be due to RAM limitations. You can try the following workarounds:
1. Go to MATLAB > Preferences > Workspace and ensure the Maximum array size limit is set to 100%.
Then execute 'memory' command in the Command Window and send the output. Ensure that the Maximum possible array size is larger than the memory required by the data used in neural network.
2. Also, check that the Java Heap Memory is not set to a very large value because that might restrict the amount of memory available to perform computations.
Hope this helps!

类别

Help CenterFile Exchange 中查找有关 Get Started with Statistics and Machine Learning Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by