-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstats.py
131 lines (118 loc) · 7.88 KB
/
stats.py
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
from scipy.stats import wilcoxon
#Table II
# accuracy1=[93.34, 94.21, 94.29, 93.94, 92.33, 94.74, 93.56, 94.28, 93.00, 93.12]
# auc1=[0.9807, 0.9858, 0.9863, 0.9837, 0.9767, 0.9873, 0.9810, 0.9857, 0.9784, 0.9801]
# print(sum(accuracy1)/10, sum(auc1)/10)
# accuracy2=[98.84, 98.58, 99.16, 99.02, 98.88, 98.88, 98.05, 98.72, 98.50, 98.61]
# auc2=[0.9993, 0.9990, 0.9995, 0.9994, 0.9993, 0.9990, 0.9977, 0.9990, 0.9985, 0.9989]
# print(sum(accuracy2)/10, sum(auc2)/10)
# accuracy3=[50.01, 50.00, 50.00, 50.00, 50.00, 50.01, 50.00, 50.0, 50.01, 50.00]
# auc3=[0.3942, 0.3042, 0.3172, 0.3994, 0.5299, 0.4124, 0.4874, 0.4432, 0.4514, 0.3103]
# print(sum(accuracy3)/10, sum(auc3)/10)
# accuracy4=[66.64, 73.15, 73.73, 71.48, 71.51, 77.03, 69.71, 63.27, 76.48, 62.88]
# auc4=[0.9482, 0.9479, 0.9218, 0.9453, 0.9440, 0.9412, 0.9421, 0.9425, 0.9542, 0.8785]
# print(sum(accuracy4)/10, sum(auc4)/10)
# accuracy5=[70.68, 74.63, 78.08, 76.93, 74.55, 82.53, 75.75, 69.34, 81.23, 67.37]
# auc5=[0.9563, 0.9538, 0.9459, 0.9543, 0.9408, 0.9544, 0.9569, 0.9481, 0.9604, 0.9211]
# print(sum(accuracy5)/10, sum(auc5)/10)
# accuracy6=[87.00, 87.44, 85.57, 85.30, 87.03, 88.19, 86.40, 84.16, 85.58, 86.52]
# auc6=[0.9524, 0.9561, 0.9417, 0.9307, 0.9551, 0.9599, 0.9486, 0.9308, 0.9408, 0.9453]
# print(sum(accuracy6)/10, sum(auc6)/10)
# accuracy7=[89.02, 87.82, 86.83, 88.35, 87.46, 88.24, 88.98, 87.16, 89.02, 86.41]
# auc7=[0.9585, 0.9506, 0.9476, 0.9557, 0.9404, 0.9572, 0.9583, 0.9474, 0.9612, 0.9254]
# print(sum(accuracy7)/10, sum(auc7)/10)
# accuracy8=[89.62, 85.52, 88.22, 90.32, 87.63, 87.32, 87.25, 87.56, 89.56, 86.61]
# auc8=[0.9628, 0.9328, 0.9531, 0.9669, 0.9512, 0.9512, 0.9486, 0.9499, 0.9632, 0.9346]
# print(sum(accuracy8)/10, sum(auc8)/10)
accuracy1=[94.69, 93.50, 95.94, 93.02, 93.10, 94.82, 95.47, 94.26, 93.59, 95.19]
auc1=[0.9860, 0.9796, 0.9913, 0.9783, 0.97985, 0.9864, 0.9888, 0.9827, 0.9811, 0.9883]
print(sum(accuracy1)/10, sum(auc1)/10)
accuracy2=[99.09, 98.36, 99.19, 98.62, 98.45, 99.23, 99.16, 99.15, 99.21, 99.12]
auc2=[0.9994, 0.9983, 0.9995, 0.9990, 0.9987, 0.9996, 0.9994, 0.9995, 0.9996, 0.9995]
print(sum(accuracy2)/10, sum(auc2)/10)
accuracy3=[47.35, 50.00, 43.87, 50.50, 49.97, 49.79, 30.31, 50.01, 50.00, 50.00]
auc3=[0.4048, 0.7176, 0.3711, 0.3911, 0.4908, 0.4362, 0.2667, 0.3810, 0.7385, 0.6853]
print(sum(accuracy3)/10, sum(auc3)/10)
accuracy4=[68.22, 70.65, 67.48, 68.42, 65.96, 72.31, 67.42, 68.91, 72.33, 62.22]
auc4=[0.9099, 0.9378, 0.9428, 0.9198, 0.9220, 0.9077, 0.9193, 0.9378, 0.8816, 0.9155]
print(sum(accuracy4)/10, sum(auc4)/10)
accuracy5=[72.62, 73.92, 72.72, 73.54, 69.32, 76.66, 71.21, 73.55, 77.33, 65.58]
auc5=[0.9346, 0.9515, 0.9501, 0.9391, 0.9451, 0.9317, 0.9294, 0.9478, 0.9022, 0.9286]
print(sum(accuracy5)/10, sum(auc5)/10)
accuracy6=[86.13, 87.28, 87.54, 86.66, 88.42, 86.34, 84.69, 87.37, 87.94, 85.80]
auc6=[0.9435, 0.9484, 0.9514, 0.9421, 0.9583, 0.9442, 0.9320, 0.9511, 0.9559, 0.9380]
print(sum(accuracy6)/10, sum(auc6)/10)
accuracy7=[86.01, 88.64, 87.70, 86.39, 87.87, 84.58, 84.93, 87.83, 80.53, 85.43]
auc7=[0.9345, 0.9523, 0.9509, 0.9419, 0.9441, 0.9345, 0.9303, 0.9501, 0.9029, 0.9285]
print(sum(accuracy7)/10, sum(auc7)/10)
accuracy8=[88.95, 88.91, 90.02, 89.77, 89.94, 89.28, 88.98, 89.40, 90.99, 88.32]
auc8=[0.9593, 0.9590, 0.9655, 0.9650, 0.9647, 0.9618, 0.9608, 0.9627, 0.9731, 0.9544]
print(sum(accuracy8)/10, sum(auc8)/10)
print(wilcoxon(auc6, auc7))
#Table XI
# accuracy_l11_1=[89.52, 96.17, 96.45, 94.51, 94.84, 95.27, 94.94, 86.54, 92.19, 94.45]
# auc_l11_1=[0.9521, 0.9920, 0.9910, 0.9863, 0.9847, 0.9858, 0.9880, 0.9314, 0.9713, 0.9837]
# accuracy_l11_2=[96.85, 97.74, 98.10, 96.59, 98.08, 98.66, 96.19, 97.55, 97.12, 98.20]
# auc_l11_2=[0.9954, 0.9977, 0.9978, 0.9928, 0.9979, 0.9975, 0.9918, 0.9965, 0.9955, 0.9982]
# accuracy_l9_3=[93.28, 94.05, 94.23, 93.87, 92.25, 94.59, 93.43, 94.14, 92.79, 93.03]
# auc_l9_3=[0.9803, 0.9851, 0.9859, 0.9830, 0.9763, 0.9866, 0.9803, 0.9852, 0.9770, 0.9797]
# accuracy_l9_4=[98.75, 98.52, 99.13, 98.95, 98.85, 98.80, 97.89, 98.69, 98.40, 98.58]
# auc_l9_4=[0.9992, 0.9989, 0.9995, 0.9993, 0.9993, 0.9989, 0.9975, 0.9989, 0.9984, 0.9987]
# accuracy_l11_1=[93.09, 94.66, 95.51, 95.92, 95.73, 98.28, 94.85, 96.03, 92.11, 97.12]
# auc_l11_1=[0.9794, 0.9867, 0.9892, 0.9921, 0.9896, 0.9979, 0.9855, 0.9907, 0.9734, 0.9938]
# accuracy_l11_2=[95.76, 97.71, 98.25, 97.45, 97.20, 97.38, 98.25, 97.86, 98.40, 97.44]
# auc_l11_2=[0.9909, 0.9974, 0.9984, 0.9966, 0.9951, 0.9967, 0.9984, 0.9975, 0.9987, 0.9967]
# accuracy_l9_3=[94.59, 93.36, 95.89, 92.86, 93.05, 94.71, 95.40, 94.17, 93.47, 95.12]
# auc_l9_3=[0.9855, 0.9787, 0.9910, 0.9778, 0.9793, 0.9856, 0.9885, 0.9817, 0.9805, 0.9879]
# accuracy_l9_4=[99.05, 98.26, 99.14, 98.54, 98.30, 99.18, 99.12, 99.08, 99.15, 99.08]
# auc_l9_4=[0.9994, 0.9981, 0.9995, 0.9989, 0.9985, 0.9996, 0.9994, 0.9994, 0.9996, 0.9995]
#Table VIII
# accuracy1=[93.34, 94.21, 94.29, 93.94, 92.33, 94.74, 93.56, 94.28, 93.00, 93.12]
# auc1=[0.9807, 0.9858, 0.9863, 0.9837, 0.9767, 0.9873, 0.9810, 0.9857, 0.9784, 0.9801]
# print(sum(accuracy1)/10)
# accuracy2=[93.28, 94.05, 94.23, 93.87, 92.25, 94.59, 93.43, 94.14, 92.79, 93.03]
# auc2=[0.9803, 0.9851, 0.9859, 0.9830, 0.9763, 0.9866, 0.9803, 0.9852, 0.9770, 0.9797]
# print(sum(accuracy2)/10)
# accuracy3=[98.84, 98.58, 99.16, 99.02, 98.88, 98.88, 98.05, 98.72, 98.50, 98.61]
# auc3=[0.9993, 0.9990, 0.9995, 0.9994, 0.9993, 0.9990, 0.9977, 0.9990, 0.9985, 0.9989]
# print(sum(accuracy3)/10)
# accuracy4=[98.75, 98.52, 99.13, 98.95, 98.85, 98.80, 97.89, 98.69, 98.40, 98.58]
# auc4=[0.9992, 0.9989, 0.9995, 0.9993, 0.9993, 0.9989, 0.9975, 0.9989, 0.9984, 0.9987]
# print(sum(accuracy4)/10)
# accuracy1=[94.69, 93.50, 95.94, 93.02, 93.10, 94.82, 95.47, 94.26, 93.59, 95.19]
# auc1=[0.9860, 0.9796, 0.9913, 0.9783, 0.97985, 0.9864, 0.9888, 0.9827, 0.9811, 0.9883]
# print(sum(accuracy1)/10)
# accuracy2=[94.59, 93.36, 95.89, 92.86, 93.05, 94.71, 95.40, 94.17, 93.47, 95.12]
# auc2=[0.9855, 0.9787, 0.9910, 0.9778, 0.9793, 0.9856, 0.9885, 0.9817, 0.9805, 0.9879]
# print(sum(accuracy2)/10)
# accuracy3=[99.09, 98.36, 99.19, 98.62, 98.45, 99.23, 99.16, 99.15, 99.21, 99.12]
# auc3=[0.9994, 0.9983, 0.9995, 0.9990, 0.9987, 0.9996, 0.9994, 0.9995, 0.9996, 0.9995]
# print(sum(accuracy3)/10)
# accuracy4=[99.05, 98.26, 99.14, 98.54, 98.30, 99.18, 99.12, 99.08, 99.15, 99.08]
# auc4=[0.9994, 0.9981, 0.9995, 0.9989, 0.9985, 0.9996, 0.9994, 0.9994, 0.9996, 0.9995]
# print(sum(accuracy4)/10)
# #Table V
# accuracy1=[93.34, 94.21, 94.29, 93.94, 92.33, 94.74, 93.56, 94.28, 93.00, 93.12]
# auc1=[0.9807, 0.9858, 0.9863, 0.9837, 0.9767, 0.9873, 0.9810, 0.9857, 0.9784, 0.9801]
# print(sum(accuracy1)/10)
# accuracy2=[93.10, 93.76, 93.94, 93.60, 92.48, 94.25, 93.05, 93.98, 92.59, 92.76]
# auc2=[0.9794, 0.9840, 0.9847, 0.9819, 0.9770, 0.9856, 0.9784, 0.9845, 0.9763, 0.9785]
# print(sum(accuracy2)/10)
# accuracy3=[98.84, 98.58, 99.16, 99.02, 98.88, 98.88, 98.05, 98.72, 98.50, 98.61]
# auc3=[0.9993, 0.9990, 0.9995, 0.9994, 0.9993, 0.9990, 0.9977, 0.9990, 0.9985, 0.9989]
# print(sum(accuracy3)/10)
# accuracy4=[97.58, 97.11, 97.96, 97.52, 97.46, 97.54, 96.27, 97.61, 97.15, 97.29]
# auc4=[0.9978, 0.9962, 0.9981, 0.9969, 0.9973, 0.9973, 0.9938, 0.9978, 0.9964, 0.9970]
# print(sum(accuracy4)/10)
# accuracy1=[94.69, 93.50, 95.94, 93.02, 93.10, 94.82, 95.47, 94.26, 93.59, 95.19]
# auc1=[0.9860, 0.9796, 0.9913, 0.9783, 0.97985, 0.9864, 0.9888, 0.9827, 0.9811, 0.9883]
# print(sum(accuracy1)/10)
# accuracy2=[94.27, 93.00, 95.63, 92.42, 92.68, 94.14, 94.84, 93.77, 93.12, 94.56]
# auc2=[0.9841, 0.9778, 0.9903, 0.9756, 0.9778, 0.9839, 0.9867, 0.9814, 0.9795, 0.9863]
# print(sum(accuracy2)/10)
# accuracy3=[99.09, 98.36, 99.19, 98.62, 98.45, 99.23, 99.16, 99.15, 99.21, 99.12]
# auc3=[0.9994, 0.9983, 0.9995, 0.9990, 0.9987, 0.9996, 0.9994, 0.9995, 0.9996, 0.9995]
# print(sum(accuracy3)/10)
# accuracy4=[97.80, 97.31, 97.97, 97.38, 96.69, 97.99, 97.74, 97.86, 97.62, 97.78]
# auc4=[0.9977, 0.9967, 0.9980, 0.9970, 0.9956, 0.9980, 0.9974, 0.9978, 0.9973, 0.9976]
# print(sum(accuracy4)/10)