Why do I receive an "out of memory" error when I execute the function SVMTRAIN in the Bioinformatics Toolbox 2.0.1 (R14SP2)?

1 view (last 30 days)
I have a variable "group" of size (10001,1) and a variable "training" of size(10001,2)
I use the above two variables as input arguments for the SVMTRAIN command.
svmstruct = svmtrain(training,group);
I receive the following error message:
ERROR: ??? Error using ==> svmtrain
Error calculating the kernel function:
Out of memory. Type HELP MEMORY for your options.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 18 Apr 2023
Edited: MathWorks Support Team on 19 Apr 2023
If the SVMTRAIN function has to operate on a data set containing N elements, it creates a (N+1) by (N+1) matrix to find the separating hyperplane. Therefore the function will need at least 8*(n+1)^2 bytes of contiguous memory. In absence of that size of contiguous memory location, MATLAB generates an "out of memory" error message.
Type the following in the Command Window to find the largest block of contiguous memory available:
feature memstats
You can get more information about memory management at the following link:

More Answers (0)

Categories

Find more on Bioinformatics Toolbox in Help Center and File Exchange

Products


Release

R14SP2

Community Treasure Hunt

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

Start Hunting!