Hi,
I’m trying to use C4.5 algorithm from PRTools on pima-indians-diabetes database
( http://archive.ics.uci.edu/ml/machine-learning-databases/pima-indians-diabetes/ )
I’m not very advanced with machine learning so I’ve met some problems.
I tried to use cross validation function, but matlab crashes when I run it with all data (768 Instances). I tried this on matlab R2009b, and matlab 7.01. On matlab 7.01
a following error came out:
??? Maximum recursion limit of 500 reached. Use set(0,'RecursionLimit',N) to change the limit. Be aware that exceeding your available stack space can crash MATLAB and/or your computer.
And it pointed at prtrace function.
Increasing recursion limit didn’t help.
PRTRACE OFF; command didn’t make any difference.
I also tried to comment out calls to prtrace in used functions (this is an empty function), but it didn’t help either. PRtrace was also called from binary files from PRtools subfolders, which cannot be read.
I put my code below:
D = dlmread('pima-indians-diabetes.data');
A=dataset(D(:,1:8),cast(D(:,9),'uint32'));
[Train,Test]=gendat(A,.5);% it sometimes work with 0.1
[WeightedAverageTestError,TestErrorsPerClass,AssignedNumericLabels,] = CROSSVAL(Train,treec([],'infcrit',-1))% it always crashes when I use whole A as a first argument