-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_77.m
56 lines (51 loc) · 1.76 KB
/
test_77.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
clear all
close all
clc
%Model Dataset Method Weight Label Step Percentile
% AUROC PRC Precision Recall F1 score Accuracy Sensitivity Specificity Random Seed Date
for sub = 1:21
T = readtable(sprintf('results_77//%d//results//results.csv',sub));
max_You = 0;
tmp = 0;
for i = 1 : size(T,1)
tmp_data{i,1} = T.Var1{i};
data(i,:) = strsplit(tmp_data{i,1},',');
for j = 5: 16
data_neu(i,j-4) = str2double(data{i,j});
end
You_tmp = (data_neu(i,10) + data_neu(i,11)) / 2;
if You_tmp >= max_You
max_You = You_tmp;
tmp = i;
end
end
performance_sub7(sub,1) = max(data_neu(:,4));
performance_sub7(sub,2) = max(data_neu(:,5));
performance_sub7(sub,3) = max(data_neu(:,6));
performance_sub7(sub,4) = max(data_neu(:,7));
performance_sub7(sub,5) = max(data_neu(:,8));
performance_sub7(sub,6) = max(data_neu(:,9));
performance_sub7(sub,7) = (data_neu(tmp,10));
performance_sub7(sub,8) = (data_neu(tmp,11));
performance_sub7(sub,9) = max_You;
clear T tmp_data data data_neu
end
performance7{1,1} = mean(performance_sub7(:,1));
performance7{1,2} = mean(performance_sub7(:,2));
performance7{1,3} = mean(performance_sub7(:,3));
performance7{1,4} = mean(performance_sub7(:,4));
performance7{1,5} = mean(performance_sub7(:,5));
performance7{1,6} = mean(performance_sub7(:,6));
performance7{1,7} = mean(performance_sub7(:,7));
performance7{1,8} = mean(performance_sub7(:,8));
performance7{1,9} = mean(performance_sub7(:,9));
performance7{2,1} = 'AUROC';
performance7{2,2} = 'PRC';
performance7{2,3} = 'precision';
performance7{2,4} = 'recall';
performance7{2,5} = 'f1_score';
performance7{2,6} = 'accuracy';
performance7{2,7} = 'sensitivity';
performance7{2,8} = 'specificity';
performance7{2,9} = 'Youden';
clear data data_neu i j max_You sub T tmp_data You_tmp