Training/Testing Random Splits on ORL database


You can also download the split file in matlab format here.

Each matlab data file contain variables 'trainIdx' and 'testIdx'. The following matlab codes are used to get the training set and testing set.

%===========================================
fea_Train = fea(trainIdx,:);
fea_Test = fea(testIdx,:);

gnd_Train = gnd(trainIdx);
gnd_Test = gnd(testIdx);
%===========================================