-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdust
145 lines (112 loc) · 3.48 KB
/
dust
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# for i in range(0, 100, window_size):
# A = current_bf_pd[i:i+window_size]
# B = current_br_pd[i:i+window_size]
# # print(type(A))
# frames.append(A)
# smooth_A = [{'current':(current_bf_pd['current'][i-1+window_size] + current_br_pd['current'][i])/2, 'label':-1}]
# smooth_A = pd.DataFrame(smooth_A)
# # print(type(smooth_A))
# # dicts = [{'current':}, {}]
# frames.append(smooth_A)
# frames.append(B)
# C = pd.concat(frames, ignore_index=True)
# Plotting scatter
# plot_scatter_real(current_subset_bf, current_subset_br, groups=("Black Flat", "br"))
# in concatenation part
current_subset_bf = current_bf_pd[0:window_size - 3]
current_subset_br = current_br_pd[0:window_size]
# # Extract only subset of the data for testing purposes
# x_axis = range(0, 1000)
# plt.xlim(0, 1000)
# plt.yscale('linear')
# plt.subplot(211)
# plt.plot(CP1['current'][0:current_subset_bf.shape[0]], 'r')
# plt.plot(current_bf_pd['current'][0:window_size])
# plt.subplot(212)
# plt.plot(current_br_pd['current'][0:window_size])
# plt.plot(CP1['current'][current_subset_bf.shape[0]:CP1.shape[0]], 'g')
C:\Programmes\Anaconda3\python.exe "C:/Users/Etudiant UPS/Documents/Semestre8/CTU/Internship/Drift_internship/Test_drift_UCI_dataset/drift_dataset_hexapod.py"
removing outliers start....
outlier start : 2018-08-24 23:06:40.045587, end : 0:00:01.600454
concatenation start....
shapeDP1 (401, 2)
concatenation start....
concatenation start....
shapeDP2 (604, 2)
concatenation start....
shapeDP3 (401, 2)
concatenation start....
shapeDP4 (401, 2)
Concatenation start : 2018-08-24 23:06:41.646041, end : 0:00:00.010655
KS-test start....
datalength 401
Drift detected between 0 to 99 and 100 to 200
Drift detected between 100 to 199 and 200 to 300
Drift detected between 200 to 299 and 300 to 400
3 drifts detected using KS-test
5 iteration in ks test
ADWIN start....
ADWIN: drift at 285
ADWIN: drift at 300
ADWIN: drift at 335
ADWIN, true positive : 1
PH test start....
.
Page Hinkley: drift at 202
KS-test start....
datalength 401
Drift detected between 0 to 99 and 100 to 200
Drift detected between 100 to 199 and 200 to 300
Drift detected between 200 to 299 and 300 to 400
3 drifts detected using KS-test
5 iteration in ks test
ADWIN start....
ADWIN: drift at 255
ADWIN: drift at 260
ADWIN: drift at 295
ADWIN, true positive : 3
PH test start....
.
Page Hinkley: drift at 202
KS-test start....
datalength 401
Drift detected between 0 to 99 and 100 to 200
Drift detected between 100 to 199 and 200 to 300
Drift detected between 200 to 299 and 300 to 400
3 drifts detected using KS-test
5 iteration in ks test
ADWIN start....
ADWIN: drift at 220
ADWIN: drift at 225
ADWIN: drift at 230
ADWIN: drift at 235
ADWIN: drift at 250
ADWIN: drift at 395
ADWIN: drift at 400
ADWIN, true positive : 5
PH test start....
.
Page Hinkley: drift at 202
KS-test start....
datalength 401
Drift detected between 0 to 99 and 100 to 200
Drift detected between 100 to 199 and 200 to 300
Drift detected between 200 to 299 and 300 to 400
3 drifts detected using KS-test
5 iteration in ks test
ADWIN start....
ADWIN: drift at 220
ADWIN: drift at 225
ADWIN: drift at 230
ADWIN: drift at 235
ADWIN: drift at 260
ADWIN: drift at 370
ADWIN: drift at 375
ADWIN: drift at 390
ADWIN, true positive : 5
PH test start....
.
Page Hinkley: drift at 202
All drifts detected in 0:00:05.711734
A [1, 1, 4]
Process finished with exit code 0