FITCKNN with large data sets?

3 views (last 30 days)
omar khater
omar khater on 23 Jul 2019
Edited: omar khater on 27 Jul 2019
Hello, I have some dataset with size of 39366*9 table which I need to apply KNN regression.
My problem arises when I use all the data set the MATLAB gives me an error message:
Error using bsxfun
Requested 900000000x1 (6.7GB) 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 comparison2 (line 81)
S1 =
fitcknn(array2table(X_norm),y,'NumNeighbors',K3,'Standardize',1
I have searched this errror and found some solution suggesting using tall arays
when I tried it this error appears
Error using fitcknn (line 247)
FITCKNN does not support tall arrays.
My question is, is it possible to use fitcknn with all of this data or should I try something else? if possible how can I do that?

Answers (1)

omar khater
omar khater on 27 Jul 2019
Edited: omar khater on 27 Jul 2019
Do anyone know how to solve this problem?

Categories

Find more on Matrices and Arrays in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!