|
Algorithm 1 PGraphDD-QM: concept drift detection using quality metrics |
-
Require:
Event stream: , LSTM model: , Threshold:
-
1:
,
-
2:
{read event stream, split windows, prepare data, train LSTM model and make predictions}
-
3:
-
4:
{the window size}
-
5:
-
6:
for alli in range(0, parts) do
-
7:
-
8:
if
then
-
9:
-
10:
,
-
11:
end if
-
12:
while
do
-
13:
-
14:
{train an LSTM model on the reference window}
-
15:
{Apply the trained model to both reference and detection windows}
-
16:
-
17:
-
18:
{build next event prediction probability matrices, construct graphs}
-
19:
-
20:
-
21:
-
22:
-
23:
{calculate the quality metrics}
-
24:
-
25:
-
26:
-
27:
-
28:
if
then
-
29:
-
30:
-
31:
end if
-
32:
end while
-
33:
end for
|