-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathRunOneNNGAKTiming.m
33 lines (19 loc) · 1.05 KB
/
RunOneNNGAKTiming.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
function RunOneNNGAKTiming(DataSetStartIndex, DataSetEndIndex)
% first 2 values are '.' and '..' - UCR Archive 2018 version has 128 datasets
dir_struct = dir('/rigel/dsi/users/ikp2103/VLDBGRAIL/UCR2018/');
Datasets = {dir_struct(3:130).name};
% Sort Datasets
[Datasets, DSOrder] = sort(Datasets);
for i = 1:length(Datasets)
if (i>=DataSetStartIndex && i<=DataSetEndIndex)
Results = zeros(length(Datasets),2);
disp(['Dataset being processed: ', char(Datasets(i))]);
DS = LoadUCRdataset(char(Datasets(i)));
tic;
OneNNAcc = OneNNClassifierGAK(DS,10);
Results(i,1) = OneNNAcc;
Results(i,2) = toc;
dlmwrite( strcat('/rigel/dsi/users/ikp2103/VLDBGRAIL/RunOneNNGAKTiming/', 'RunOneNNGAKTiming_', num2str(i)), Results, 'delimiter', '\t');
end
end
end