allMyDatasets = {...
    'cocomo81','cocomo81e','cocomo81o',...
    'nasa93','nasa93_center_2','nasa93_center_5',...
    'desharnais',...
    'sdr','isbsg_banking'...
    };

pred25Values = [];

pred25ValuesOfTop3 = fopen('pred25ValuesOfTop3.txt','w');
fprintf(pred25ValuesOfTop3,'Dataset, log-ABE0-1NN, norm-CART(on), TOP16');
fprintf(pred25ValuesOfTop3,'\n');

for datasetCounter = 1:20
    % define datasets of experiment
    allMyDatasets = {...
        'telecom1','kemerer','cocomo81o','cocomo81s','desharnaisL1','desharnaisL3',...
        'albrecht', 'cocomo81e', 'nasa93_center_5', 'desharnaisL2', 'desharnais',...
        'maxwell', 'nasa93_center_1', 'sdr', 'finnish','miyazaki94', 'nasa93_center_2',...
        'cocomo81', 'nasa93', 'china'
        };
    
    
    eval(['load ',char(allMyDatasets(datasetCounter)),'mreValuesToWrite.csv;']);
    eval(['dataset = ',char(allMyDatasets(datasetCounter)),'mreValuesToWrite;']);
    eval(['clear ',char(allMyDatasets(datasetCounter)),'mreValuesToWrite;']);
    
    mreValuesLogKNN1 = dataset(16,:);
    mreValuesNormCartOn = dataset(57,:);
    mreValuesTop16 = dataset(102,:);
    pred25LogKNN1 = size(find(mreValuesLogKNN1 <= 0.25),2)/size(dataset,2);
    pred25NormCartOn = size(find(mreValuesNormCartOn <= 0.25),2)/size(dataset,2);
    pred25Top16 = size(find(mreValuesTop16 <= 0.25),2)/size(dataset,2);
    
    fprintf(pred25ValuesOfTop3,[char(allMyDatasets(datasetCounter)) ',' num2str(pred25LogKNN1) ',' num2str(pred25NormCartOn) ',' num2str(pred25Top16)]);
    fprintf(pred25ValuesOfTop3,'\n');
end

fclose(pred25ValuesOfTop3);
