|
Algorithm 2 PGraphDD-SS: concept drift detection using similarity score |
-
Require:
Event stream: , LSTM model: , Threshold:
-
1:
,
-
2:
-
3:
{the window size}
-
4:
-
5:
for alli in range(0, parts) do
-
6:
-
7:
if
then
-
8:
-
9:
,
-
10:
end if
-
11:
while
do
-
12:
{compile and train two lstm model on the reference and detection window}
-
13:
,
-
14:
{Make predictions for both}
-
15:
-
16:
-
17:
{build next event prediction probability matrices, construct graphs}
-
18:
-
19:
-
20:
-
21:
-
22:
{generate adjacency matrices, measure similarity score}
-
23:
-
24:
-
25:
-
26:
-
27:
{set a counter of non-zero values}
-
28:
-
29:
-
30:
-
31:
-
32:
if
then
-
33:
-
34:
{change point detected and reported}
-
35:
end if
-
36:
-
37:
end while
-
38:
end for
|