From 9d71fc0b957d1bd71ea76a3ec118b290d1e5ea26 Mon Sep 17 00:00:00 2001 From: DesireeWyrzylala <74858504+DesireeWyrzylala@users.noreply.github.com> Date: Thu, 6 Feb 2025 12:16:52 +0100 Subject: [PATCH] adjust colors and check lstmad results start cnn run --- src/models/desi/desi_evaluate_groups.ipynb | 5430 +++++++++++++++++--- src/models/sofia_modelle/call_cnn.py | 7 +- 2 files changed, 4648 insertions(+), 789 deletions(-) diff --git a/src/models/desi/desi_evaluate_groups.ipynb b/src/models/desi/desi_evaluate_groups.ipynb index c0b16ed..bf1a83d 100644 --- a/src/models/desi/desi_evaluate_groups.ipynb +++ b/src/models/desi/desi_evaluate_groups.ipynb @@ -12,7 +12,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 2, "metadata": {}, "outputs": [ { @@ -51,102 +51,242 @@ " <th>Event-based-F1</th>\n", " <th>R-based-F1</th>\n", " <th>Affiliation-F</th>\n", + " <th>Recall</th>\n", + " <th>Precision</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <th>0</th>\n", - " <td>{'periodicity': 3, 'power': 4}</td>\n", + " <td>{'window_size': 150, 'lr': 0.0004}</td>\n", " <td>001_NAB_id_1_Facility_tr_1007_1st_2014.csv</td>\n", - " <td>1.578039</td>\n", + " <td>3.095788</td>\n", " <td>NAB</td>\n", " <td>False</td>\n", " <td>True</td>\n", - " <td>0.423304</td>\n", - " <td>0.680252</td>\n", - " <td>0.424395</td>\n", - " <td>0.684142</td>\n", - " <td>0.478923</td>\n", + " <td>0.111481</td>\n", + " <td>0.500314</td>\n", + " <td>0.100945</td>\n", + " <td>0.505591</td>\n", + " <td>0.159277</td>\n", + " <td>0.994203</td>\n", + " <td>0.818182</td>\n", + " <td>0.794531</td>\n", + " <td>0.884825</td>\n", + " <td>0.023324</td>\n", " <td>1.000000</td>\n", - " <td>1.000000</td>\n", - " <td>0.537912</td>\n", - " <td>0.966155</td>\n", " </tr>\n", " <tr>\n", " <th>1</th>\n", - " <td>{'periodicity': 1, 'power': 4}</td>\n", + " <td>{'window_size': 150, 'lr': 0.0004}</td>\n", " <td>002_NAB_id_2_WebService_tr_1500_1st_4106.csv</td>\n", - " <td>3.787581</td>\n", + " <td>4.893926</td>\n", " <td>NAB</td>\n", " <td>False</td>\n", " <td>False</td>\n", - " <td>0.623451</td>\n", - " <td>0.825962</td>\n", - " <td>0.625950</td>\n", - " <td>0.829796</td>\n", - " <td>0.659626</td>\n", + " <td>0.127749</td>\n", + " <td>0.416057</td>\n", + " <td>0.128109</td>\n", + " <td>0.441723</td>\n", + " <td>0.192068</td>\n", " <td>1.000000</td>\n", " <td>1.000000</td>\n", - " <td>0.572999</td>\n", - " <td>0.994413</td>\n", + " <td>0.336815</td>\n", + " <td>0.988203</td>\n", + " <td>0.031397</td>\n", + " <td>0.833333</td>\n", " </tr>\n", " <tr>\n", " <th>2</th>\n", - " <td>{'periodicity': 3, 'power': 1}</td>\n", + " <td>{'window_size': 150, 'lr': 0.0004}</td>\n", + " <td>003_NAB_id_3_WebService_tr_1362_1st_1462.csv</td>\n", + " <td>3.208956</td>\n", + " <td>NAB</td>\n", + " <td>False</td>\n", + " <td>True</td>\n", + " <td>0.121635</td>\n", + " <td>0.490010</td>\n", + " <td>0.117158</td>\n", + " <td>0.496531</td>\n", + " <td>0.175308</td>\n", + " <td>0.999672</td>\n", + " <td>0.933333</td>\n", + " <td>0.327012</td>\n", + " <td>0.945860</td>\n", + " <td>0.009192</td>\n", + " <td>0.700000</td>\n", + " </tr>\n", + " <tr>\n", + " <th>3</th>\n", + " <td>{'window_size': 150, 'lr': 0.0004}</td>\n", + " <td>004_NAB_id_4_Facility_tr_1007_1st_1437.csv</td>\n", + " <td>3.034332</td>\n", + " <td>NAB</td>\n", + " <td>False</td>\n", + " <td>False</td>\n", + " <td>0.182674</td>\n", + " <td>0.665474</td>\n", + " <td>0.180166</td>\n", + " <td>0.681682</td>\n", + " <td>0.274909</td>\n", + " <td>1.000000</td>\n", + " <td>1.000000</td>\n", + " <td>0.337469</td>\n", + " <td>0.975070</td>\n", + " <td>0.007463</td>\n", + " <td>1.000000</td>\n", + " </tr>\n", + " <tr>\n", + " <th>4</th>\n", + " <td>{'window_size': 150, 'lr': 0.0004}</td>\n", " <td>005_NAB_id_5_Traffic_tr_594_1st_1645.csv</td>\n", - " <td>1.826716</td>\n", + " <td>0.940658</td>\n", " <td>NAB</td>\n", " <td>False</td>\n", " <td>False</td>\n", - " <td>0.286365</td>\n", - " <td>0.755784</td>\n", - " <td>0.294678</td>\n", - " <td>0.759568</td>\n", - " <td>0.447757</td>\n", - " <td>0.520788</td>\n", - " <td>0.471014</td>\n", - " <td>0.452990</td>\n", - " <td>0.889674</td>\n", + " <td>0.102740</td>\n", + " <td>0.440686</td>\n", + " <td>0.105448</td>\n", + " <td>0.456966</td>\n", + " <td>0.183499</td>\n", + " <td>1.000000</td>\n", + " <td>1.000000</td>\n", + " <td>0.337989</td>\n", + " <td>0.974568</td>\n", + " <td>0.050420</td>\n", + " <td>0.214286</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ - " params \\\n", - "0 {'periodicity': 3, 'power': 4} \n", - "1 {'periodicity': 1, 'power': 4} \n", - "2 {'periodicity': 3, 'power': 1} \n", + " params \\\n", + "0 {'window_size': 150, 'lr': 0.0004} \n", + "1 {'window_size': 150, 'lr': 0.0004} \n", + "2 {'window_size': 150, 'lr': 0.0004} \n", + "3 {'window_size': 150, 'lr': 0.0004} \n", + "4 {'window_size': 150, 'lr': 0.0004} \n", "\n", " file_name duration group \\\n", - "0 001_NAB_id_1_Facility_tr_1007_1st_2014.csv 1.578039 NAB \n", - "1 002_NAB_id_2_WebService_tr_1500_1st_4106.csv 3.787581 NAB \n", - "2 005_NAB_id_5_Traffic_tr_594_1st_1645.csv 1.826716 NAB \n", + "0 001_NAB_id_1_Facility_tr_1007_1st_2014.csv 3.095788 NAB \n", + "1 002_NAB_id_2_WebService_tr_1500_1st_4106.csv 4.893926 NAB \n", + "2 003_NAB_id_3_WebService_tr_1362_1st_1462.csv 3.208956 NAB \n", + "3 004_NAB_id_4_Facility_tr_1007_1st_1437.csv 3.034332 NAB \n", + "4 005_NAB_id_5_Traffic_tr_594_1st_1645.csv 0.940658 NAB \n", "\n", " point anomaly seq anomaly AUC-PR AUC-ROC VUS-PR VUS-ROC \\\n", - "0 False True 0.423304 0.680252 0.424395 0.684142 \n", - "1 False False 0.623451 0.825962 0.625950 0.829796 \n", - "2 False False 0.286365 0.755784 0.294678 0.759568 \n", + "0 False True 0.111481 0.500314 0.100945 0.505591 \n", + "1 False False 0.127749 0.416057 0.128109 0.441723 \n", + "2 False True 0.121635 0.490010 0.117158 0.496531 \n", + "3 False False 0.182674 0.665474 0.180166 0.681682 \n", + "4 False False 0.102740 0.440686 0.105448 0.456966 \n", "\n", - " Standard-F1 PA-F1 Event-based-F1 R-based-F1 Affiliation-F \n", - "0 0.478923 1.000000 1.000000 0.537912 0.966155 \n", - "1 0.659626 1.000000 1.000000 0.572999 0.994413 \n", - "2 0.447757 0.520788 0.471014 0.452990 0.889674 " + " Standard-F1 PA-F1 Event-based-F1 R-based-F1 Affiliation-F Recall \\\n", + "0 0.159277 0.994203 0.818182 0.794531 0.884825 0.023324 \n", + "1 0.192068 1.000000 1.000000 0.336815 0.988203 0.031397 \n", + "2 0.175308 0.999672 0.933333 0.327012 0.945860 0.009192 \n", + "3 0.274909 1.000000 1.000000 0.337469 0.975070 0.007463 \n", + "4 0.183499 1.000000 1.000000 0.337989 0.974568 0.050420 \n", + "\n", + " Precision \n", + "0 1.000000 \n", + "1 0.833333 \n", + "2 0.700000 \n", + "3 1.000000 \n", + "4 0.214286 " ] }, - "execution_count": 4, + "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "#Dataframe erstellen\n", - "model = 'POLY'\n", + "model = 'run_LSTMAD'\n", "path = '../../../docs/evaluation/'+model+'.csv'\n", "df = pd.read_csv(path)\n", "df.head()" ] }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "group\n", + "UCR 76\n", + "SMD 38\n", + "YAHOO 35\n", + "Exathlon 32\n", + "NAB 28\n", + "OPPORTUNITY 28\n", + "WSD 25\n", + "SVDB 20\n", + "SMAP 19\n", + "IOPS 17\n", + "TODS 15\n", + "Stock 10\n", + "MGAB 9\n", + "MSL 9\n", + "NEK 9\n", + "LTDB 9\n", + "MITDB 8\n", + "TAO 3\n", + "SED 3\n", + "Daphnet 1\n", + "SWaT 1\n", + "Power 1\n", + "CATSv2 1\n", + "Name: count, dtype: int64" + ] + }, + "execution_count": 8, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "df['group'].value_counts()" + ] + }, + { + "cell_type": "code", + "execution_count": 47, + "metadata": {}, + "outputs": [], + "source": [ + "colors = {\n", + " 'UCR': 'deepskyblue',\n", + " 'SMD': 'darksalmon',\n", + " 'YAHOO': 'darkseagreen',\n", + " 'Exathlon': 'darkolivegreen',\n", + " 'NAB': 'darkgoldenrod',\n", + " 'OPPORTUNITY': 'darkgray',\n", + " 'WSD': 'gold',\n", + " 'SVDB': 'darkviolet',\n", + " 'SMAP': 'lightskyblue',\n", + " 'IOPS': 'blueviolet',\n", + " 'TODS': 'steelblue',\n", + " 'Stock': 'darkorange',\n", + " 'MGAB': 'rosybrown',\n", + " 'MSL': 'orange',\n", + " 'NEK': 'mediumpurple',\n", + " 'LTDB': 'firebrick',\n", + " 'MITDB': 'lightsalmon',\n", + " 'TAO': 'darkmagenta',\n", + " 'SED': 'deeppink',\n", + " 'Daphnet': 'coral',\n", + " 'SWaT': 'yellowgreen',\n", + " 'Power': 'dodgerblue',\n", + " 'CATSv2': 'slateblue'\n", + " }" + ] + }, { "cell_type": "markdown", "metadata": {}, @@ -156,9 +296,19 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 48, "metadata": {}, "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "c:\\Users\\desiw\\AppData\\Local\\Programs\\Python\\Python311\\Lib\\site-packages\\plotly\\express\\_core.py:1985: FutureWarning:\n", + "\n", + "When grouping with a length-1 list-like, you will need to pass a length-1 tuple to get_group in a future version of pandas. Pass `(name,)` instead of `name` to silence this warning.\n", + "\n" + ] + }, { "data": { "application/vnd.plotly.v1+json": { @@ -168,10 +318,40 @@ "data": [ { "alignmentgroup": "True", - "hovertemplate": "group=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB" + ], "legendgroup": "NAB", "marker": { - "color": "#636efa" + "color": "darkgoldenrod" }, "name": "NAB", "notched": false, @@ -180,6 +360,31 @@ "showlegend": true, "type": "box", "x": [ + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", "NAB", "NAB", "NAB" @@ -187,138 +392,1873 @@ "x0": " ", "xaxis": "x", "y": [ - 0.4233042158969708, - 0.6234508468974634, - 0.2863647828799766 + 0.1114811464088816, + 0.1277487940730036, + 0.1216352929102622, + 0.1826743887368079, + 0.1027400522352829, + 0.0863785520999006, + 0.1900210818480747, + 0.286935007610574, + 0.1580680200069276, + 0.2266054728160446, + 0.0824833823638343, + 0.0862878799666994, + 0.068930349229141, + 0.1301628009673794, + 0.0997357552561939, + 0.3019649323978445, + 0.1136263903518569, + 0.114881668421924, + 0.1215419564314522, + 0.184724409755758, + 0.1002070301715388, + 0.4162293274911158, + 0.1606410583433255, + 0.3156489022597225, + 0.0959018159169502, + 0.0694482365523221, + 0.1144535283219647, + 0.1214019035323505 ], "y0": " ", "yaxis": "y" - } - ], - "layout": { - "boxmode": "overlay", - "height": 600, - "legend": { - "title": { - "text": "group" + }, + { + "alignmentgroup": "True", + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD" + ], + "legendgroup": "WSD", + "marker": { + "color": "gold" }, - "tracegroupgap": 0 + "name": "WSD", + "notched": false, + "offsetgroup": "WSD", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.0156099553109553, + 0.0005966348920265, + 0.5621137385914386, + 0.3999925015575123, + 0.0019784484444258, + 0.3340997095879228, + 0.3351756089703754, + 0.2850266636449676, + 0.088698009990802, + 0.0045400576125231, + 0.3930548765661013, + 0.0389981704366677, + 0.0010117170525816, + 0.0614972385801277, + 0.4692431313389204, + 0.3087434797746063, + 0.0025378322401993, + 0.0054371903916583, + 0.841388873875802, + 0.0160994444419026, + 0.334304149222502, + 0.0175155026911261, + 0.1815222708092185, + 0.0061063718333813, + 0.5320208288797212 + ], + "y0": " ", + "yaxis": "y" }, - "margin": { - "t": 60 + { + "alignmentgroup": "True", + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "MSL", + "MSL", + "MSL", + "MSL", + "MSL", + "MSL", + "MSL", + "MSL", + "MSL" + ], + "legendgroup": "MSL", + "marker": { + "color": "orange" + }, + "name": "MSL", + "notched": false, + "offsetgroup": "MSL", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "MSL", + "MSL", + "MSL", + "MSL", + "MSL", + "MSL", + "MSL", + "MSL", + "MSL" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.3039945475015764, + 0.2023077223729303, + 0.2719394544247738, + 0.5816577592418987, + 0.0187513705767892, + 0.0618386713514016, + 0.1260780266768607, + 0.1432377785539599, + 0.4271686588299724 + ], + "y0": " ", + "yaxis": "y" }, - "template": { - "data": { - "bar": [ - { - "error_x": { - "color": "rgb(51,51,51)" - }, - "error_y": { - "color": "rgb(51,51,51)" - }, - "marker": { - "line": { - "color": "rgb(237,237,237)", - "width": 0.5 - }, - "pattern": { - "fillmode": "overlay", - "size": 10, - "solidity": 0.2 - } - }, - "type": "bar" - } - ], - "barpolar": [ - { - "marker": { - "line": { - "color": "rgb(237,237,237)", - "width": 0.5 - }, - "pattern": { - "fillmode": "overlay", - "size": 10, - "solidity": 0.2 - } - }, - "type": "barpolar" - } - ], - "carpet": [ - { - "aaxis": { - "endlinecolor": "rgb(51,51,51)", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "rgb(51,51,51)" - }, - "baxis": { - "endlinecolor": "rgb(51,51,51)", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "rgb(51,51,51)" - }, - "type": "carpet" - } - ], - "choropleth": [ - { - "colorbar": { - "outlinewidth": 0, - "tickcolor": "rgb(237,237,237)", - "ticklen": 6, - "ticks": "inside" - }, - "type": "choropleth" - } - ], - "contour": [ - { - "colorbar": { - "outlinewidth": 0, - "tickcolor": "rgb(237,237,237)", - "ticklen": 6, - "ticks": "inside" - }, - "colorscale": [ - [ - 0, - "rgb(20,44,66)" - ], - [ - 1, - "rgb(90,179,244)" - ] - ], - "type": "contour" - } - ], - "contourcarpet": [ - { - "colorbar": { - "outlinewidth": 0, - "tickcolor": "rgb(237,237,237)", - "ticklen": 6, - "ticks": "inside" - }, - "type": "contourcarpet" - } - ], - "heatmap": [ - { - "colorbar": { - "outlinewidth": 0, - "tickcolor": "rgb(237,237,237)", - "ticklen": 6, - "ticks": "inside" - }, - "colorscale": [ - [ + { + "alignmentgroup": "True", + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "Stock", + "Stock", + "Stock", + "Stock", + "Stock", + "Stock", + "Stock", + "Stock", + "Stock", + "Stock" + ], + "legendgroup": "Stock", + "marker": { + "color": "darkorange" + }, + "name": "Stock", + "notched": false, + "offsetgroup": "Stock", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "Stock", + "Stock", + "Stock", + "Stock", + "Stock", + "Stock", + "Stock", + "Stock", + "Stock", + "Stock" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.4986029337714184, + 0.475396475420616, + 0.5431087997851897, + 0.5350510095748872, + 0.5400926111688614, + 0.4954373104486242, + 0.4777315291858331, + 0.541961545979461, + 0.5455604599048302, + 0.5393818844218652 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "Daphnet" + ], + "legendgroup": "Daphnet", + "marker": { + "color": "coral" + }, + "name": "Daphnet", + "notched": false, + "offsetgroup": "Daphnet", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "Daphnet" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.1322337577607795 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "MITDB", + "MITDB", + "MITDB", + "MITDB", + "MITDB", + "MITDB", + "MITDB", + "MITDB" + ], + "legendgroup": "MITDB", + "marker": { + "color": "lightsalmon" + }, + "name": "MITDB", + "notched": false, + "offsetgroup": "MITDB", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "MITDB", + "MITDB", + "MITDB", + "MITDB", + "MITDB", + "MITDB", + "MITDB", + "MITDB" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.0507139458312757, + 0.3268702492730955, + 0.0518362649808909, + 0.1255949221045285, + 0.0828161324340301, + 0.0359079902999632, + 0.180146074082762, + 0.050641754546515 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD" + ], + "legendgroup": "SMD", + "marker": { + "color": "darksalmon" + }, + "name": "SMD", + "notched": false, + "offsetgroup": "SMD", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.1739879072639512, + 0.4676583208692023, + 0.624519889926646, + 0.6659190414079911, + 0.2973063568175258, + 0.7369197639658849, + 0.2751382279955706, + 0.6707775056899709, + 0.6338839224024952, + 0.3845771674704322, + 0.104595225917234, + 0.5433968578662134, + 0.2527177732666589, + 0.7332309713918919, + 0.927628230857835, + 0.7126869009961889, + 0.6112770139947741, + 0.8135237501566093, + 0.3784668843234977, + 0.6571303430961545, + 0.5046448037088208, + 0.612443846388914, + 0.4209858532864562, + 0.3432486170500073, + 0.3982632962902694, + 0.5184789964676685, + 0.6291538316376156, + 0.7399945778006759, + 0.2295919594954881, + 0.4663934294305344, + 0.5970841100853315, + 0.5241437325921358, + 0.8454518385201374, + 0.7394118832833682, + 0.4768183520262633, + 0.9692890217588525, + 0.1626725350858836, + 0.6724261191290057 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "LTDB", + "LTDB", + "LTDB", + "LTDB", + "LTDB", + "LTDB", + "LTDB", + "LTDB", + "LTDB" + ], + "legendgroup": "LTDB", + "marker": { + "color": "firebrick" + }, + "name": "LTDB", + "notched": false, + "offsetgroup": "LTDB", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "LTDB", + "LTDB", + "LTDB", + "LTDB", + "LTDB", + "LTDB", + "LTDB", + "LTDB", + "LTDB" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.1263362673352569, + 0.1602013675075099, + 0.1305039057205968, + 0.450077386735166, + 0.4497357108799843, + 0.3999137592402245, + 0.2784675765691576, + 0.2308065730870653, + 0.2645752076477775 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "MGAB", + "MGAB", + "MGAB", + "MGAB", + "MGAB", + "MGAB", + "MGAB", + "MGAB", + "MGAB" + ], + "legendgroup": "MGAB", + "marker": { + "color": "rosybrown" + }, + "name": "MGAB", + "notched": false, + "offsetgroup": "MGAB", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "MGAB", + "MGAB", + "MGAB", + "MGAB", + "MGAB", + "MGAB", + "MGAB", + "MGAB", + "MGAB" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.0222984191676425, + 0.0017818131424542, + 0.061391827756733, + 0.0466341139577001, + 0.0685675121884226, + 0.0345460966063047, + 0.0742777379376246, + 0.0447332083316952, + 0.0585076306656903 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "SED", + "SED", + "SED" + ], + "legendgroup": "SED", + "marker": { + "color": "deeppink" + }, + "name": "SED", + "notched": false, + "offsetgroup": "SED", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "SED", + "SED", + "SED" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.036779545854983, + 0.0258856485910954, + 0.0288268357925318 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB" + ], + "legendgroup": "SVDB", + "marker": { + "color": "darkviolet" + }, + "name": "SVDB", + "notched": false, + "offsetgroup": "SVDB", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.2625413051603978, + 0.122037043958373, + 0.1891400409731513, + 0.1681774513220414, + 0.270687474855342, + 0.0937394912921102, + 0.032985558370704, + 0.1497421083667586, + 0.2453754565185324, + 0.0421354979427216, + 0.1195371178527897, + 0.1772786602964193, + 0.0894529858315303, + 0.1101152022240516, + 0.2039559368016421, + 0.0299078663953853, + 0.1222230227909392, + 0.0419841232950593, + 0.0875448241574165, + 0.0390117897298735 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "TAO", + "TAO", + "TAO" + ], + "legendgroup": "TAO", + "marker": { + "color": "darkmagenta" + }, + "name": "TAO", + "notched": false, + "offsetgroup": "TAO", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "TAO", + "TAO", + "TAO" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.9917565139263252, + 0.9976220792376168, + 0.9908138358856622 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "IOPS", + "IOPS", + "IOPS", + "IOPS", + "IOPS", + "IOPS", + "IOPS", + "IOPS", + "IOPS", + "IOPS", + "IOPS", + "IOPS", + "IOPS", + "IOPS", + "IOPS", + "IOPS", + "IOPS" + ], + "legendgroup": "IOPS", + "marker": { + "color": "blueviolet" + }, + "name": "IOPS", + "notched": false, + "offsetgroup": "IOPS", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "IOPS", + "IOPS", + "IOPS", + "IOPS", + "IOPS", + "IOPS", + "IOPS", + "IOPS", + "IOPS", + "IOPS", + "IOPS", + "IOPS", + "IOPS", + "IOPS", + "IOPS", + "IOPS", + "IOPS" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.517523824603947, + 0.3338438662281405, + 0.5123692773117389, + 0.2357208931753029, + 0.0603238578216998, + 0.7893535926609497, + 0.0726161247106597, + 0.1323081858343272, + 0.4958299451519251, + 0.4615416104180114, + 0.0053961253293434, + 0.0673505168943469, + 0.3761510412964243, + 0.1742383786599989, + 0.5486401473211884, + 0.0520672631794141, + 0.6080326913752112 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "NEK", + "NEK", + "NEK", + "NEK", + "NEK", + "NEK", + "NEK", + "NEK", + "NEK" + ], + "legendgroup": "NEK", + "marker": { + "color": "mediumpurple" + }, + "name": "NEK", + "notched": false, + "offsetgroup": "NEK", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "NEK", + "NEK", + "NEK", + "NEK", + "NEK", + "NEK", + "NEK", + "NEK", + "NEK" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.6984350672518377, + 0.2990130230594978, + 0.907080017092832, + 0.2518018174630895, + 0.9409840735007644, + 0.4315836653999498, + 0.770925185334963, + 0.8834973189041614, + 0.8234678240249466 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "CATSv2" + ], + "legendgroup": "CATSv2", + "marker": { + "color": "slateblue" + }, + "name": "CATSv2", + "notched": false, + "offsetgroup": "CATSv2", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "CATSv2" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.3580709697520762 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "TODS", + "TODS", + "TODS", + "TODS", + "TODS", + "TODS", + "TODS", + "TODS", + "TODS", + "TODS", + "TODS", + "TODS", + "TODS", + "TODS", + "TODS" + ], + "legendgroup": "TODS", + "marker": { + "color": "steelblue" + }, + "name": "TODS", + "notched": false, + "offsetgroup": "TODS", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "TODS", + "TODS", + "TODS", + "TODS", + "TODS", + "TODS", + "TODS", + "TODS", + "TODS", + "TODS", + "TODS", + "TODS", + "TODS", + "TODS", + "TODS" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.7358734481839604, + 0.2001661174144549, + 0.1067046209656631, + 0.0767851754314286, + 0.0304365206762823, + 0.3356917331740057, + 0.1836718046484004, + 0.1833445641382529, + 0.0570664027991004, + 0.2424635662092228, + 0.0359492701956271, + 0.0713726691376403, + 0.2646763176777088, + 0.4795585086588033, + 0.0813003969733314 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "Power" + ], + "legendgroup": "Power", + "marker": { + "color": "dodgerblue" + }, + "name": "Power", + "notched": false, + "offsetgroup": "Power", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "Power" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.0647879297198734 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR" + ], + "legendgroup": "UCR", + "marker": { + "color": "deepskyblue" + }, + "name": "UCR", + "notched": false, + "offsetgroup": "UCR", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR", + "UCR" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.0069772495601362, + 0.0089628765700838, + 0.002085360873248, + 0.0092874228230063, + 0.0027826956397329, + 0.0140700943827261, + 0.0236669703750808, + 0.0252276093548975, + 0.0012433218044805, + 0.0053233842152503, + 0.0053549965544177, + 0.000027156202476645665, + 0.0025079330429226, + 0.0020616445464086, + 0.0039858307506453, + 0.0248088136784361, + 0.095554247824611, + 0.00003782720532607051, + 0.0026951137334356, + 0.0051806020407553, + 0.0041930142221083, + 0.0014826083538777, + 0.0003014299837117, + 0.0016902039504813, + 0.018162606726345, + 0.0056202009379987, + 0.1005017225858331, + 0.0245840986173165, + 0.0102108814534344, + 0.0107803577975623, + 0.0421412375559872, + 0.0075686574388029, + 0.0119069993728264, + 0.0216676202078908, + 0.024112839096339, + 0.016191589285874, + 0.0188639187733665, + 0.0005376344086021, + 0.2000555643002249, + 0.0206157791516667, + 0.0041002343650395, + 0.0123603724617433, + 0.0236290402075518, + 0.0934941480180631, + 0.0027344193641158, + 0.2210698349478332, + 0.0065626260507514, + 0.0627698530583293, + 0.0015140229641193, + 0.0072011260923108, + 0.0045213544254887, + 0.0052409194344367, + 0.0163693604698666, + 0.000010053383466205551, + 0.005073159008011, + 0.217768873403919, + 0.0313694375683062, + 0.0003916022129999, + 0.0071265945027821, + 0.0052386204990606, + 0.0032186947547318, + 0.0040000919106813, + 0.0047495419954748, + 0.3663107886170949, + 0.0243791919211999, + 0.0052815393014724, + 0.0004901960784313, + 0.0109932460560662, + 0.0096875403325463, + 0.0175160862825493, + 0.0218929769298662, + 0.0029654217291781, + 0.0023312607914157, + 0.0014045530085647, + 0.0272440205863137, + 0.1171007739930341 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "SMAP", + "SMAP", + "SMAP", + "SMAP", + "SMAP", + "SMAP", + "SMAP", + "SMAP", + "SMAP", + "SMAP", + "SMAP", + "SMAP", + "SMAP", + "SMAP", + "SMAP", + "SMAP", + "SMAP", + "SMAP", + "SMAP" + ], + "legendgroup": "SMAP", + "marker": { + "color": "lightskyblue" + }, + "name": "SMAP", + "notched": false, + "offsetgroup": "SMAP", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "SMAP", + "SMAP", + "SMAP", + "SMAP", + "SMAP", + "SMAP", + "SMAP", + "SMAP", + "SMAP", + "SMAP", + "SMAP", + "SMAP", + "SMAP", + "SMAP", + "SMAP", + "SMAP", + "SMAP", + "SMAP", + "SMAP" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.1064141594909105, + 0.1586330208395241, + 0.6928206787179723, + 0.6883065138679298, + 0.8310728814944762, + 0.4882922185199669, + 0.1916384457245993, + 0.4213334762375586, + 0.0116975184264404, + 0.0936881522023821, + 0.177577983258983, + 0.3571644395302697, + 0.0734719949874024, + 0.0425459882060301, + 0.4609170649354331, + 0.0168684435671792, + 0.43220679467126, + 0.0076014630121591, + 0.0454632353418692 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "SWaT" + ], + "legendgroup": "SWaT", + "marker": { + "color": "yellowgreen" + }, + "name": "SWaT", + "notched": false, + "offsetgroup": "SWaT", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "SWaT" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.7376946947277406 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO" + ], + "legendgroup": "YAHOO", + "marker": { + "color": "darkseagreen" + }, + "name": "YAHOO", + "notched": false, + "offsetgroup": "YAHOO", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.0666666666666666, + 1, + 0.0042068284976138, + 0.0289201496901289, + 0.0007806401249024, + 1, + 0.1833971088435373, + 0.0055340860221973, + 1, + 1, + 0.0005970149253731, + 0.000653167864141, + 1, + 0.001841620626151, + 0.0269574796955106, + 0.0151515151515151, + 1, + 1, + 1, + 0.001082251082251, + 1, + 0.2, + 0.5007007708479327, + 1, + 1, + 0.6122207534699272, + 0.9775786665471188, + 0.0059312282126781, + 1, + 0.0056397402301469, + 0.5, + 0.0018018018018018, + 0.0009372071227741, + 0.0010384215991692, + 0.3968689642799195 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon" + ], + "legendgroup": "Exathlon", + "marker": { + "color": "darkolivegreen" + }, + "name": "Exathlon", + "notched": false, + "offsetgroup": "Exathlon", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.5535551120261957, + 0.9544025346025836, + 0.5801034660636765, + 0.066703245894172, + 0.9053131320367996, + 0.5735701881516397, + 0.8339883324471311, + 0.7021607022176044, + 0.9768759991505862, + 0.9583879186638148, + 0.8235144451712874, + 0.948377506556802, + 0.4923757439345692, + 0.992970255730044, + 0.8268523810515537, + 0.9131004008070718, + 0.8235144520346078, + 0.8074206554152196, + 0.8794038096452736, + 0.8339883870933744, + 0.9421833305020378, + 0.823514486350622, + 0.8339890589871864, + 0.6037584056717167, + 0.8235144657959571, + 0.0678573456146895, + 0.5757234711948978, + 0.0433941250304429, + 0.7015421886073693, + 0.8339889889097695, + 0.8279877998780905, + 0.959953084390605 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY" + ], + "legendgroup": "OPPORTUNITY", + "marker": { + "color": "darkgray" + }, + "name": "OPPORTUNITY", + "notched": false, + "offsetgroup": "OPPORTUNITY", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.8338482606401906, + 0.1031266032308773, + 0.9718491015673606, + 0.7031996296863017, + 0.4945030819575546, + 0.0663959124172727, + 0.0111357415519349, + 0.0125630075305213, + 0.776982310427042, + 0.0191787227930912, + 0.9178179727951572, + 0.95806896324386, + 0.9593104589769668, + 0.5265193865399211, + 0.7627048831680108, + 0.625724963271805, + 0.6557889742764019, + 0.0150569742739803, + 0.964420857540949, + 0.0186878621532751, + 0.914291235318628, + 0.9977372114715984, + 0.0151934393373235, + 0.0190607721577046, + 0.7597120203035821, + 0.5187870275682767, + 0.8095612578614829, + 0.843748197767318 + ], + "y0": " ", + "yaxis": "y" + } + ], + "layout": { + "boxmode": "overlay", + "height": 600, + "legend": { + "title": { + "text": "group" + }, + "tracegroupgap": 0 + }, + "margin": { + "t": 60 + }, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "rgb(51,51,51)" + }, + "error_y": { + "color": "rgb(51,51,51)" + }, + "marker": { + "line": { + "color": "rgb(237,237,237)", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "rgb(237,237,237)", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "barpolar" + } + ], + "carpet": [ + { + "aaxis": { + "endlinecolor": "rgb(51,51,51)", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "rgb(51,51,51)" + }, + "baxis": { + "endlinecolor": "rgb(51,51,51)", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "rgb(51,51,51)" + }, + "type": "carpet" + } + ], + "choropleth": [ + { + "colorbar": { + "outlinewidth": 0, + "tickcolor": "rgb(237,237,237)", + "ticklen": 6, + "ticks": "inside" + }, + "type": "choropleth" + } + ], + "contour": [ + { + "colorbar": { + "outlinewidth": 0, + "tickcolor": "rgb(237,237,237)", + "ticklen": 6, + "ticks": "inside" + }, + "colorscale": [ + [ + 0, + "rgb(20,44,66)" + ], + [ + 1, + "rgb(90,179,244)" + ] + ], + "type": "contour" + } + ], + "contourcarpet": [ + { + "colorbar": { + "outlinewidth": 0, + "tickcolor": "rgb(237,237,237)", + "ticklen": 6, + "ticks": "inside" + }, + "type": "contourcarpet" + } + ], + "heatmap": [ + { + "colorbar": { + "outlinewidth": 0, + "tickcolor": "rgb(237,237,237)", + "ticklen": 6, + "ticks": "inside" + }, + "colorscale": [ + [ + 0, + "rgb(20,44,66)" + ], + [ + 1, + "rgb(90,179,244)" + ] + ], + "type": "heatmap" + } + ], + "heatmapgl": [ + { + "colorbar": { + "outlinewidth": 0, + "tickcolor": "rgb(237,237,237)", + "ticklen": 6, + "ticks": "inside" + }, + "colorscale": [ + [ + 0, + "rgb(20,44,66)" + ], + [ + 1, + "rgb(90,179,244)" + ] + ], + "type": "heatmapgl" + } + ], + "histogram": [ + { + "marker": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "histogram" + } + ], + "histogram2d": [ + { + "colorbar": { + "outlinewidth": 0, + "tickcolor": "rgb(237,237,237)", + "ticklen": 6, + "ticks": "inside" + }, + "colorscale": [ + [ + 0, + "rgb(20,44,66)" + ], + [ + 1, + "rgb(90,179,244)" + ] + ], + "type": "histogram2d" + } + ], + "histogram2dcontour": [ + { + "colorbar": { + "outlinewidth": 0, + "tickcolor": "rgb(237,237,237)", + "ticklen": 6, + "ticks": "inside" + }, + "colorscale": [ + [ 0, "rgb(20,44,66)" ], @@ -327,651 +2267,2571 @@ "rgb(90,179,244)" ] ], - "type": "heatmap" + "type": "histogram2dcontour" + } + ], + "mesh3d": [ + { + "colorbar": { + "outlinewidth": 0, + "tickcolor": "rgb(237,237,237)", + "ticklen": 6, + "ticks": "inside" + }, + "type": "mesh3d" + } + ], + "parcoords": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "tickcolor": "rgb(237,237,237)", + "ticklen": 6, + "ticks": "inside" + } + }, + "type": "parcoords" + } + ], + "pie": [ + { + "automargin": true, + "type": "pie" + } + ], + "scatter": [ + { + "fillpattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + }, + "type": "scatter" + } + ], + "scatter3d": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "tickcolor": "rgb(237,237,237)", + "ticklen": 6, + "ticks": "inside" + } + }, + "marker": { + "colorbar": { + "outlinewidth": 0, + "tickcolor": "rgb(237,237,237)", + "ticklen": 6, + "ticks": "inside" + } + }, + "type": "scatter3d" + } + ], + "scattercarpet": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "tickcolor": "rgb(237,237,237)", + "ticklen": 6, + "ticks": "inside" + } + }, + "type": "scattercarpet" + } + ], + "scattergeo": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "tickcolor": "rgb(237,237,237)", + "ticklen": 6, + "ticks": "inside" + } + }, + "type": "scattergeo" + } + ], + "scattergl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "tickcolor": "rgb(237,237,237)", + "ticklen": 6, + "ticks": "inside" + } + }, + "type": "scattergl" + } + ], + "scattermapbox": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "tickcolor": "rgb(237,237,237)", + "ticklen": 6, + "ticks": "inside" + } + }, + "type": "scattermapbox" + } + ], + "scatterpolar": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "tickcolor": "rgb(237,237,237)", + "ticklen": 6, + "ticks": "inside" + } + }, + "type": "scatterpolar" + } + ], + "scatterpolargl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "tickcolor": "rgb(237,237,237)", + "ticklen": 6, + "ticks": "inside" + } + }, + "type": "scatterpolargl" + } + ], + "scatterternary": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "tickcolor": "rgb(237,237,237)", + "ticklen": 6, + "ticks": "inside" + } + }, + "type": "scatterternary" + } + ], + "surface": [ + { + "colorbar": { + "outlinewidth": 0, + "tickcolor": "rgb(237,237,237)", + "ticklen": 6, + "ticks": "inside" + }, + "colorscale": [ + [ + 0, + "rgb(20,44,66)" + ], + [ + 1, + "rgb(90,179,244)" + ] + ], + "type": "surface" + } + ], + "table": [ + { + "cells": { + "fill": { + "color": "rgb(237,237,237)" + }, + "line": { + "color": "white" + } + }, + "header": { + "fill": { + "color": "rgb(217,217,217)" + }, + "line": { + "color": "white" + } + }, + "type": "table" + } + ] + }, + "layout": { + "annotationdefaults": { + "arrowhead": 0, + "arrowwidth": 1 + }, + "autotypenumbers": "strict", + "coloraxis": { + "colorbar": { + "outlinewidth": 0, + "tickcolor": "rgb(237,237,237)", + "ticklen": 6, + "ticks": "inside" + } + }, + "colorscale": { + "sequential": [ + [ + 0, + "rgb(20,44,66)" + ], + [ + 1, + "rgb(90,179,244)" + ] + ], + "sequentialminus": [ + [ + 0, + "rgb(20,44,66)" + ], + [ + 1, + "rgb(90,179,244)" + ] + ] + }, + "colorway": [ + "#F8766D", + "#A3A500", + "#00BF7D", + "#00B0F6", + "#E76BF3" + ], + "font": { + "color": "rgb(51,51,51)" + }, + "geo": { + "bgcolor": "white", + "lakecolor": "white", + "landcolor": "rgb(237,237,237)", + "showlakes": true, + "showland": true, + "subunitcolor": "white" + }, + "hoverlabel": { + "align": "left" + }, + "hovermode": "closest", + "paper_bgcolor": "white", + "plot_bgcolor": "rgb(237,237,237)", + "polar": { + "angularaxis": { + "gridcolor": "white", + "linecolor": "white", + "showgrid": true, + "tickcolor": "rgb(51,51,51)", + "ticks": "outside" + }, + "bgcolor": "rgb(237,237,237)", + "radialaxis": { + "gridcolor": "white", + "linecolor": "white", + "showgrid": true, + "tickcolor": "rgb(51,51,51)", + "ticks": "outside" + } + }, + "scene": { + "xaxis": { + "backgroundcolor": "rgb(237,237,237)", + "gridcolor": "white", + "gridwidth": 2, + "linecolor": "white", + "showbackground": true, + "showgrid": true, + "tickcolor": "rgb(51,51,51)", + "ticks": "outside", + "zerolinecolor": "white" + }, + "yaxis": { + "backgroundcolor": "rgb(237,237,237)", + "gridcolor": "white", + "gridwidth": 2, + "linecolor": "white", + "showbackground": true, + "showgrid": true, + "tickcolor": "rgb(51,51,51)", + "ticks": "outside", + "zerolinecolor": "white" + }, + "zaxis": { + "backgroundcolor": "rgb(237,237,237)", + "gridcolor": "white", + "gridwidth": 2, + "linecolor": "white", + "showbackground": true, + "showgrid": true, + "tickcolor": "rgb(51,51,51)", + "ticks": "outside", + "zerolinecolor": "white" + } + }, + "shapedefaults": { + "fillcolor": "black", + "line": { + "width": 0 + }, + "opacity": 0.3 + }, + "ternary": { + "aaxis": { + "gridcolor": "white", + "linecolor": "white", + "showgrid": true, + "tickcolor": "rgb(51,51,51)", + "ticks": "outside" + }, + "baxis": { + "gridcolor": "white", + "linecolor": "white", + "showgrid": true, + "tickcolor": "rgb(51,51,51)", + "ticks": "outside" + }, + "bgcolor": "rgb(237,237,237)", + "caxis": { + "gridcolor": "white", + "linecolor": "white", + "showgrid": true, + "tickcolor": "rgb(51,51,51)", + "ticks": "outside" } + }, + "xaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "showgrid": true, + "tickcolor": "rgb(51,51,51)", + "ticks": "outside", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white" + }, + "yaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "showgrid": true, + "tickcolor": "rgb(51,51,51)", + "ticks": "outside", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white" + } + } + }, + "title": { + "text": "<b> Vergleich der Metriken zwischen den Gruppen für run_LSTMAD </b>", + "xanchor": "center", + "y": 0.95, + "yanchor": "top" + }, + "width": 900, + "xaxis": { + "anchor": "y", + "categoryarray": [ + "NAB", + "WSD", + "MSL", + "Stock", + "Daphnet", + "MITDB", + "SMD", + "LTDB", + "MGAB", + "SED", + "SVDB", + "TAO", + "IOPS", + "NEK", + "CATSv2", + "TODS", + "Power", + "UCR", + "SMAP", + "SWaT", + "YAHOO", + "Exathlon", + "OPPORTUNITY" + ], + "categoryorder": "array", + "domain": [ + 0, + 1 + ], + "title": { + "text": "Gruppen" + } + }, + "yaxis": { + "anchor": "x", + "domain": [ + 0, + 1 + ], + "title": { + "text": "AUC-PR" + } + } + } + } + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "#Boxplot\n", + "metric = 'AUC-PR'\n", + "fig = px.box(df, x = 'group',y=metric, color='group',color_discrete_map= colors,hover_name=\"group\", hover_data=[\"group\"])\n", + "fig.update_layout( \n", + " template = 'ggplot2',\n", + " title={\n", + " 'text': '<b> Vergleich der Metriken zwischen den Gruppen für '+model+' </b>',\n", + " 'y':0.95, \n", + " 'xanchor':'center',\n", + " 'yanchor':'top'},\n", + " height=600,width=900\n", + "\n", + " )\n", + "fig.update_xaxes(title_text= 'Gruppen')\n", + "fig.update_traces(marker=dict(size=12,\n", + " opacity=0.8,\n", + " line=dict(width=2,\n", + " color='DarkSlateGrey'),\n", + " ),\n", + " selector=dict(mode='markers'))\n", + "fig.show()" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Vergleich der Punk- und Sequenzanomalien pro Gruppe" + ] + }, + { + "cell_type": "code", + "execution_count": 49, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(397, 17)\n" + ] + }, + { + "data": { + "text/html": [ + "<div>\n", + "<style scoped>\n", + " .dataframe tbody tr th:only-of-type {\n", + " vertical-align: middle;\n", + " }\n", + "\n", + " .dataframe tbody tr th {\n", + " vertical-align: top;\n", + " }\n", + "\n", + " .dataframe thead th {\n", + " text-align: right;\n", + " }\n", + "</style>\n", + "<table border=\"1\" class=\"dataframe\">\n", + " <thead>\n", + " <tr style=\"text-align: right;\">\n", + " <th></th>\n", + " <th>params</th>\n", + " <th>file_name</th>\n", + " <th>duration</th>\n", + " <th>group</th>\n", + " <th>point anomaly</th>\n", + " <th>seq anomaly</th>\n", + " <th>AUC-PR</th>\n", + " <th>AUC-ROC</th>\n", + " <th>VUS-PR</th>\n", + " <th>VUS-ROC</th>\n", + " <th>Standard-F1</th>\n", + " <th>PA-F1</th>\n", + " <th>Event-based-F1</th>\n", + " <th>R-based-F1</th>\n", + " <th>Affiliation-F</th>\n", + " <th>Recall</th>\n", + " <th>Precision</th>\n", + " <th>anomaly</th>\n", + " </tr>\n", + " </thead>\n", + " <tbody>\n", + " <tr>\n", + " <th>0</th>\n", + " <td>{'window_size': 150, 'lr': 0.0004}</td>\n", + " <td>001_NAB_id_1_Facility_tr_1007_1st_2014.csv</td>\n", + " <td>3.095788</td>\n", + " <td>NAB</td>\n", + " <td>False</td>\n", + " <td>True</td>\n", + " <td>0.111481</td>\n", + " <td>0.500314</td>\n", + " <td>0.100945</td>\n", + " <td>0.505591</td>\n", + " <td>0.159277</td>\n", + " <td>0.994203</td>\n", + " <td>0.818182</td>\n", + " <td>0.794531</td>\n", + " <td>0.884825</td>\n", + " <td>0.023324</td>\n", + " <td>1.000000</td>\n", + " <td>Sequenzeanomalie</td>\n", + " </tr>\n", + " <tr>\n", + " <th>2</th>\n", + " <td>{'window_size': 150, 'lr': 0.0004}</td>\n", + " <td>003_NAB_id_3_WebService_tr_1362_1st_1462.csv</td>\n", + " <td>3.208956</td>\n", + " <td>NAB</td>\n", + " <td>False</td>\n", + " <td>True</td>\n", + " <td>0.121635</td>\n", + " <td>0.490010</td>\n", + " <td>0.117158</td>\n", + " <td>0.496531</td>\n", + " <td>0.175308</td>\n", + " <td>0.999672</td>\n", + " <td>0.933333</td>\n", + " <td>0.327012</td>\n", + " <td>0.945860</td>\n", + " <td>0.009192</td>\n", + " <td>0.700000</td>\n", + " <td>Sequenzeanomalie</td>\n", + " </tr>\n", + " <tr>\n", + " <th>5</th>\n", + " <td>{'window_size': 150, 'lr': 0.0004}</td>\n", + " <td>006_NAB_id_6_Traffic_tr_2579_1st_5839.csv</td>\n", + " <td>9.755734</td>\n", + " <td>NAB</td>\n", + " <td>False</td>\n", + " <td>True</td>\n", + " <td>0.086379</td>\n", + " <td>0.413945</td>\n", + " <td>0.100095</td>\n", + " <td>0.488165</td>\n", + " <td>0.181512</td>\n", + " <td>0.636785</td>\n", + " <td>0.500000</td>\n", + " <td>0.351660</td>\n", + " <td>0.685506</td>\n", + " <td>0.003883</td>\n", + " <td>0.666667</td>\n", + " <td>Sequenzeanomalie</td>\n", + " </tr>\n", + " <tr>\n", + " <th>6</th>\n", + " <td>{'window_size': 100, 'lr': 0.0008}</td>\n", + " <td>007_NAB_id_7_Traffic_tr_624_1st_2087.csv</td>\n", + " <td>2.961864</td>\n", + " <td>NAB</td>\n", + " <td>False</td>\n", + " <td>True</td>\n", + " <td>0.190021</td>\n", + " <td>0.564489</td>\n", + " <td>0.229572</td>\n", + " <td>0.661377</td>\n", + " <td>0.205743</td>\n", + " <td>1.000000</td>\n", + " <td>1.000000</td>\n", + " <td>0.349967</td>\n", + " <td>0.925632</td>\n", + " <td>0.056452</td>\n", + " <td>0.636364</td>\n", + " <td>Sequenzeanomalie</td>\n", + " </tr>\n", + " <tr>\n", + " <th>9</th>\n", + " <td>{'window_size': 100, 'lr': 0.0008}</td>\n", + " <td>010_NAB_id_10_WebService_tr_500_1st_271.csv</td>\n", + " <td>1.678742</td>\n", + " <td>NAB</td>\n", + " <td>False</td>\n", + " <td>True</td>\n", + " <td>0.226605</td>\n", + " <td>0.471617</td>\n", + " <td>0.327570</td>\n", + " <td>0.655625</td>\n", + " <td>0.259647</td>\n", + " <td>1.000000</td>\n", + " <td>1.000000</td>\n", + " <td>0.672282</td>\n", + " <td>0.965715</td>\n", + " <td>0.040541</td>\n", + " <td>0.857143</td>\n", + " <td>Sequenzeanomalie</td>\n", + " </tr>\n", + " </tbody>\n", + "</table>\n", + "</div>" + ], + "text/plain": [ + " params \\\n", + "0 {'window_size': 150, 'lr': 0.0004} \n", + "2 {'window_size': 150, 'lr': 0.0004} \n", + "5 {'window_size': 150, 'lr': 0.0004} \n", + "6 {'window_size': 100, 'lr': 0.0008} \n", + "9 {'window_size': 100, 'lr': 0.0008} \n", + "\n", + " file_name duration group point anomaly \\\n", + "0 001_NAB_id_1_Facility_tr_1007_1st_2014.csv 3.095788 NAB False \n", + "2 003_NAB_id_3_WebService_tr_1362_1st_1462.csv 3.208956 NAB False \n", + "5 006_NAB_id_6_Traffic_tr_2579_1st_5839.csv 9.755734 NAB False \n", + "6 007_NAB_id_7_Traffic_tr_624_1st_2087.csv 2.961864 NAB False \n", + "9 010_NAB_id_10_WebService_tr_500_1st_271.csv 1.678742 NAB False \n", + "\n", + " seq anomaly AUC-PR AUC-ROC VUS-PR VUS-ROC Standard-F1 PA-F1 \\\n", + "0 True 0.111481 0.500314 0.100945 0.505591 0.159277 0.994203 \n", + "2 True 0.121635 0.490010 0.117158 0.496531 0.175308 0.999672 \n", + "5 True 0.086379 0.413945 0.100095 0.488165 0.181512 0.636785 \n", + "6 True 0.190021 0.564489 0.229572 0.661377 0.205743 1.000000 \n", + "9 True 0.226605 0.471617 0.327570 0.655625 0.259647 1.000000 \n", + "\n", + " Event-based-F1 R-based-F1 Affiliation-F Recall Precision \\\n", + "0 0.818182 0.794531 0.884825 0.023324 1.000000 \n", + "2 0.933333 0.327012 0.945860 0.009192 0.700000 \n", + "5 0.500000 0.351660 0.685506 0.003883 0.666667 \n", + "6 1.000000 0.349967 0.925632 0.056452 0.636364 \n", + "9 1.000000 0.672282 0.965715 0.040541 0.857143 \n", + "\n", + " anomaly \n", + "0 Sequenzeanomalie \n", + "2 Sequenzeanomalie \n", + "5 Sequenzeanomalie \n", + "6 Sequenzeanomalie \n", + "9 Sequenzeanomalie " + ] + }, + "execution_count": 49, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "# Redesign Datafram and drop rows which have nether point nor sequence anomalies\n", + "df_anomaly = df.where(df['point anomaly'] | df['seq anomaly']).dropna(axis=0,how='all')\n", + "print(df.shape)\n", + "df_anomaly['anomaly'] = df_anomaly['point anomaly'].apply(lambda x: 'Punktanomalie' if x else 'Sequenzeanomalie')\n", + "df_anomaly.head()" + ] + }, + { + "cell_type": "code", + "execution_count": 50, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "c:\\Users\\desiw\\AppData\\Local\\Programs\\Python\\Python311\\Lib\\site-packages\\plotly\\express\\_core.py:1985: FutureWarning:\n", + "\n", + "When grouping with a length-1 list-like, you will need to pass a length-1 tuple to get_group in a future version of pandas. Pass `(name,)` instead of `name` to silence this warning.\n", + "\n" + ] + }, + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "alignmentgroup": "True", + "customdata": [ + [ + "NAB" + ], + [ + "NAB" + ], + [ + "NAB" + ], + [ + "NAB" + ], + [ + "NAB" + ], + [ + "NAB" + ], + [ + "NAB" + ], + [ + "NAB" + ], + [ + "NAB" + ], + [ + "NAB" + ], + [ + "NAB" + ], + [ + "NAB" + ] + ], + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{customdata[0]}<br>anomaly=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB", + "NAB" + ], + "legendgroup": "NAB", + "marker": { + "color": "darkgoldenrod" + }, + "name": "NAB", + "notched": false, + "offsetgroup": "NAB", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.1114811464088816, + 0.1216352929102622, + 0.0863785520999006, + 0.1900210818480747, + 0.2266054728160446, + 0.068930349229141, + 0.3019649323978445, + 0.114881668421924, + 0.1215419564314522, + 0.1002070301715388, + 0.4162293274911158, + 0.0959018159169502 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "customdata": [ + [ + "WSD" + ], + [ + "WSD" + ], + [ + "WSD" + ], + [ + "WSD" + ], + [ + "WSD" + ], + [ + "WSD" + ], + [ + "WSD" + ], + [ + "WSD" + ], + [ + "WSD" + ], + [ + "WSD" + ], + [ + "WSD" + ], + [ + "WSD" + ], + [ + "WSD" + ], + [ + "WSD" + ], + [ + "WSD" + ], + [ + "WSD" + ] + ], + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{customdata[0]}<br>anomaly=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD", + "WSD" + ], + "legendgroup": "WSD", + "marker": { + "color": "gold" + }, + "name": "WSD", + "notched": false, + "offsetgroup": "WSD", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "Sequenzeanomalie", + "Sequenzeanomalie", + "Punktanomalie", + "Punktanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.0156099553109553, + 0.0019784484444258, + 0.3340997095879228, + 0.3351756089703754, + 0.0045400576125231, + 0.0389981704366677, + 0.0010117170525816, + 0.0614972385801277, + 0.4692431313389204, + 0.3087434797746063, + 0.0025378322401993, + 0.0054371903916583, + 0.841388873875802, + 0.0160994444419026, + 0.0175155026911261, + 0.0061063718333813 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "customdata": [ + [ + "MSL" + ], + [ + "MSL" + ], + [ + "MSL" + ] + ], + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{customdata[0]}<br>anomaly=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "MSL", + "MSL", + "MSL" + ], + "legendgroup": "MSL", + "marker": { + "color": "orange" + }, + "name": "MSL", + "notched": false, + "offsetgroup": "MSL", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.2023077223729303, + 0.1432377785539599, + 0.4271686588299724 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "customdata": [ + [ + "Stock" + ], + [ + "Stock" + ], + [ + "Stock" + ], + [ + "Stock" + ], + [ + "Stock" + ], + [ + "Stock" + ], + [ + "Stock" + ], + [ + "Stock" + ], + [ + "Stock" + ], + [ + "Stock" + ] + ], + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{customdata[0]}<br>anomaly=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "Stock", + "Stock", + "Stock", + "Stock", + "Stock", + "Stock", + "Stock", + "Stock", + "Stock", + "Stock" + ], + "legendgroup": "Stock", + "marker": { + "color": "darkorange" + }, + "name": "Stock", + "notched": false, + "offsetgroup": "Stock", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "Punktanomalie", + "Punktanomalie", + "Punktanomalie", + "Punktanomalie", + "Punktanomalie", + "Punktanomalie", + "Punktanomalie", + "Punktanomalie", + "Punktanomalie", + "Punktanomalie" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.4986029337714184, + 0.475396475420616, + 0.5431087997851897, + 0.5350510095748872, + 0.5400926111688614, + 0.4954373104486242, + 0.4777315291858331, + 0.541961545979461, + 0.5455604599048302, + 0.5393818844218652 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "customdata": [ + [ + "Daphnet" + ] + ], + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{customdata[0]}<br>anomaly=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "Daphnet" + ], + "legendgroup": "Daphnet", + "marker": { + "color": "coral" + }, + "name": "Daphnet", + "notched": false, + "offsetgroup": "Daphnet", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "Sequenzeanomalie" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.1322337577607795 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "customdata": [ + [ + "MITDB" + ], + [ + "MITDB" + ], + [ + "MITDB" + ], + [ + "MITDB" + ], + [ + "MITDB" + ], + [ + "MITDB" + ], + [ + "MITDB" + ], + [ + "MITDB" + ] + ], + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{customdata[0]}<br>anomaly=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "MITDB", + "MITDB", + "MITDB", + "MITDB", + "MITDB", + "MITDB", + "MITDB", + "MITDB" + ], + "legendgroup": "MITDB", + "marker": { + "color": "lightsalmon" + }, + "name": "MITDB", + "notched": false, + "offsetgroup": "MITDB", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.0507139458312757, + 0.3268702492730955, + 0.0518362649808909, + 0.1255949221045285, + 0.0828161324340301, + 0.0359079902999632, + 0.180146074082762, + 0.050641754546515 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "customdata": [ + [ + "SMD" + ], + [ + "SMD" + ], + [ + "SMD" + ], + [ + "SMD" + ], + [ + "SMD" + ], + [ + "SMD" + ], + [ + "SMD" + ], + [ + "SMD" + ], + [ + "SMD" + ], + [ + "SMD" + ], + [ + "SMD" + ], + [ + "SMD" + ], + [ + "SMD" ], - "heatmapgl": [ - { - "colorbar": { - "outlinewidth": 0, - "tickcolor": "rgb(237,237,237)", - "ticklen": 6, - "ticks": "inside" - }, - "colorscale": [ - [ - 0, - "rgb(20,44,66)" - ], - [ - 1, - "rgb(90,179,244)" - ] - ], - "type": "heatmapgl" - } + [ + "SMD" + ] + ], + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{customdata[0]}<br>anomaly=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD", + "SMD" + ], + "legendgroup": "SMD", + "marker": { + "color": "darksalmon" + }, + "name": "SMD", + "notched": false, + "offsetgroup": "SMD", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.1739879072639512, + 0.6659190414079911, + 0.2973063568175258, + 0.6707775056899709, + 0.3845771674704322, + 0.7332309713918919, + 0.3784668843234977, + 0.6571303430961545, + 0.4209858532864562, + 0.3432486170500073, + 0.5184789964676685, + 0.6291538316376156, + 0.4663934294305344, + 0.5970841100853315 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "customdata": [ + [ + "LTDB" ], - "histogram": [ - { - "marker": { - "pattern": { - "fillmode": "overlay", - "size": 10, - "solidity": 0.2 - } - }, - "type": "histogram" - } + [ + "LTDB" + ], + [ + "LTDB" + ], + [ + "LTDB" + ], + [ + "LTDB" + ], + [ + "LTDB" + ], + [ + "LTDB" + ], + [ + "LTDB" + ], + [ + "LTDB" + ] + ], + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{customdata[0]}<br>anomaly=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "LTDB", + "LTDB", + "LTDB", + "LTDB", + "LTDB", + "LTDB", + "LTDB", + "LTDB", + "LTDB" + ], + "legendgroup": "LTDB", + "marker": { + "color": "firebrick" + }, + "name": "LTDB", + "notched": false, + "offsetgroup": "LTDB", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.1263362673352569, + 0.1602013675075099, + 0.1305039057205968, + 0.450077386735166, + 0.4497357108799843, + 0.3999137592402245, + 0.2784675765691576, + 0.2308065730870653, + 0.2645752076477775 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "customdata": [ + [ + "MGAB" + ], + [ + "MGAB" + ], + [ + "MGAB" + ], + [ + "MGAB" + ], + [ + "MGAB" + ], + [ + "MGAB" + ], + [ + "MGAB" + ], + [ + "MGAB" + ], + [ + "MGAB" + ] + ], + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{customdata[0]}<br>anomaly=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "MGAB", + "MGAB", + "MGAB", + "MGAB", + "MGAB", + "MGAB", + "MGAB", + "MGAB", + "MGAB" + ], + "legendgroup": "MGAB", + "marker": { + "color": "rosybrown" + }, + "name": "MGAB", + "notched": false, + "offsetgroup": "MGAB", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.0222984191676425, + 0.0017818131424542, + 0.061391827756733, + 0.0466341139577001, + 0.0685675121884226, + 0.0345460966063047, + 0.0742777379376246, + 0.0447332083316952, + 0.0585076306656903 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "customdata": [ + [ + "SED" + ], + [ + "SED" + ], + [ + "SED" + ] + ], + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{customdata[0]}<br>anomaly=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "SED", + "SED", + "SED" + ], + "legendgroup": "SED", + "marker": { + "color": "deeppink" + }, + "name": "SED", + "notched": false, + "offsetgroup": "SED", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.036779545854983, + 0.0258856485910954, + 0.0288268357925318 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "customdata": [ + [ + "SVDB" + ], + [ + "SVDB" + ], + [ + "SVDB" + ], + [ + "SVDB" + ], + [ + "SVDB" + ], + [ + "SVDB" + ], + [ + "SVDB" + ], + [ + "SVDB" + ], + [ + "SVDB" + ], + [ + "SVDB" + ], + [ + "SVDB" + ], + [ + "SVDB" + ], + [ + "SVDB" + ], + [ + "SVDB" + ], + [ + "SVDB" + ], + [ + "SVDB" + ], + [ + "SVDB" + ], + [ + "SVDB" + ], + [ + "SVDB" + ] + ], + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{customdata[0]}<br>anomaly=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB", + "SVDB" + ], + "legendgroup": "SVDB", + "marker": { + "color": "darkviolet" + }, + "name": "SVDB", + "notched": false, + "offsetgroup": "SVDB", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.2625413051603978, + 0.1891400409731513, + 0.1681774513220414, + 0.270687474855342, + 0.0937394912921102, + 0.032985558370704, + 0.1497421083667586, + 0.2453754565185324, + 0.0421354979427216, + 0.1195371178527897, + 0.1772786602964193, + 0.0894529858315303, + 0.1101152022240516, + 0.2039559368016421, + 0.0299078663953853, + 0.1222230227909392, + 0.0419841232950593, + 0.0875448241574165, + 0.0390117897298735 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "customdata": [ + [ + "TAO" + ], + [ + "TAO" + ] + ], + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{customdata[0]}<br>anomaly=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "TAO", + "TAO" + ], + "legendgroup": "TAO", + "marker": { + "color": "darkmagenta" + }, + "name": "TAO", + "notched": false, + "offsetgroup": "TAO", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "Punktanomalie", + "Punktanomalie" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.9976220792376168, + 0.9908138358856622 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "customdata": [ + [ + "IOPS" + ], + [ + "IOPS" + ], + [ + "IOPS" + ], + [ + "IOPS" + ], + [ + "IOPS" + ] + ], + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{customdata[0]}<br>anomaly=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "IOPS", + "IOPS", + "IOPS", + "IOPS", + "IOPS" + ], + "legendgroup": "IOPS", + "marker": { + "color": "blueviolet" + }, + "name": "IOPS", + "notched": false, + "offsetgroup": "IOPS", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "Punktanomalie", + "Punktanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.3338438662281405, + 0.0603238578216998, + 0.7893535926609497, + 0.1323081858343272, + 0.4615416104180114 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "customdata": [ + [ + "NEK" + ], + [ + "NEK" + ], + [ + "NEK" + ], + [ + "NEK" + ] + ], + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{customdata[0]}<br>anomaly=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "NEK", + "NEK", + "NEK", + "NEK" + ], + "legendgroup": "NEK", + "marker": { + "color": "mediumpurple" + }, + "name": "NEK", + "notched": false, + "offsetgroup": "NEK", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.6984350672518377, + 0.4315836653999498, + 0.770925185334963, + 0.8234678240249466 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "customdata": [ + [ + "CATSv2" + ] + ], + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{customdata[0]}<br>anomaly=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "CATSv2" + ], + "legendgroup": "CATSv2", + "marker": { + "color": "slateblue" + }, + "name": "CATSv2", + "notched": false, + "offsetgroup": "CATSv2", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "Sequenzeanomalie" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.3580709697520762 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "customdata": [ + [ + "TODS" ], - "histogram2d": [ - { - "colorbar": { - "outlinewidth": 0, - "tickcolor": "rgb(237,237,237)", - "ticklen": 6, - "ticks": "inside" - }, - "colorscale": [ - [ - 0, - "rgb(20,44,66)" - ], - [ - 1, - "rgb(90,179,244)" - ] - ], - "type": "histogram2d" - } + [ + "TODS" ], - "histogram2dcontour": [ - { - "colorbar": { - "outlinewidth": 0, - "tickcolor": "rgb(237,237,237)", - "ticklen": 6, - "ticks": "inside" - }, - "colorscale": [ - [ - 0, - "rgb(20,44,66)" - ], - [ - 1, - "rgb(90,179,244)" - ] - ], - "type": "histogram2dcontour" - } + [ + "TODS" ], - "mesh3d": [ - { - "colorbar": { - "outlinewidth": 0, - "tickcolor": "rgb(237,237,237)", - "ticklen": 6, - "ticks": "inside" - }, - "type": "mesh3d" - } + [ + "TODS" ], - "parcoords": [ - { - "line": { - "colorbar": { - "outlinewidth": 0, - "tickcolor": "rgb(237,237,237)", - "ticklen": 6, - "ticks": "inside" - } - }, - "type": "parcoords" - } + [ + "TODS" ], - "pie": [ - { - "automargin": true, - "type": "pie" - } + [ + "TODS" ], - "scatter": [ - { - "fillpattern": { - "fillmode": "overlay", - "size": 10, - "solidity": 0.2 - }, - "type": "scatter" - } + [ + "TODS" ], - "scatter3d": [ - { - "line": { - "colorbar": { - "outlinewidth": 0, - "tickcolor": "rgb(237,237,237)", - "ticklen": 6, - "ticks": "inside" - } - }, - "marker": { - "colorbar": { - "outlinewidth": 0, - "tickcolor": "rgb(237,237,237)", - "ticklen": 6, - "ticks": "inside" - } - }, - "type": "scatter3d" - } + [ + "TODS" ], - "scattercarpet": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "tickcolor": "rgb(237,237,237)", - "ticklen": 6, - "ticks": "inside" - } - }, - "type": "scattercarpet" - } + [ + "TODS" + ] + ], + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{customdata[0]}<br>anomaly=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "TODS", + "TODS", + "TODS", + "TODS", + "TODS", + "TODS", + "TODS", + "TODS", + "TODS" + ], + "legendgroup": "TODS", + "marker": { + "color": "steelblue" + }, + "name": "TODS", + "notched": false, + "offsetgroup": "TODS", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "Punktanomalie", + "Punktanomalie", + "Punktanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.7358734481839604, + 0.0304365206762823, + 0.3356917331740057, + 0.1836718046484004, + 0.1833445641382529, + 0.0570664027991004, + 0.0359492701956271, + 0.4795585086588033, + 0.0813003969733314 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "customdata": [ + [ + "Power" + ] + ], + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{customdata[0]}<br>anomaly=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "Power" + ], + "legendgroup": "Power", + "marker": { + "color": "dodgerblue" + }, + "name": "Power", + "notched": false, + "offsetgroup": "Power", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "Sequenzeanomalie" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.0647879297198734 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "customdata": [ + [ + "UCR" ], - "scattergeo": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "tickcolor": "rgb(237,237,237)", - "ticklen": 6, - "ticks": "inside" - } - }, - "type": "scattergeo" - } + [ + "UCR" ], - "scattergl": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "tickcolor": "rgb(237,237,237)", - "ticklen": 6, - "ticks": "inside" - } - }, - "type": "scattergl" - } + [ + "UCR" ], - "scattermapbox": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "tickcolor": "rgb(237,237,237)", - "ticklen": 6, - "ticks": "inside" - } - }, - "type": "scattermapbox" - } + [ + "UCR" + ], + [ + "UCR" + ] + ], + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{customdata[0]}<br>anomaly=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "UCR", + "UCR", + "UCR", + "UCR", + "UCR" + ], + "legendgroup": "UCR", + "marker": { + "color": "deepskyblue" + }, + "name": "UCR", + "notched": false, + "offsetgroup": "UCR", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "Punktanomalie", + "Punktanomalie", + "Punktanomalie", + "Punktanomalie", + "Punktanomalie" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.000027156202476645665, + 0.00003782720532607051, + 0.0005376344086021, + 0.000010053383466205551, + 0.0004901960784313 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "customdata": [ + [ + "SMAP" + ], + [ + "SMAP" + ] + ], + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{customdata[0]}<br>anomaly=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "SMAP", + "SMAP" + ], + "legendgroup": "SMAP", + "marker": { + "color": "lightskyblue" + }, + "name": "SMAP", + "notched": false, + "offsetgroup": "SMAP", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "Sequenzeanomalie", + "Sequenzeanomalie" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.4213334762375586, + 0.0454632353418692 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "customdata": [ + [ + "SWaT" + ] + ], + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{customdata[0]}<br>anomaly=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "SWaT" + ], + "legendgroup": "SWaT", + "marker": { + "color": "yellowgreen" + }, + "name": "SWaT", + "notched": false, + "offsetgroup": "SWaT", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "Sequenzeanomalie" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.7376946947277406 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "customdata": [ + [ + "YAHOO" ], - "scatterpolar": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "tickcolor": "rgb(237,237,237)", - "ticklen": 6, - "ticks": "inside" - } - }, - "type": "scatterpolar" - } + [ + "YAHOO" ], - "scatterpolargl": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "tickcolor": "rgb(237,237,237)", - "ticklen": 6, - "ticks": "inside" - } - }, - "type": "scatterpolargl" - } + [ + "YAHOO" ], - "scatterternary": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "tickcolor": "rgb(237,237,237)", - "ticklen": 6, - "ticks": "inside" - } - }, - "type": "scatterternary" - } + [ + "YAHOO" ], - "surface": [ - { - "colorbar": { - "outlinewidth": 0, - "tickcolor": "rgb(237,237,237)", - "ticklen": 6, - "ticks": "inside" - }, - "colorscale": [ - [ - 0, - "rgb(20,44,66)" - ], - [ - 1, - "rgb(90,179,244)" - ] - ], - "type": "surface" - } + [ + "YAHOO" ], - "table": [ - { - "cells": { - "fill": { - "color": "rgb(237,237,237)" - }, - "line": { - "color": "white" - } - }, - "header": { - "fill": { - "color": "rgb(217,217,217)" - }, - "line": { - "color": "white" - } - }, - "type": "table" - } - ] - }, - "layout": { - "annotationdefaults": { - "arrowhead": 0, - "arrowwidth": 1 - }, - "autotypenumbers": "strict", - "coloraxis": { - "colorbar": { - "outlinewidth": 0, - "tickcolor": "rgb(237,237,237)", - "ticklen": 6, - "ticks": "inside" - } - }, - "colorscale": { - "sequential": [ - [ - 0, - "rgb(20,44,66)" - ], - [ - 1, - "rgb(90,179,244)" - ] - ], - "sequentialminus": [ - [ - 0, - "rgb(20,44,66)" - ], - [ - 1, - "rgb(90,179,244)" - ] - ] - }, - "colorway": [ - "#F8766D", - "#A3A500", - "#00BF7D", - "#00B0F6", - "#E76BF3" + [ + "YAHOO" ], - "font": { - "color": "rgb(51,51,51)" - }, - "geo": { - "bgcolor": "white", - "lakecolor": "white", - "landcolor": "rgb(237,237,237)", - "showlakes": true, - "showland": true, - "subunitcolor": "white" - }, - "hoverlabel": { - "align": "left" - }, - "hovermode": "closest", - "paper_bgcolor": "white", - "plot_bgcolor": "rgb(237,237,237)", - "polar": { - "angularaxis": { - "gridcolor": "white", - "linecolor": "white", - "showgrid": true, - "tickcolor": "rgb(51,51,51)", - "ticks": "outside" - }, - "bgcolor": "rgb(237,237,237)", - "radialaxis": { - "gridcolor": "white", - "linecolor": "white", - "showgrid": true, - "tickcolor": "rgb(51,51,51)", - "ticks": "outside" - } - }, - "scene": { - "xaxis": { - "backgroundcolor": "rgb(237,237,237)", - "gridcolor": "white", - "gridwidth": 2, - "linecolor": "white", - "showbackground": true, - "showgrid": true, - "tickcolor": "rgb(51,51,51)", - "ticks": "outside", - "zerolinecolor": "white" - }, - "yaxis": { - "backgroundcolor": "rgb(237,237,237)", - "gridcolor": "white", - "gridwidth": 2, - "linecolor": "white", - "showbackground": true, - "showgrid": true, - "tickcolor": "rgb(51,51,51)", - "ticks": "outside", - "zerolinecolor": "white" - }, - "zaxis": { - "backgroundcolor": "rgb(237,237,237)", - "gridcolor": "white", - "gridwidth": 2, - "linecolor": "white", - "showbackground": true, - "showgrid": true, - "tickcolor": "rgb(51,51,51)", - "ticks": "outside", - "zerolinecolor": "white" - } - }, - "shapedefaults": { - "fillcolor": "black", - "line": { - "width": 0 - }, - "opacity": 0.3 - }, - "ternary": { - "aaxis": { - "gridcolor": "white", - "linecolor": "white", - "showgrid": true, - "tickcolor": "rgb(51,51,51)", - "ticks": "outside" - }, - "baxis": { - "gridcolor": "white", - "linecolor": "white", - "showgrid": true, - "tickcolor": "rgb(51,51,51)", - "ticks": "outside" - }, - "bgcolor": "rgb(237,237,237)", - "caxis": { - "gridcolor": "white", - "linecolor": "white", - "showgrid": true, - "tickcolor": "rgb(51,51,51)", - "ticks": "outside" - } - }, - "xaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "showgrid": true, - "tickcolor": "rgb(51,51,51)", - "ticks": "outside", - "title": { - "standoff": 15 - }, - "zerolinecolor": "white" - }, - "yaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "showgrid": true, - "tickcolor": "rgb(51,51,51)", - "ticks": "outside", - "title": { - "standoff": 15 - }, - "zerolinecolor": "white" - } - } - }, - "title": { - "text": "<b> Vergleich der Metriken zwischen den Gruppen für POLY </b>", - "xanchor": "center", - "y": 0.95, - "yanchor": "top" - }, - "width": 900, - "xaxis": { - "anchor": "y", - "categoryarray": [ - "NAB" + [ + "YAHOO" + ], + [ + "YAHOO" + ], + [ + "YAHOO" + ], + [ + "YAHOO" + ], + [ + "YAHOO" + ], + [ + "YAHOO" + ], + [ + "YAHOO" + ], + [ + "YAHOO" + ], + [ + "YAHOO" + ], + [ + "YAHOO" + ], + [ + "YAHOO" + ], + [ + "YAHOO" + ], + [ + "YAHOO" + ], + [ + "YAHOO" + ], + [ + "YAHOO" + ], + [ + "YAHOO" + ], + [ + "YAHOO" + ], + [ + "YAHOO" + ], + [ + "YAHOO" + ], + [ + "YAHOO" + ], + [ + "YAHOO" + ], + [ + "YAHOO" + ], + [ + "YAHOO" + ], + [ + "YAHOO" + ], + [ + "YAHOO" + ], + [ + "YAHOO" + ], + [ + "YAHOO" + ], + [ + "YAHOO" + ] ], - "categoryorder": "array", - "domain": [ - 0, - 1 + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{customdata[0]}<br>anomaly=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO", + "YAHOO" ], - "title": { - "text": "Gruppen" - } + "legendgroup": "YAHOO", + "marker": { + "color": "darkseagreen" + }, + "name": "YAHOO", + "notched": false, + "offsetgroup": "YAHOO", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "Punktanomalie", + "Punktanomalie", + "Punktanomalie", + "Sequenzeanomalie", + "Punktanomalie", + "Punktanomalie", + "Punktanomalie", + "Punktanomalie", + "Punktanomalie", + "Punktanomalie", + "Punktanomalie", + "Punktanomalie", + "Punktanomalie", + "Punktanomalie", + "Sequenzeanomalie", + "Punktanomalie", + "Punktanomalie", + "Punktanomalie", + "Punktanomalie", + "Punktanomalie", + "Punktanomalie", + "Punktanomalie", + "Punktanomalie", + "Punktanomalie", + "Punktanomalie", + "Punktanomalie", + "Sequenzeanomalie", + "Punktanomalie", + "Punktanomalie", + "Punktanomalie", + "Punktanomalie", + "Punktanomalie", + "Punktanomalie", + "Punktanomalie" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.0666666666666666, + 1, + 0.0042068284976138, + 0.0289201496901289, + 0.0007806401249024, + 1, + 0.1833971088435373, + 0.0055340860221973, + 1, + 1, + 0.0005970149253731, + 0.000653167864141, + 1, + 0.001841620626151, + 0.0269574796955106, + 0.0151515151515151, + 1, + 1, + 1, + 0.001082251082251, + 1, + 0.2, + 0.5007007708479327, + 1, + 1, + 0.6122207534699272, + 0.9775786665471188, + 0.0059312282126781, + 1, + 0.0056397402301469, + 0.5, + 0.0018018018018018, + 0.0009372071227741, + 0.0010384215991692 + ], + "y0": " ", + "yaxis": "y" }, - "yaxis": { - "anchor": "x", - "domain": [ - 0, - 1 + { + "alignmentgroup": "True", + "customdata": [ + [ + "Exathlon" + ], + [ + "Exathlon" + ], + [ + "Exathlon" + ], + [ + "Exathlon" + ], + [ + "Exathlon" + ], + [ + "Exathlon" + ], + [ + "Exathlon" + ], + [ + "Exathlon" + ], + [ + "Exathlon" + ], + [ + "Exathlon" + ], + [ + "Exathlon" + ], + [ + "Exathlon" + ], + [ + "Exathlon" + ], + [ + "Exathlon" + ], + [ + "Exathlon" + ], + [ + "Exathlon" + ], + [ + "Exathlon" + ], + [ + "Exathlon" + ], + [ + "Exathlon" + ], + [ + "Exathlon" + ], + [ + "Exathlon" + ], + [ + "Exathlon" + ], + [ + "Exathlon" + ], + [ + "Exathlon" + ], + [ + "Exathlon" + ], + [ + "Exathlon" + ], + [ + "Exathlon" + ], + [ + "Exathlon" + ], + [ + "Exathlon" + ], + [ + "Exathlon" + ], + [ + "Exathlon" + ], + [ + "Exathlon" + ] ], - "title": { - "text": "AUC-PR" - } - } - } - } - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "#Boxplot\n", - "metric = 'AUC-PR'\n", - "fig = px.box(df, x = 'group',y=metric, color='group')\n", - "fig.update_layout( \n", - " template = 'ggplot2',\n", - " title={\n", - " 'text': '<b> Vergleich der Metriken zwischen den Gruppen für '+model+' </b>',\n", - " 'y':0.95, \n", - " 'xanchor':'center',\n", - " 'yanchor':'top'},\n", - " height=600,width=900\n", - "\n", - " )\n", - "fig.update_xaxes(title_text= 'Gruppen')\n", - "fig.update_traces(marker=dict(size=12,\n", - " opacity=0.8,\n", - " line=dict(width=2,\n", - " color='DarkSlateGrey'),\n", - " ),\n", - " selector=dict(mode='markers'))\n", - "fig.show()" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Vergleich der Punk- und Sequenzanomalien pro Gruppe" - ] - }, - { - "cell_type": "code", - "execution_count": 15, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "(3, 15)\n" - ] - }, - { - "data": { - "text/html": [ - "<div>\n", - "<style scoped>\n", - " .dataframe tbody tr th:only-of-type {\n", - " vertical-align: middle;\n", - " }\n", - "\n", - " .dataframe tbody tr th {\n", - " vertical-align: top;\n", - " }\n", - "\n", - " .dataframe thead th {\n", - " text-align: right;\n", - " }\n", - "</style>\n", - "<table border=\"1\" class=\"dataframe\">\n", - " <thead>\n", - " <tr style=\"text-align: right;\">\n", - " <th></th>\n", - " <th>params</th>\n", - " <th>file_name</th>\n", - " <th>duration</th>\n", - " <th>group</th>\n", - " <th>point anomaly</th>\n", - " <th>seq anomaly</th>\n", - " <th>AUC-PR</th>\n", - " <th>AUC-ROC</th>\n", - " <th>VUS-PR</th>\n", - " <th>VUS-ROC</th>\n", - " <th>Standard-F1</th>\n", - " <th>PA-F1</th>\n", - " <th>Event-based-F1</th>\n", - " <th>R-based-F1</th>\n", - " <th>Affiliation-F</th>\n", - " <th>anomaly</th>\n", - " </tr>\n", - " </thead>\n", - " <tbody>\n", - " <tr>\n", - " <th>0</th>\n", - " <td>{'periodicity': 3, 'power': 4}</td>\n", - " <td>001_NAB_id_1_Facility_tr_1007_1st_2014.csv</td>\n", - " <td>1.578039</td>\n", - " <td>NAB</td>\n", - " <td>False</td>\n", - " <td>True</td>\n", - " <td>0.423304</td>\n", - " <td>0.680252</td>\n", - " <td>0.424395</td>\n", - " <td>0.684142</td>\n", - " <td>0.478923</td>\n", - " <td>1.0</td>\n", - " <td>1.0</td>\n", - " <td>0.537912</td>\n", - " <td>0.966155</td>\n", - " <td>Sequenzeanomalie</td>\n", - " </tr>\n", - " </tbody>\n", - "</table>\n", - "</div>" - ], - "text/plain": [ - " params file_name \n", - "0 {'periodicity': 3, 'power': 4} 001_NAB_id_1_Facility_tr_1007_1st_2014.csv \\\n", - "\n", - " duration group point anomaly seq anomaly AUC-PR AUC-ROC VUS-PR \n", - "0 1.578039 NAB False True 0.423304 0.680252 0.424395 \\\n", - "\n", - " VUS-ROC Standard-F1 PA-F1 Event-based-F1 R-based-F1 Affiliation-F \n", - "0 0.684142 0.478923 1.0 1.0 0.537912 0.966155 \\\n", - "\n", - " anomaly \n", - "0 Sequenzeanomalie " - ] - }, - "execution_count": 15, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "# Redesign Datafram and drop rows which have nether point nor sequence anomalies\n", - "df_anomaly = df.where(df['point anomaly'] | df['seq anomaly']).dropna(axis=0,how='all')\n", - "print(df.shape)\n", - "df_anomaly['anomaly'] = df_anomaly['point anomaly'].apply(lambda x: 'Punktanomalie' if x else 'Sequenzeanomalie')\n", - "df_anomaly.head()" - ] - }, - { - "cell_type": "code", - "execution_count": 17, - "metadata": {}, - "outputs": [ - { - "data": { - "application/vnd.plotly.v1+json": { - "config": { - "plotlyServerURL": "https://plot.ly" - }, - "data": [ + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{customdata[0]}<br>anomaly=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon", + "Exathlon" + ], + "legendgroup": "Exathlon", + "marker": { + "color": "darkolivegreen" + }, + "name": "Exathlon", + "notched": false, + "offsetgroup": "Exathlon", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 0.5535551120261957, + 0.9544025346025836, + 0.5801034660636765, + 0.066703245894172, + 0.9053131320367996, + 0.5735701881516397, + 0.8339883324471311, + 0.7021607022176044, + 0.9768759991505862, + 0.9583879186638148, + 0.8235144451712874, + 0.948377506556802, + 0.4923757439345692, + 0.992970255730044, + 0.8268523810515537, + 0.9131004008070718, + 0.8235144520346078, + 0.8074206554152196, + 0.8794038096452736, + 0.8339883870933744, + 0.9421833305020378, + 0.823514486350622, + 0.8339890589871864, + 0.6037584056717167, + 0.8235144657959571, + 0.0678573456146895, + 0.5757234711948978, + 0.0433941250304429, + 0.7015421886073693, + 0.8339889889097695, + 0.8279877998780905, + 0.959953084390605 + ], + "y0": " ", + "yaxis": "y" + }, { "alignmentgroup": "True", - "hovertemplate": "group=NAB<br>anomaly=%{x}<br>AUC-PR=%{y}<extra></extra>", - "legendgroup": "NAB", + "customdata": [ + [ + "OPPORTUNITY" + ], + [ + "OPPORTUNITY" + ], + [ + "OPPORTUNITY" + ], + [ + "OPPORTUNITY" + ], + [ + "OPPORTUNITY" + ], + [ + "OPPORTUNITY" + ], + [ + "OPPORTUNITY" + ], + [ + "OPPORTUNITY" + ], + [ + "OPPORTUNITY" + ], + [ + "OPPORTUNITY" + ], + [ + "OPPORTUNITY" + ], + [ + "OPPORTUNITY" + ], + [ + "OPPORTUNITY" + ] + ], + "hovertemplate": "<b>%{hovertext}</b><br><br>group=%{customdata[0]}<br>anomaly=%{x}<br>AUC-PR=%{y}<extra></extra>", + "hovertext": [ + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY", + "OPPORTUNITY" + ], + "legendgroup": "OPPORTUNITY", "marker": { - "color": "#636efa" + "color": "darkgray" }, - "name": "NAB", + "name": "OPPORTUNITY", "notched": false, - "offsetgroup": "NAB", + "offsetgroup": "OPPORTUNITY", "orientation": "v", "showlegend": true, "type": "box", "x": [ + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", + "Sequenzeanomalie", "Sequenzeanomalie" ], "x0": " ", "xaxis": "x", "y": [ - 0.4233042158969708 + 0.9718491015673606, + 0.4945030819575546, + 0.0111357415519349, + 0.0125630075305213, + 0.9178179727951572, + 0.9593104589769668, + 0.625724963271805, + 0.0186878621532751, + 0.914291235318628, + 0.0190607721577046, + 0.5187870275682767, + 0.8095612578614829, + 0.843748197767318 ], "y0": " ", "yaxis": "y" @@ -1552,7 +5412,7 @@ } }, "title": { - "text": "<b> Vergleich der Ergebnisse der Anomalien zwischen den Gruppen für POLY </b>", + "text": "<b> Vergleich der Ergebnisse der Anomalien zwischen den Gruppen für run_LSTMAD </b>", "xanchor": "center", "y": 0.95, "yanchor": "top" @@ -1588,7 +5448,7 @@ "source": [ "#Boxplot for anomalies\n", "metric = 'AUC-PR'\n", - "fig = px.box(df_anomaly, x = 'anomaly',y=metric, color='group')\n", + "fig = px.box(df_anomaly, x = 'anomaly',y=metric, color='group',color_discrete_map= colors,hover_name=\"group\", hover_data=[\"group\"])\n", "fig.update_layout( \n", " template = 'ggplot2',\n", " title={\n", diff --git a/src/models/sofia_modelle/call_cnn.py b/src/models/sofia_modelle/call_cnn.py index 9953690..26e5eee 100644 --- a/src/models/sofia_modelle/call_cnn.py +++ b/src/models/sofia_modelle/call_cnn.py @@ -2,17 +2,16 @@ from CNN import CNN import sys import pathlib sys.path.append(str(pathlib.Path.absolute)+ '../../') -from src.utils.slidingWindows import find_length_rank from src.run_model_wrapper import main #optimal hyperparameters from autors: 'POLY': {'periodicity': 1, 'power': 4} params = { 'window_size': [50, 100, 150], - 'num_channel': [[32, 32, 40], [16, 32, 64]] + 'lr': [5e-5, 1e-4, 5e-4, 8e-4, 1e-3] } -def run_CNN(data_train, data_test, window_size=100, num_channel=[32, 32, 40], lr=0.0008, n_jobs=1): - clf = CNN(window_size=window_size, num_channel=num_channel, feats=data_test.shape[1], lr=lr, batch_size=128) +def run_CNN(data_train, data_test, window_size=100, num_channel=[32, 32, 40], lr=0.0008,batch_size=128, n_jobs=1): + clf = CNN(window_size=window_size, num_channel=num_channel, feats=data_test.shape[1], lr=lr, batch_size=batch_size) clf.fit(data_train) score = clf.decision_function(data_test) return score.ravel() -- GitLab