{
 "cells": [
  {
   "id": "cell-00",
   "metadata": {},
   "cell_type": "markdown",
   "source": [
    "# SignalWorks: turn noisy telemetry into an incident queue\n",
    "\n",
    "**Casebook links: TEL-10 · Real pretrained model · Synthetic data · Retrospective batch analysis**\n",
    "\n",
    "A network operations analyst sees latency, packet loss, and throughput. Can an anomaly detector help triage a service disruption without acknowledging alarms or changing production?\n",
    "\n",
    "The saved example generates synthetic telemetry, inspects model inputs, runs NVIDIA's diffusion checkpoint, compares it with a robust baseline, and translates point flags into a review workload. No safety action or production write is authorized.\n",
    "\n",
    "## Prerequisites and support\n",
    "\n",
    "**Dependency-incomplete download:** this `.ipynb` preserves the lesson and its saved outputs, but is **not a standalone runnable package**. It does not include `time_series_lab.py`, `time_series_prepare.py`, `time-series-model-lock.json`, `mementropy.mplstyle`, the pinned upstream SDK checkout, or model assets. There is no verified public support bundle or locked Python environment for this download. Installing Jupyter alone will not make Run All work.\n",
    "\n",
    "The original setup used Python 3.12 with Jupyter/IPython, NumPy, pandas, Matplotlib, PyTorch and the matching upstream SDK dependencies. Forecasting cells use pandas' `include_groups` API (pandas 2.2 or later). These are prerequisites, not a tested installation recipe. The missing helper expected upstream code under `.runtime/NV-Tesseract` and model-family asset directories beside it. Its preparation step downloads assets; its activation step checks revisions and hashes before loading. The forecasting and anomaly packages share the `sdk` namespace and require separate fresh kernels.\n",
    "\n",
    "Retained identities for an independently reviewed reconstruction:\n",
    "\n",
    "- Upstream [NVIDIA/NV-Tesseract](https://github.com/NVIDIA/NV-Tesseract), revision `7fa53ac50abcd8829550d9399875f24170c1d0e8`.\n",
    "- Diffusion model: `nvidia/nv-tesseract-ad-diffusion`, revision `e8dbafbbcad2e2539d2cb6423b27b579f80ed54c`; required files include `final_model.pth` and `curriculum_medium.yaml`.\n",
    "\n",
    "Use the official source and model cards linked below to review licenses, hardware support and security requirements before acquiring assets. Checkpoint and standardizer loading can deserialize code-capable formats; verify provenance and hashes in a disposable environment. The public download includes no weights or credentials. A complete helper distribution, dependency lock and clean-environment smoke test remain unverified; this page does not offer a one-command rerun.\n",
    "\n",
    "**Evidence:** these are saved outputs from an earlier execution, not rerun for the 2026-10-29 editorial update. Rendering displays saved cells; it does not execute them. The public download is not a locked environment or a production validation.\n"
   ]
  },
  {
   "id": "cell-01",
   "metadata": {},
   "cell_type": "code",
   "execution_count": 1,
   "source": [
    "from pathlib import Path\n",
    "import sys, time, json, hashlib\n",
    "import numpy as np\n",
    "import pandas as pd\n",
    "import matplotlib.pyplot as plt\n",
    "from IPython.display import display, Markdown, JSON\n",
    "# Requires the separately prepared runtime described above; the public download is dependency-incomplete.\n",
    "from time_series_lab import activate, features, anomaly_metrics, style, LOCK, RUNTIME\n",
    "style()\n",
    "weights = activate('ad')\n",
    "from sdk.anomaly_analysis import perform_anomaly_analysis_with_diffusion\n",
    "from sdk.inference_ad import DEVICE, set_seed\n",
    "print({'model': 'NV-Tesseract-AD', 'device': DEVICE,\n",
    "       'checkpoint_revision': LOCK['ad']['revision'], 'diffusion_samples': 3})\n"
   ],
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'model': 'NV-Tesseract-AD', 'device': 'mps', 'checkpoint_revision': 'e8dbafbbcad2e2539d2cb6423b27b579f80ed54c', 'diffusion_samples': 3}\n"
     ]
    }
   ]
  },
  {
   "id": "cell-02",
   "metadata": {},
   "cell_type": "markdown",
   "source": [
    "## The data and the decision\n",
    "\n",
    "Every value below is generated teaching data, not captured factory or subscriber telemetry. Labels are retained only for evaluation. The first 120 points are a declared normal baseline for the comparator; the remaining points are the scoring interval. The NVIDIA SDK operates on the entire retrospective batch.\n"
   ]
  },
  {
   "id": "cell-03",
   "metadata": {},
   "cell_type": "code",
   "execution_count": 2,
   "source": [
    "rng = np.random.default_rng(29)\n",
    "t = np.arange(300)\n",
    "df = pd.DataFrame({\n",
    "    'timestamp': pd.date_range('2026-02-01', periods=len(t), freq='min'),\n",
    "    'latency_ms': 35 + 4*np.sin(t/18) + rng.normal(0,1,len(t)),\n",
    "    'packet_loss_pct': .15 + .03*np.sin(t/23) + rng.normal(0,.01,len(t)),\n",
    "    'throughput_mbps': 180 + 15*np.sin(t/18) + rng.normal(0,2,len(t)),\n",
    "})\n",
    "columns = ['latency_ms', 'packet_loss_pct', 'throughput_mbps']\n",
    "intervals = [(155,169), (235,250)]\n",
    "df.loc[155:168, 'latency_ms'] += 70\n",
    "df.loc[155:168, 'packet_loss_pct'] += 1.2\n",
    "df.loc[235:249, 'throughput_mbps'] -= 80\n",
    "truth = np.zeros(len(df), dtype=int)\n",
    "for start, stop in intervals:\n",
    "    truth[start:stop] = 1\n",
    "model_input = features(df, columns)\n",
    "assert model_input.columns.tolist() == columns\n",
    "assert len(model_input) == len(truth) and np.isfinite(model_input).all().all()\n",
    "print('Model sees only:', model_input.columns.tolist())\n",
    "display(df.head())\n",
    "fig, axes = plt.subplots(3, 1, figsize=(11,7), sharex=True)\n",
    "for ax, column in zip(axes, columns):\n",
    "    ax.plot(df.timestamp, df[column], linewidth=1.5)\n",
    "    for start, stop in intervals:\n",
    "        ax.axvspan(df.timestamp[start], df.timestamp[stop-1], color='#cf222e', alpha=.15)\n",
    "    ax.set_ylabel(column.replace('_', ' '))\n",
    "axes[0].set_title('Synthetic telemetry — shaded intervals are injected events')\n",
    "plt.tight_layout(); plt.show()\n"
   ],
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Model sees only: ['latency_ms', 'packet_loss_pct', 'throughput_mbps']\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>timestamp</th>\n",
       "      <th>latency_ms</th>\n",
       "      <th>packet_loss_pct</th>\n",
       "      <th>throughput_mbps</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>2026-02-01 00:00:00</td>\n",
       "      <td>34.608130</td>\n",
       "      <td>0.163162</td>\n",
       "      <td>180.790197</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2026-02-01 00:01:00</td>\n",
       "      <td>35.272028</td>\n",
       "      <td>0.149154</td>\n",
       "      <td>176.972458</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>2026-02-01 00:02:00</td>\n",
       "      <td>35.278340</td>\n",
       "      <td>0.143803</td>\n",
       "      <td>179.184150</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>2026-02-01 00:03:00</td>\n",
       "      <td>35.495615</td>\n",
       "      <td>0.151620</td>\n",
       "      <td>183.552588</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>2026-02-01 00:04:00</td>\n",
       "      <td>35.944207</td>\n",
       "      <td>0.159606</td>\n",
       "      <td>180.510540</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "            timestamp  latency_ms  packet_loss_pct  throughput_mbps\n",
       "0 2026-02-01 00:00:00   34.608130         0.163162       180.790197\n",
       "1 2026-02-01 00:01:00   35.272028         0.149154       176.972458\n",
       "2 2026-02-01 00:02:00   35.278340         0.143803       179.184150\n",
       "3 2026-02-01 00:03:00   35.495615         0.151620       183.552588\n",
       "4 2026-02-01 00:04:00   35.944207         0.159606       180.510540"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "image/svg+xml": [
       "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n",
       "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
       "  \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
       "<svg xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"783.856406pt\" height=\"498.96pt\" viewBox=\"0 0 783.856406 498.96\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\">\n",
       " <metadata>\n",
       "  <rdf:RDF xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n",
       "   <cc:Work>\n",
       "    <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\n",
       "    <dc:date>2026-10-06T14:15:43.543802</dc:date>\n",
       "    <dc:format>image/svg+xml</dc:format>\n",
       "    <dc:creator>\n",
       "     <cc:Agent>\n",
       "      <dc:title>Matplotlib v3.11.2, https://matplotlib.org/</dc:title>\n",
       "     </cc:Agent>\n",
       "    </dc:creator>\n",
       "   </cc:Work>\n",
       "  </rdf:RDF>\n",
       " </metadata>\n",
       " <defs>\n",
       "  <style type=\"text/css\">*{stroke-linejoin: round; stroke-linecap: butt}</style>\n",
       " </defs>\n",
       " <g id=\"figure_1\">\n",
       "  <g id=\"patch_1\">\n",
       "   <path d=\"M 0 498.96 \n",
       "L 783.856406 498.96 \n",
       "L 783.856406 0 \n",
       "L 0 0 \n",
       "L 0 498.96 \n",
       "z\n",
       "\" style=\"fill: none\"/>\n",
       "  </g>\n",
       "  <g id=\"axes_1\">\n",
       "   <g id=\"patch_2\">\n",
       "    <path d=\"M 43.861406 171.248611 \n",
       "L 776.656406 171.248611 \n",
       "L 776.656406 29.925 \n",
       "L 43.861406 29.925 \n",
       "L 43.861406 171.248611 \n",
       "z\n",
       "\" style=\"fill: none\"/>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_1\">\n",
       "    <g id=\"xtick_1\">\n",
       "     <g id=\"line2d_1\"/>\n",
       "    </g>\n",
       "    <g id=\"xtick_2\">\n",
       "     <g id=\"line2d_2\"/>\n",
       "    </g>\n",
       "    <g id=\"xtick_3\">\n",
       "     <g id=\"line2d_3\"/>\n",
       "    </g>\n",
       "    <g id=\"xtick_4\">\n",
       "     <g id=\"line2d_4\"/>\n",
       "    </g>\n",
       "    <g id=\"xtick_5\">\n",
       "     <g id=\"line2d_5\"/>\n",
       "    </g>\n",
       "    <g id=\"xtick_6\">\n",
       "     <g id=\"line2d_6\"/>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_2\">\n",
       "    <g id=\"ytick_1\">\n",
       "     <g id=\"line2d_7\">\n",
       "      <path d=\"M 43.861406 146.989106 \n",
       "L 776.656406 146.989106 \n",
       "\" clip-path=\"url(#pe2b1011533)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_8\"/>\n",
       "     <g id=\"text_1\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"37.861406\" y=\"151.035106\" transform=\"rotate(-0 37.861406 151.035106)\">40</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_2\">\n",
       "     <g id=\"line2d_9\">\n",
       "      <path d=\"M 43.861406 114.756909 \n",
       "L 776.656406 114.756909 \n",
       "\" clip-path=\"url(#pe2b1011533)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_10\"/>\n",
       "     <g id=\"text_2\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"37.861406\" y=\"118.802909\" transform=\"rotate(-0 37.861406 118.802909)\">60</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_3\">\n",
       "     <g id=\"line2d_11\">\n",
       "      <path d=\"M 43.861406 82.524713 \n",
       "L 776.656406 82.524713 \n",
       "\" clip-path=\"url(#pe2b1011533)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_12\"/>\n",
       "     <g id=\"text_3\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"37.861406\" y=\"86.570713\" transform=\"rotate(-0 37.861406 86.570713)\">80</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_4\">\n",
       "     <g id=\"line2d_13\">\n",
       "      <path d=\"M 43.861406 50.292516 \n",
       "L 776.656406 50.292516 \n",
       "\" clip-path=\"url(#pe2b1011533)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_14\"/>\n",
       "     <g id=\"text_4\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"37.861406\" y=\"54.338516\" transform=\"rotate(-0 37.861406 54.338516)\">100</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_5\">\n",
       "     <text style=\"font-size: 9px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: middle; fill: #484945\" x=\"15.768\" y=\"100.586806\" transform=\"rotate(-90 15.768 100.586806)\">latency ms</text>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"patch_3\">\n",
       "    <path d=\"M 422.513003 171.248611 \n",
       "L 451.477232 171.248611 \n",
       "L 451.477232 29.925 \n",
       "L 422.513003 29.925 \n",
       "z\n",
       "\" clip-path=\"url(#pe2b1011533)\" style=\"fill: #cf222e; opacity: 0.15; stroke: #cf222e; stroke-linejoin: miter\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_4\">\n",
       "    <path d=\"M 600.754414 171.248611 \n",
       "L 631.946661 171.248611 \n",
       "L 631.946661 29.925 \n",
       "L 600.754414 29.925 \n",
       "z\n",
       "\" clip-path=\"url(#pe2b1011533)\" style=\"fill: #cf222e; opacity: 0.15; stroke: #cf222e; stroke-linejoin: miter\"/>\n",
       "   </g>\n",
       "   <g id=\"line2d_15\">\n",
       "    <path d=\"M 77.17027 155.678697 \n",
       "L 79.398288 154.608752 \n",
       "L 81.626305 154.598579 \n",
       "L 83.854323 154.248417 \n",
       "L 86.08234 153.525462 \n",
       "L 88.310358 153.643175 \n",
       "L 90.538376 152.459391 \n",
       "L 92.766393 152.681716 \n",
       "L 94.994411 151.359961 \n",
       "L 97.222429 153.015447 \n",
       "L 99.450446 152.228447 \n",
       "L 101.678464 152.728003 \n",
       "L 103.906482 153.752198 \n",
       "L 106.134499 154.383631 \n",
       "L 108.362517 150.426813 \n",
       "L 110.590534 151.614106 \n",
       "L 112.818552 151.259307 \n",
       "L 115.04657 150.760319 \n",
       "L 117.274587 148.949456 \n",
       "L 123.95864 147.629598 \n",
       "L 126.186658 144.18174 \n",
       "L 128.414675 148.400515 \n",
       "L 130.642693 148.532837 \n",
       "L 132.870711 152.223937 \n",
       "L 135.098728 151.366154 \n",
       "L 137.326746 145.082683 \n",
       "L 139.554764 144.176328 \n",
       "L 141.782781 147.886619 \n",
       "L 144.010799 148.759701 \n",
       "L 146.238817 147.776673 \n",
       "L 148.466834 152.018388 \n",
       "L 150.694852 149.676737 \n",
       "L 152.922869 149.577487 \n",
       "L 155.150887 146.24856 \n",
       "L 157.378905 150.782917 \n",
       "L 159.606922 148.758381 \n",
       "L 164.062958 147.970646 \n",
       "L 166.290975 150.612246 \n",
       "L 168.518993 151.253048 \n",
       "L 170.747011 153.893904 \n",
       "L 172.975028 148.790812 \n",
       "L 175.203046 149.003078 \n",
       "L 177.431063 151.97872 \n",
       "L 179.659081 151.109368 \n",
       "L 181.887099 154.035492 \n",
       "L 184.115116 152.436632 \n",
       "L 186.343134 151.2497 \n",
       "L 188.571152 153.532295 \n",
       "L 190.799169 152.989631 \n",
       "L 193.027187 151.662667 \n",
       "L 195.255205 152.816801 \n",
       "L 197.483222 155.125079 \n",
       "L 199.71124 151.890878 \n",
       "L 201.939257 151.990718 \n",
       "L 204.167275 153.591562 \n",
       "L 206.395293 154.598322 \n",
       "L 210.851328 154.854442 \n",
       "L 213.079346 158.660071 \n",
       "L 215.307363 155.229968 \n",
       "L 217.535381 158.662981 \n",
       "L 219.763398 157.317739 \n",
       "L 221.991416 158.123247 \n",
       "L 224.219434 157.513543 \n",
       "L 226.447451 155.749175 \n",
       "L 228.675469 158.018406 \n",
       "L 230.903487 159.350291 \n",
       "L 233.131504 158.349463 \n",
       "L 235.359522 159.497574 \n",
       "L 237.58754 162.591053 \n",
       "L 239.815557 163.071145 \n",
       "L 242.043575 161.222542 \n",
       "L 244.271592 157.34868 \n",
       "L 246.49961 161.18741 \n",
       "L 248.727628 159.837985 \n",
       "L 250.955645 158.977386 \n",
       "L 253.183663 163.303176 \n",
       "L 255.411681 159.091399 \n",
       "L 257.639698 159.977289 \n",
       "L 259.867716 160.552838 \n",
       "L 262.095734 159.915447 \n",
       "L 264.323751 164.824811 \n",
       "L 266.551769 161.23529 \n",
       "L 268.779786 163.999175 \n",
       "L 271.007804 160.915498 \n",
       "L 273.235822 161.700501 \n",
       "L 275.463839 162.042301 \n",
       "L 277.691857 160.314081 \n",
       "L 279.919875 164.000744 \n",
       "L 282.147892 160.880479 \n",
       "L 284.37591 157.337198 \n",
       "L 286.603928 159.017482 \n",
       "L 288.831945 162.049374 \n",
       "L 291.059963 159.621628 \n",
       "L 293.28798 160.364282 \n",
       "L 295.515998 159.046764 \n",
       "L 297.744016 161.515998 \n",
       "L 299.972033 158.575445 \n",
       "L 302.200051 159.059738 \n",
       "L 304.428069 160.660801 \n",
       "L 306.656086 157.350783 \n",
       "L 308.884104 155.9586 \n",
       "L 311.112122 155.990956 \n",
       "L 313.340139 161.779224 \n",
       "L 315.568157 156.628249 \n",
       "L 317.796174 156.259708 \n",
       "L 320.024192 156.81481 \n",
       "L 322.25221 156.433188 \n",
       "L 324.480227 155.108375 \n",
       "L 326.708245 154.353397 \n",
       "L 328.936263 156.25238 \n",
       "L 331.16428 154.371454 \n",
       "L 335.620315 155.222235 \n",
       "L 337.848333 153.059945 \n",
       "L 340.076351 154.240455 \n",
       "L 342.304368 155.816256 \n",
       "L 344.532386 153.502946 \n",
       "L 346.760404 155.171371 \n",
       "L 348.988421 150.510213 \n",
       "L 351.216439 152.135641 \n",
       "L 353.444457 149.766349 \n",
       "L 355.672474 154.367934 \n",
       "L 357.900492 148.207494 \n",
       "L 360.128509 149.774219 \n",
       "L 362.356527 152.147565 \n",
       "L 364.584545 146.752101 \n",
       "L 366.812562 151.005494 \n",
       "L 369.04058 151.498278 \n",
       "L 371.268598 149.717436 \n",
       "L 373.496615 148.633713 \n",
       "L 375.724633 147.731347 \n",
       "L 377.952651 145.222173 \n",
       "L 380.180668 150.277452 \n",
       "L 382.408686 151.71394 \n",
       "L 384.636703 148.213972 \n",
       "L 386.864721 150.725505 \n",
       "L 389.092739 150.792051 \n",
       "L 393.548774 146.462204 \n",
       "L 395.776792 150.014745 \n",
       "L 398.004809 149.878951 \n",
       "L 400.232827 149.111429 \n",
       "L 402.460845 149.386924 \n",
       "L 404.688862 147.121874 \n",
       "L 406.91688 149.014649 \n",
       "L 409.144897 151.217441 \n",
       "L 411.372915 145.46336 \n",
       "L 413.600933 150.531309 \n",
       "L 415.82895 152.384236 \n",
       "L 418.056968 148.948505 \n",
       "L 420.284986 150.055021 \n",
       "L 422.513003 36.540805 \n",
       "L 424.741021 37.945104 \n",
       "L 429.197056 38.077731 \n",
       "L 431.425074 37.185781 \n",
       "L 433.653091 42.527166 \n",
       "L 435.881109 39.046453 \n",
       "L 438.109127 39.568393 \n",
       "L 440.337144 36.348801 \n",
       "L 442.565162 41.441616 \n",
       "L 444.79318 38.573579 \n",
       "L 447.021197 39.408467 \n",
       "L 449.249215 42.394754 \n",
       "L 451.477232 40.666819 \n",
       "L 453.70525 153.369353 \n",
       "L 455.933268 153.079019 \n",
       "L 458.161285 154.036343 \n",
       "L 460.389303 155.970193 \n",
       "L 462.617321 155.33198 \n",
       "L 464.845338 157.580396 \n",
       "L 467.073356 158.383338 \n",
       "L 469.301374 157.987032 \n",
       "L 471.529391 158.73714 \n",
       "L 473.757409 159.257692 \n",
       "L 475.985426 155.555055 \n",
       "L 478.213444 161.416127 \n",
       "L 480.441462 158.222665 \n",
       "L 482.669479 158.449186 \n",
       "L 484.897497 161.259629 \n",
       "L 487.125515 157.415709 \n",
       "L 489.353532 161.482457 \n",
       "L 491.58155 159.769162 \n",
       "L 493.809568 163.077787 \n",
       "L 496.037585 162.771186 \n",
       "L 498.265603 162.043004 \n",
       "L 500.49362 160.392331 \n",
       "L 502.721638 158.487625 \n",
       "L 504.949656 163.09931 \n",
       "L 507.177673 159.874461 \n",
       "L 509.405691 162.268198 \n",
       "L 511.633709 160.200456 \n",
       "L 513.861726 160.275519 \n",
       "L 516.089744 161.139445 \n",
       "L 518.317762 160.950283 \n",
       "L 520.545779 164.495598 \n",
       "L 522.773797 160.288941 \n",
       "L 525.001814 159.374929 \n",
       "L 527.229832 161.492097 \n",
       "L 529.45785 159.87696 \n",
       "L 531.685867 159.84587 \n",
       "L 533.913885 158.977615 \n",
       "L 536.141903 162.106604 \n",
       "L 538.36992 161.523818 \n",
       "L 540.597938 159.204955 \n",
       "L 542.825956 159.062171 \n",
       "L 545.053973 157.776127 \n",
       "L 547.281991 160.241658 \n",
       "L 549.510008 159.572933 \n",
       "L 551.738026 160.495111 \n",
       "L 553.966044 159.422688 \n",
       "L 556.194061 156.515765 \n",
       "L 558.422079 158.473185 \n",
       "L 560.650097 157.300456 \n",
       "L 562.878114 157.947145 \n",
       "L 565.106132 158.027613 \n",
       "L 567.334149 157.226012 \n",
       "L 569.562167 156.919751 \n",
       "L 571.790185 158.124145 \n",
       "L 574.018202 157.395103 \n",
       "L 576.24622 156.138015 \n",
       "L 578.474238 154.514829 \n",
       "L 580.702255 155.244599 \n",
       "L 582.930273 157.297684 \n",
       "L 585.158291 150.074202 \n",
       "L 587.386308 153.538149 \n",
       "L 589.614326 154.20155 \n",
       "L 591.842343 153.15821 \n",
       "L 594.070361 152.997929 \n",
       "L 596.298379 152.59941 \n",
       "L 598.526396 151.390903 \n",
       "L 600.754414 151.237026 \n",
       "L 602.982432 151.427214 \n",
       "L 605.210449 149.585786 \n",
       "L 607.438467 152.609437 \n",
       "L 609.666485 147.45266 \n",
       "L 611.894502 150.107282 \n",
       "L 614.12252 151.893621 \n",
       "L 616.350537 153.219361 \n",
       "L 618.578555 149.37908 \n",
       "L 620.806573 148.393715 \n",
       "L 623.03459 149.99875 \n",
       "L 625.262608 149.629678 \n",
       "L 627.490626 149.76676 \n",
       "L 629.718643 147.970683 \n",
       "L 631.946661 148.385942 \n",
       "L 634.174679 151.140884 \n",
       "L 636.402696 147.979052 \n",
       "L 638.630714 148.515901 \n",
       "L 640.858731 147.818171 \n",
       "L 643.086749 149.949134 \n",
       "L 645.314767 147.198649 \n",
       "L 647.542784 146.311768 \n",
       "L 649.770802 152.096708 \n",
       "L 651.99882 147.120327 \n",
       "L 654.226837 148.832779 \n",
       "L 656.454855 148.979036 \n",
       "L 658.682873 149.399387 \n",
       "L 660.91089 149.701324 \n",
       "L 663.138908 148.876883 \n",
       "L 665.366925 150.043005 \n",
       "L 667.594943 153.646888 \n",
       "L 669.822961 148.752913 \n",
       "L 672.050978 149.820821 \n",
       "L 674.278996 149.241168 \n",
       "L 676.507014 153.529799 \n",
       "L 678.735031 150.040887 \n",
       "L 680.963049 152.240286 \n",
       "L 683.191066 150.066211 \n",
       "L 685.419084 151.231399 \n",
       "L 687.647102 149.609376 \n",
       "L 689.875119 150.457834 \n",
       "L 692.103137 150.899266 \n",
       "L 694.331155 156.538242 \n",
       "L 696.559172 151.242086 \n",
       "L 698.78719 152.593633 \n",
       "L 701.015208 154.125129 \n",
       "L 703.243225 152.36862 \n",
       "L 705.471243 154.352935 \n",
       "L 707.69926 154.426492 \n",
       "L 709.927278 154.629665 \n",
       "L 712.155296 156.625448 \n",
       "L 714.383313 155.700981 \n",
       "L 716.611331 158.796311 \n",
       "L 718.839349 155.514162 \n",
       "L 721.067366 157.316182 \n",
       "L 723.295384 156.761896 \n",
       "L 725.523402 159.304888 \n",
       "L 727.751419 159.356828 \n",
       "L 729.979437 157.994689 \n",
       "L 732.207454 156.422144 \n",
       "L 734.435472 161.475151 \n",
       "L 736.66349 161.877131 \n",
       "L 738.891507 160.647015 \n",
       "L 741.119525 157.986451 \n",
       "L 743.347543 159.873202 \n",
       "L 743.347543 159.873202 \n",
       "\" clip-path=\"url(#pe2b1011533)\" style=\"fill: none; stroke: #0969da; stroke-width: 1.5; stroke-linecap: round\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_5\">\n",
       "    <path d=\"M 43.861406 171.248611 \n",
       "L 43.861406 29.925 \n",
       "\" style=\"fill: none; stroke: #d1d2cb; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_6\">\n",
       "    <path d=\"M 43.861406 171.248611 \n",
       "L 776.656406 171.248611 \n",
       "\" style=\"fill: none; stroke: #d1d2cb; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"text_6\">\n",
       "    <text style=\"font-weight: 600; font-size: 11px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: start; fill: #171817\" x=\"43.861406\" y=\"17.925\" transform=\"rotate(-0 43.861406 17.925)\">Synthetic telemetry — shaded intervals are injected events</text>\n",
       "   </g>\n",
       "  </g>\n",
       "  <g id=\"axes_2\">\n",
       "   <g id=\"patch_7\">\n",
       "    <path d=\"M 43.861406 323.553056 \n",
       "L 776.656406 323.553056 \n",
       "L 776.656406 182.229444 \n",
       "L 43.861406 182.229444 \n",
       "L 43.861406 323.553056 \n",
       "z\n",
       "\" style=\"fill: none\"/>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_3\">\n",
       "    <g id=\"xtick_7\">\n",
       "     <g id=\"line2d_16\"/>\n",
       "    </g>\n",
       "    <g id=\"xtick_8\">\n",
       "     <g id=\"line2d_17\"/>\n",
       "    </g>\n",
       "    <g id=\"xtick_9\">\n",
       "     <g id=\"line2d_18\"/>\n",
       "    </g>\n",
       "    <g id=\"xtick_10\">\n",
       "     <g id=\"line2d_19\"/>\n",
       "    </g>\n",
       "    <g id=\"xtick_11\">\n",
       "     <g id=\"line2d_20\"/>\n",
       "    </g>\n",
       "    <g id=\"xtick_12\">\n",
       "     <g id=\"line2d_21\"/>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_4\">\n",
       "    <g id=\"ytick_5\">\n",
       "     <g id=\"line2d_22\">\n",
       "      <path d=\"M 43.861406 307.092411 \n",
       "L 776.656406 307.092411 \n",
       "\" clip-path=\"url(#pa369e81ba4)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_23\"/>\n",
       "     <g id=\"text_7\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"37.861406\" y=\"311.138411\" transform=\"rotate(-0 37.861406 311.138411)\">0.2</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_6\">\n",
       "     <g id=\"line2d_24\">\n",
       "      <path d=\"M 43.861406 287.151184 \n",
       "L 776.656406 287.151184 \n",
       "\" clip-path=\"url(#pa369e81ba4)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_25\"/>\n",
       "     <g id=\"text_8\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"37.861406\" y=\"291.197184\" transform=\"rotate(-0 37.861406 291.197184)\">0.4</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_7\">\n",
       "     <g id=\"line2d_26\">\n",
       "      <path d=\"M 43.861406 267.209956 \n",
       "L 776.656406 267.209956 \n",
       "\" clip-path=\"url(#pa369e81ba4)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_27\"/>\n",
       "     <g id=\"text_9\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"37.861406\" y=\"271.255956\" transform=\"rotate(-0 37.861406 271.255956)\">0.6</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_8\">\n",
       "     <g id=\"line2d_28\">\n",
       "      <path d=\"M 43.861406 247.268729 \n",
       "L 776.656406 247.268729 \n",
       "\" clip-path=\"url(#pa369e81ba4)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_29\"/>\n",
       "     <g id=\"text_10\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"37.861406\" y=\"251.314729\" transform=\"rotate(-0 37.861406 251.314729)\">0.8</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_9\">\n",
       "     <g id=\"line2d_30\">\n",
       "      <path d=\"M 43.861406 227.327501 \n",
       "L 776.656406 227.327501 \n",
       "\" clip-path=\"url(#pa369e81ba4)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_31\"/>\n",
       "     <g id=\"text_11\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"37.861406\" y=\"231.373501\" transform=\"rotate(-0 37.861406 231.373501)\">1.0</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_10\">\n",
       "     <g id=\"line2d_32\">\n",
       "      <path d=\"M 43.861406 207.386274 \n",
       "L 776.656406 207.386274 \n",
       "\" clip-path=\"url(#pa369e81ba4)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_33\"/>\n",
       "     <g id=\"text_12\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"37.861406\" y=\"211.432274\" transform=\"rotate(-0 37.861406 211.432274)\">1.2</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_11\">\n",
       "     <g id=\"line2d_34\">\n",
       "      <path d=\"M 43.861406 187.445046 \n",
       "L 776.656406 187.445046 \n",
       "\" clip-path=\"url(#pa369e81ba4)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_35\"/>\n",
       "     <g id=\"text_13\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"37.861406\" y=\"191.491046\" transform=\"rotate(-0 37.861406 191.491046)\">1.4</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_14\">\n",
       "     <text style=\"font-size: 9px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: middle; fill: #484945\" x=\"18.130734\" y=\"252.89125\" transform=\"rotate(-90 18.130734 252.89125)\">packet loss pct</text>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"patch_8\">\n",
       "    <path d=\"M 422.513003 323.553056 \n",
       "L 451.477232 323.553056 \n",
       "L 451.477232 182.229444 \n",
       "L 422.513003 182.229444 \n",
       "z\n",
       "\" clip-path=\"url(#pa369e81ba4)\" style=\"fill: #cf222e; opacity: 0.15; stroke: #cf222e; stroke-linejoin: miter\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_9\">\n",
       "    <path d=\"M 600.754414 323.553056 \n",
       "L 631.946661 323.553056 \n",
       "L 631.946661 182.229444 \n",
       "L 600.754414 182.229444 \n",
       "z\n",
       "\" clip-path=\"url(#pa369e81ba4)\" style=\"fill: #cf222e; opacity: 0.15; stroke: #cf222e; stroke-linejoin: miter\"/>\n",
       "   </g>\n",
       "   <g id=\"line2d_36\">\n",
       "    <path d=\"M 77.17027 310.765387 \n",
       "L 79.398288 312.162033 \n",
       "L 81.626305 312.695611 \n",
       "L 86.08234 311.119948 \n",
       "L 88.310358 312.471897 \n",
       "L 90.538376 311.07731 \n",
       "L 94.994411 311.203901 \n",
       "L 97.222429 310.36271 \n",
       "L 99.450446 312.210354 \n",
       "L 101.678464 311.534855 \n",
       "L 103.906482 310.069281 \n",
       "L 106.134499 310.274226 \n",
       "L 110.590534 309.455642 \n",
       "L 112.818552 308.184548 \n",
       "L 115.04657 309.220497 \n",
       "L 117.274587 308.572939 \n",
       "L 119.502605 309.882023 \n",
       "L 121.730623 308.885987 \n",
       "L 123.95864 309.345969 \n",
       "L 126.186658 310.169875 \n",
       "L 128.414675 309.713236 \n",
       "L 130.642693 309.808955 \n",
       "L 132.870711 310.039896 \n",
       "L 135.098728 309.903337 \n",
       "L 137.326746 307.350686 \n",
       "L 139.554764 310.2013 \n",
       "L 141.782781 309.376283 \n",
       "L 144.010799 311.545652 \n",
       "L 146.238817 309.886883 \n",
       "L 150.694852 308.105802 \n",
       "L 152.922869 310.426058 \n",
       "L 155.150887 309.02811 \n",
       "L 157.378905 309.682075 \n",
       "L 159.606922 308.993662 \n",
       "L 161.83494 309.913317 \n",
       "L 164.062958 309.127857 \n",
       "L 166.290975 308.827708 \n",
       "L 168.518993 309.187246 \n",
       "L 170.747011 307.522718 \n",
       "L 172.975028 308.613249 \n",
       "L 175.203046 308.633915 \n",
       "L 177.431063 311.219958 \n",
       "L 179.659081 308.184098 \n",
       "L 181.887099 308.811037 \n",
       "L 184.115116 307.978823 \n",
       "L 186.343134 310.03722 \n",
       "L 188.571152 309.143816 \n",
       "L 190.799169 307.254197 \n",
       "L 193.027187 309.509264 \n",
       "L 195.255205 309.611463 \n",
       "L 197.483222 309.384952 \n",
       "L 199.71124 308.774896 \n",
       "L 201.939257 310.608017 \n",
       "L 204.167275 309.938722 \n",
       "L 206.395293 311.659985 \n",
       "L 208.62331 312.196534 \n",
       "L 210.851328 311.3938 \n",
       "L 213.079346 311.547488 \n",
       "L 215.307363 312.512688 \n",
       "L 219.763398 312.009239 \n",
       "L 221.991416 310.883018 \n",
       "L 224.219434 310.947237 \n",
       "L 226.447451 310.485547 \n",
       "L 230.903487 312.404054 \n",
       "L 233.131504 312.867486 \n",
       "L 235.359522 311.289634 \n",
       "L 237.58754 312.09865 \n",
       "L 239.815557 311.529291 \n",
       "L 242.043575 313.052875 \n",
       "L 244.271592 313.57212 \n",
       "L 246.49961 312.896483 \n",
       "L 248.727628 309.907197 \n",
       "L 250.955645 312.596542 \n",
       "L 253.183663 312.9711 \n",
       "L 255.411681 312.880399 \n",
       "L 257.639698 314.14311 \n",
       "L 259.867716 311.415436 \n",
       "L 262.095734 314.657832 \n",
       "L 264.323751 313.904385 \n",
       "L 266.551769 313.835271 \n",
       "L 268.779786 315.104599 \n",
       "L 271.007804 314.441885 \n",
       "L 273.235822 314.844179 \n",
       "L 275.463839 313.777152 \n",
       "L 277.691857 314.63347 \n",
       "L 279.919875 313.482418 \n",
       "L 282.147892 313.342133 \n",
       "L 284.37591 316.478431 \n",
       "L 286.603928 313.944192 \n",
       "L 288.831945 314.469125 \n",
       "L 291.059963 315.262666 \n",
       "L 293.28798 313.723258 \n",
       "L 295.515998 314.538924 \n",
       "L 297.744016 315.764485 \n",
       "L 299.972033 316.370737 \n",
       "L 302.200051 315.018592 \n",
       "L 304.428069 314.379351 \n",
       "L 306.656086 315.822469 \n",
       "L 308.884104 312.992015 \n",
       "L 311.112122 316.989445 \n",
       "L 313.340139 314.702407 \n",
       "L 315.568157 315.713451 \n",
       "L 317.796174 313.815292 \n",
       "L 320.024192 314.451172 \n",
       "L 322.25221 314.717824 \n",
       "L 324.480227 315.598603 \n",
       "L 326.708245 315.80913 \n",
       "L 328.936263 313.802257 \n",
       "L 331.16428 315.668533 \n",
       "L 333.392298 315.160253 \n",
       "L 335.620315 315.918711 \n",
       "L 337.848333 315.126263 \n",
       "L 340.076351 317.129255 \n",
       "L 342.304368 312.684568 \n",
       "L 344.532386 313.440668 \n",
       "L 346.760404 316.000221 \n",
       "L 348.988421 315.836909 \n",
       "L 351.216439 314.583815 \n",
       "L 353.444457 313.962556 \n",
       "L 355.672474 313.921449 \n",
       "L 357.900492 315.644123 \n",
       "L 360.128509 313.962 \n",
       "L 364.584545 314.763826 \n",
       "L 366.812562 312.773864 \n",
       "L 369.04058 313.459891 \n",
       "L 371.268598 313.121741 \n",
       "L 375.724633 313.607586 \n",
       "L 377.952651 311.290688 \n",
       "L 380.180668 313.565499 \n",
       "L 382.408686 314.930373 \n",
       "L 384.636703 313.240293 \n",
       "L 386.864721 314.301723 \n",
       "L 389.092739 311.711244 \n",
       "L 391.320756 311.189102 \n",
       "L 393.548774 312.935066 \n",
       "L 395.776792 311.817946 \n",
       "L 398.004809 312.55797 \n",
       "L 400.232827 310.83586 \n",
       "L 402.460845 310.495956 \n",
       "L 404.688862 311.480842 \n",
       "L 406.91688 311.760504 \n",
       "L 409.144897 312.354184 \n",
       "L 411.372915 313.406327 \n",
       "L 413.600933 312.037606 \n",
       "L 415.82895 311.37124 \n",
       "L 418.056968 311.203134 \n",
       "L 420.284986 310.197265 \n",
       "L 422.513003 190.632359 \n",
       "L 424.741021 190.807785 \n",
       "L 426.969039 189.650695 \n",
       "L 429.197056 192.24521 \n",
       "L 431.425074 189.843104 \n",
       "L 433.653091 191.548855 \n",
       "L 435.881109 190.02066 \n",
       "L 438.109127 189.173258 \n",
       "L 440.337144 188.653245 \n",
       "L 442.565162 190.322137 \n",
       "L 444.79318 190.450509 \n",
       "L 447.021197 189.010741 \n",
       "L 451.477232 189.39223 \n",
       "L 453.70525 309.849967 \n",
       "L 455.933268 310.507913 \n",
       "L 458.161285 310.57002 \n",
       "L 460.389303 306.573932 \n",
       "L 462.617321 309.769511 \n",
       "L 464.845338 309.001913 \n",
       "L 467.073356 307.768548 \n",
       "L 469.301374 310.229248 \n",
       "L 471.529391 309.760023 \n",
       "L 473.757409 308.000725 \n",
       "L 475.985426 308.551334 \n",
       "L 478.213444 310.539373 \n",
       "L 480.441462 309.824935 \n",
       "L 482.669479 309.369424 \n",
       "L 484.897497 309.373031 \n",
       "L 487.125515 308.433431 \n",
       "L 489.353532 309.638887 \n",
       "L 491.58155 310.316706 \n",
       "L 493.809568 309.482066 \n",
       "L 496.037585 307.682726 \n",
       "L 498.265603 310.134512 \n",
       "L 500.49362 309.393972 \n",
       "L 502.721638 308.904526 \n",
       "L 504.949656 309.619786 \n",
       "L 507.177673 307.687085 \n",
       "L 509.405691 310.992958 \n",
       "L 513.861726 309.039816 \n",
       "L 516.089744 309.156755 \n",
       "L 518.317762 308.868576 \n",
       "L 520.545779 310.267271 \n",
       "L 522.773797 309.288105 \n",
       "L 525.001814 311.214252 \n",
       "L 527.229832 310.950205 \n",
       "L 529.45785 309.635269 \n",
       "L 531.685867 311.06485 \n",
       "L 533.913885 309.532943 \n",
       "L 536.141903 310.631811 \n",
       "L 538.36992 310.610192 \n",
       "L 540.597938 311.415418 \n",
       "L 542.825956 313.302977 \n",
       "L 545.053973 309.393423 \n",
       "L 547.281991 312.444187 \n",
       "L 549.510008 310.702633 \n",
       "L 551.738026 311.331801 \n",
       "L 553.966044 312.179506 \n",
       "L 556.194061 312.513281 \n",
       "L 558.422079 311.263877 \n",
       "L 560.650097 311.648735 \n",
       "L 562.878114 312.584865 \n",
       "L 565.106132 311.767587 \n",
       "L 567.334149 312.396633 \n",
       "L 571.790185 312.948025 \n",
       "L 574.018202 312.899594 \n",
       "L 576.24622 312.380606 \n",
       "L 578.474238 314.099112 \n",
       "L 580.702255 313.515355 \n",
       "L 582.930273 314.100783 \n",
       "L 585.158291 313.420178 \n",
       "L 587.386308 313.044993 \n",
       "L 589.614326 315.055666 \n",
       "L 591.842343 312.335316 \n",
       "L 594.070361 315.672509 \n",
       "L 596.298379 315.470628 \n",
       "L 598.526396 315.907112 \n",
       "L 600.754414 313.279447 \n",
       "L 602.982432 314.789693 \n",
       "L 605.210449 312.573318 \n",
       "L 607.438467 314.718267 \n",
       "L 609.666485 313.463285 \n",
       "L 611.894502 315.762876 \n",
       "L 614.12252 314.407715 \n",
       "L 616.350537 315.200087 \n",
       "L 618.578555 315.725345 \n",
       "L 620.806573 312.901001 \n",
       "L 623.03459 313.709814 \n",
       "L 625.262608 315.429293 \n",
       "L 627.490626 316.461646 \n",
       "L 629.718643 315.100409 \n",
       "L 631.946661 315.298343 \n",
       "L 634.174679 314.94235 \n",
       "L 636.402696 315.443408 \n",
       "L 638.630714 315.573477 \n",
       "L 640.858731 314.74958 \n",
       "L 643.086749 313.301972 \n",
       "L 645.314767 314.245592 \n",
       "L 647.542784 315.831257 \n",
       "L 649.770802 315.087882 \n",
       "L 651.99882 315.225407 \n",
       "L 654.226837 314.232913 \n",
       "L 656.454855 314.739652 \n",
       "L 658.682873 314.741714 \n",
       "L 660.91089 314.25374 \n",
       "L 663.138908 315.744157 \n",
       "L 665.366925 315.065931 \n",
       "L 667.594943 314.746173 \n",
       "L 669.822961 315.628405 \n",
       "L 672.050978 313.530257 \n",
       "L 674.278996 313.408339 \n",
       "L 676.507014 314.62113 \n",
       "L 678.735031 313.820776 \n",
       "L 680.963049 315.782783 \n",
       "L 683.191066 314.214085 \n",
       "L 685.419084 314.213299 \n",
       "L 687.647102 312.563957 \n",
       "L 689.875119 313.596172 \n",
       "L 692.103137 312.614581 \n",
       "L 694.331155 312.570267 \n",
       "L 698.78719 313.589538 \n",
       "L 701.015208 313.123633 \n",
       "L 703.243225 313.914081 \n",
       "L 705.471243 311.21877 \n",
       "L 707.69926 313.010047 \n",
       "L 709.927278 312.610252 \n",
       "L 712.155296 313.083199 \n",
       "L 714.383313 312.743351 \n",
       "L 716.611331 312.025524 \n",
       "L 718.839349 311.168931 \n",
       "L 721.067366 309.950244 \n",
       "L 723.295384 312.303863 \n",
       "L 727.751419 311.78735 \n",
       "L 729.979437 314.746615 \n",
       "L 732.207454 312.344907 \n",
       "L 734.435472 312.571359 \n",
       "L 736.66349 310.823279 \n",
       "L 738.891507 310.293537 \n",
       "L 741.119525 311.614503 \n",
       "L 743.347543 310.911111 \n",
       "L 743.347543 310.911111 \n",
       "\" clip-path=\"url(#pa369e81ba4)\" style=\"fill: none; stroke: #0969da; stroke-width: 1.5; stroke-linecap: round\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_10\">\n",
       "    <path d=\"M 43.861406 323.553056 \n",
       "L 43.861406 182.229444 \n",
       "\" style=\"fill: none; stroke: #d1d2cb; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_11\">\n",
       "    <path d=\"M 43.861406 323.553056 \n",
       "L 776.656406 323.553056 \n",
       "\" style=\"fill: none; stroke: #d1d2cb; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "  </g>\n",
       "  <g id=\"axes_3\">\n",
       "   <g id=\"patch_12\">\n",
       "    <path d=\"M 43.861406 475.8575 \n",
       "L 776.656406 475.8575 \n",
       "L 776.656406 334.533889 \n",
       "L 43.861406 334.533889 \n",
       "L 43.861406 475.8575 \n",
       "z\n",
       "\" style=\"fill: none\"/>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_5\">\n",
       "    <g id=\"xtick_13\">\n",
       "     <g id=\"line2d_37\"/>\n",
       "     <g id=\"text_15\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: middle; fill: #6f706a\" x=\"77.17027\" y=\"489.9495\" transform=\"rotate(-0 77.17027 489.9495)\">02-01 00</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_14\">\n",
       "     <g id=\"line2d_38\"/>\n",
       "     <g id=\"text_16\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: middle; fill: #6f706a\" x=\"210.851328\" y=\"489.9495\" transform=\"rotate(-0 210.851328 489.9495)\">02-01 01</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_15\">\n",
       "     <g id=\"line2d_39\"/>\n",
       "     <g id=\"text_17\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: middle; fill: #6f706a\" x=\"344.532386\" y=\"489.9495\" transform=\"rotate(-0 344.532386 489.9495)\">02-01 02</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_16\">\n",
       "     <g id=\"line2d_40\"/>\n",
       "     <g id=\"text_18\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: middle; fill: #6f706a\" x=\"478.213444\" y=\"489.9495\" transform=\"rotate(-0 478.213444 489.9495)\">02-01 03</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_17\">\n",
       "     <g id=\"line2d_41\"/>\n",
       "     <g id=\"text_19\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: middle; fill: #6f706a\" x=\"611.894502\" y=\"489.9495\" transform=\"rotate(-0 611.894502 489.9495)\">02-01 04</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_18\">\n",
       "     <g id=\"line2d_42\"/>\n",
       "     <g id=\"text_20\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: middle; fill: #6f706a\" x=\"745.57556\" y=\"489.9495\" transform=\"rotate(-0 745.57556 489.9495)\">02-01 05</text>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_6\">\n",
       "    <g id=\"ytick_12\">\n",
       "     <g id=\"line2d_43\">\n",
       "      <path d=\"M 43.861406 449.612839 \n",
       "L 776.656406 449.612839 \n",
       "\" clip-path=\"url(#pc8e94de5f7)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_44\"/>\n",
       "     <g id=\"text_21\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"37.861406\" y=\"453.658839\" transform=\"rotate(-0 37.861406 453.658839)\">120</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_13\">\n",
       "     <g id=\"line2d_45\">\n",
       "      <path d=\"M 43.861406 421.705213 \n",
       "L 776.656406 421.705213 \n",
       "\" clip-path=\"url(#pc8e94de5f7)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_46\"/>\n",
       "     <g id=\"text_22\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"37.861406\" y=\"425.751213\" transform=\"rotate(-0 37.861406 425.751213)\">140</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_14\">\n",
       "     <g id=\"line2d_47\">\n",
       "      <path d=\"M 43.861406 393.797588 \n",
       "L 776.656406 393.797588 \n",
       "\" clip-path=\"url(#pc8e94de5f7)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_48\"/>\n",
       "     <g id=\"text_23\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"37.861406\" y=\"397.843588\" transform=\"rotate(-0 37.861406 397.843588)\">160</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_15\">\n",
       "     <g id=\"line2d_49\">\n",
       "      <path d=\"M 43.861406 365.889962 \n",
       "L 776.656406 365.889962 \n",
       "\" clip-path=\"url(#pc8e94de5f7)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_50\"/>\n",
       "     <g id=\"text_24\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"37.861406\" y=\"369.935962\" transform=\"rotate(-0 37.861406 369.935962)\">180</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_16\">\n",
       "     <g id=\"line2d_51\">\n",
       "      <path d=\"M 43.861406 337.982336 \n",
       "L 776.656406 337.982336 \n",
       "\" clip-path=\"url(#pc8e94de5f7)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_52\"/>\n",
       "     <g id=\"text_25\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"37.861406\" y=\"342.028336\" transform=\"rotate(-0 37.861406 342.028336)\">200</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_26\">\n",
       "     <text style=\"font-size: 9px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: middle; fill: #484945\" x=\"15.768\" y=\"405.195694\" transform=\"rotate(-90 15.768 405.195694)\">throughput mbps</text>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"patch_13\">\n",
       "    <path d=\"M 422.513003 475.8575 \n",
       "L 451.477232 475.8575 \n",
       "L 451.477232 334.533889 \n",
       "L 422.513003 334.533889 \n",
       "z\n",
       "\" clip-path=\"url(#pc8e94de5f7)\" style=\"fill: #cf222e; opacity: 0.15; stroke: #cf222e; stroke-linejoin: miter\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_14\">\n",
       "    <path d=\"M 600.754414 475.8575 \n",
       "L 631.946661 475.8575 \n",
       "L 631.946661 334.533889 \n",
       "L 600.754414 334.533889 \n",
       "z\n",
       "\" clip-path=\"url(#pc8e94de5f7)\" style=\"fill: #cf222e; opacity: 0.15; stroke: #cf222e; stroke-linejoin: miter\"/>\n",
       "   </g>\n",
       "   <g id=\"line2d_53\">\n",
       "    <path d=\"M 77.17027 364.787336 \n",
       "L 79.398288 370.114537 \n",
       "L 81.626305 367.028384 \n",
       "L 83.854323 360.932747 \n",
       "L 86.08234 365.177564 \n",
       "L 88.310358 357.534199 \n",
       "L 90.538376 357.39649 \n",
       "L 92.766393 359.42704 \n",
       "L 94.994411 358.372607 \n",
       "L 97.222429 360.066774 \n",
       "L 99.450446 354.297801 \n",
       "L 101.678464 352.881018 \n",
       "L 106.134499 348.186233 \n",
       "L 108.362517 346.938157 \n",
       "L 110.590534 350.413604 \n",
       "L 112.818552 350.195847 \n",
       "L 115.04657 351.511817 \n",
       "L 117.274587 342.857778 \n",
       "L 119.502605 345.021762 \n",
       "L 121.730623 348.247052 \n",
       "L 123.95864 347.672266 \n",
       "L 126.186658 344.898126 \n",
       "L 128.414675 345.530319 \n",
       "L 130.642693 344.784325 \n",
       "L 132.870711 349.047357 \n",
       "L 135.098728 347.634886 \n",
       "L 137.326746 344.18697 \n",
       "L 139.554764 347.509874 \n",
       "L 141.782781 343.468576 \n",
       "L 144.010799 343.550007 \n",
       "L 146.238817 344.332597 \n",
       "L 148.466834 343.296592 \n",
       "L 150.694852 345.413878 \n",
       "L 152.922869 346.134519 \n",
       "L 155.150887 346.673677 \n",
       "L 157.378905 349.408454 \n",
       "L 159.606922 347.452333 \n",
       "L 161.83494 347.134473 \n",
       "L 164.062958 354.498393 \n",
       "L 166.290975 346.815235 \n",
       "L 168.518993 352.273815 \n",
       "L 170.747011 354.059125 \n",
       "L 172.975028 351.87949 \n",
       "L 175.203046 352.804911 \n",
       "L 177.431063 353.419528 \n",
       "L 179.659081 356.994116 \n",
       "L 181.887099 353.787522 \n",
       "L 184.115116 362.529908 \n",
       "L 186.343134 361.57482 \n",
       "L 188.571152 358.833795 \n",
       "L 190.799169 356.771629 \n",
       "L 193.027187 359.636238 \n",
       "L 195.255205 360.841171 \n",
       "L 197.483222 357.525141 \n",
       "L 199.71124 368.253743 \n",
       "L 201.939257 366.757822 \n",
       "L 204.167275 366.895091 \n",
       "L 206.395293 365.106904 \n",
       "L 208.62331 373.61616 \n",
       "L 210.851328 373.610963 \n",
       "L 213.079346 370.368512 \n",
       "L 215.307363 377.349252 \n",
       "L 217.535381 376.99282 \n",
       "L 221.991416 380.879285 \n",
       "L 224.219434 374.795312 \n",
       "L 226.447451 377.245834 \n",
       "L 228.675469 375.866596 \n",
       "L 230.903487 379.879923 \n",
       "L 233.131504 375.234862 \n",
       "L 235.359522 384.452005 \n",
       "L 237.58754 383.943631 \n",
       "L 239.815557 384.470824 \n",
       "L 242.043575 382.471685 \n",
       "L 244.271592 383.681318 \n",
       "L 246.49961 381.054344 \n",
       "L 248.727628 386.764824 \n",
       "L 250.955645 385.039265 \n",
       "L 253.183663 387.669875 \n",
       "L 255.411681 387.238616 \n",
       "L 257.639698 384.247919 \n",
       "L 259.867716 384.049045 \n",
       "L 262.095734 388.793873 \n",
       "L 264.323751 390.753413 \n",
       "L 266.551769 380.792554 \n",
       "L 268.779786 387.406246 \n",
       "L 271.007804 388.361676 \n",
       "L 273.235822 383.089477 \n",
       "L 275.463839 391.050838 \n",
       "L 277.691857 383.488947 \n",
       "L 279.919875 386.025618 \n",
       "L 282.147892 385.775225 \n",
       "L 284.37591 385.921764 \n",
       "L 286.603928 380.900903 \n",
       "L 288.831945 384.238662 \n",
       "L 291.059963 385.640194 \n",
       "L 293.28798 380.886118 \n",
       "L 295.515998 388.675142 \n",
       "L 297.744016 376.151456 \n",
       "L 299.972033 379.651729 \n",
       "L 302.200051 377.421669 \n",
       "L 304.428069 381.396615 \n",
       "L 306.656086 382.715043 \n",
       "L 308.884104 374.766692 \n",
       "L 311.112122 378.820535 \n",
       "L 313.340139 373.222613 \n",
       "L 315.568157 376.247716 \n",
       "L 317.796174 369.442034 \n",
       "L 320.024192 371.744409 \n",
       "L 322.25221 372.447459 \n",
       "L 324.480227 368.071073 \n",
       "L 326.708245 371.311519 \n",
       "L 328.936263 361.384402 \n",
       "L 331.16428 361.900172 \n",
       "L 333.392298 364.764815 \n",
       "L 335.620315 364.508868 \n",
       "L 337.848333 364.476177 \n",
       "L 340.076351 363.026685 \n",
       "L 342.304368 353.964726 \n",
       "L 344.532386 354.211671 \n",
       "L 346.760404 352.116698 \n",
       "L 348.988421 361.444426 \n",
       "L 351.216439 355.423536 \n",
       "L 353.444457 361.642437 \n",
       "L 357.900492 350.47112 \n",
       "L 360.128509 357.07259 \n",
       "L 362.356527 346.751146 \n",
       "L 364.584545 349.458025 \n",
       "L 366.812562 352.512615 \n",
       "L 369.04058 347.962137 \n",
       "L 371.268598 350.954365 \n",
       "L 373.496615 348.091136 \n",
       "L 375.724633 343.109169 \n",
       "L 377.952651 340.957689 \n",
       "L 380.180668 348.961011 \n",
       "L 382.408686 347.203337 \n",
       "L 384.636703 345.98344 \n",
       "L 386.864721 345.202389 \n",
       "L 389.092739 343.583531 \n",
       "L 391.320756 347.034504 \n",
       "L 393.548774 347.775812 \n",
       "L 395.776792 347.365758 \n",
       "L 398.004809 344.008794 \n",
       "L 400.232827 342.337431 \n",
       "L 402.460845 346.950072 \n",
       "L 404.688862 342.80404 \n",
       "L 406.91688 346.72227 \n",
       "L 409.144897 342.798257 \n",
       "L 411.372915 351.400323 \n",
       "L 413.600933 347.193091 \n",
       "L 415.82895 345.593439 \n",
       "L 418.056968 350.270935 \n",
       "L 420.284986 350.727927 \n",
       "L 422.513003 352.968027 \n",
       "L 424.741021 346.796798 \n",
       "L 426.969039 354.205537 \n",
       "L 429.197056 350.955414 \n",
       "L 431.425074 347.935826 \n",
       "L 433.653091 353.992626 \n",
       "L 435.881109 351.525255 \n",
       "L 438.109127 355.175563 \n",
       "L 440.337144 356.488368 \n",
       "L 442.565162 360.603544 \n",
       "L 444.79318 362.707388 \n",
       "L 447.021197 359.446811 \n",
       "L 449.249215 362.942966 \n",
       "L 451.477232 368.147731 \n",
       "L 453.70525 364.416423 \n",
       "L 458.161285 366.335796 \n",
       "L 460.389303 368.641131 \n",
       "L 462.617321 370.638182 \n",
       "L 464.845338 370.649057 \n",
       "L 467.073356 371.481886 \n",
       "L 469.301374 370.689622 \n",
       "L 471.529391 375.317931 \n",
       "L 473.757409 375.257573 \n",
       "L 475.985426 375.634272 \n",
       "L 478.213444 375.40297 \n",
       "L 480.441462 379.771251 \n",
       "L 482.669479 378.035759 \n",
       "L 484.897497 382.03922 \n",
       "L 487.125515 383.388236 \n",
       "L 489.353532 382.974581 \n",
       "L 493.809568 384.716485 \n",
       "L 496.037585 383.174378 \n",
       "L 498.265603 382.668773 \n",
       "L 500.49362 386.710115 \n",
       "L 502.721638 385.260732 \n",
       "L 504.949656 387.426065 \n",
       "L 507.177673 388.102659 \n",
       "L 509.405691 390.541261 \n",
       "L 511.633709 390.071754 \n",
       "L 513.861726 385.2417 \n",
       "L 516.089744 387.705779 \n",
       "L 518.317762 385.667819 \n",
       "L 520.545779 387.841461 \n",
       "L 522.773797 381.825789 \n",
       "L 525.001814 387.203601 \n",
       "L 527.229832 386.077636 \n",
       "L 529.45785 387.438886 \n",
       "L 531.685867 379.760052 \n",
       "L 533.913885 384.625711 \n",
       "L 536.141903 386.311448 \n",
       "L 538.36992 383.617615 \n",
       "L 540.597938 387.613008 \n",
       "L 542.825956 382.993426 \n",
       "L 545.053973 383.472831 \n",
       "L 547.281991 379.589996 \n",
       "L 549.510008 380.778083 \n",
       "L 551.738026 382.700346 \n",
       "L 553.966044 383.618713 \n",
       "L 556.194061 380.529291 \n",
       "L 558.422079 377.245255 \n",
       "L 560.650097 374.327247 \n",
       "L 562.878114 373.373045 \n",
       "L 565.106132 376.36653 \n",
       "L 567.334149 373.007615 \n",
       "L 569.562167 369.946427 \n",
       "L 571.790185 369.806161 \n",
       "L 574.018202 373.349207 \n",
       "L 576.24622 370.952275 \n",
       "L 578.474238 369.005903 \n",
       "L 580.702255 369.126595 \n",
       "L 582.930273 368.280157 \n",
       "L 585.158291 365.887965 \n",
       "L 587.386308 359.993171 \n",
       "L 589.614326 360.94536 \n",
       "L 591.842343 358.203852 \n",
       "L 594.070361 357.394613 \n",
       "L 596.298379 356.076405 \n",
       "L 598.526396 361.392004 \n",
       "L 600.754414 467.414303 \n",
       "L 602.982432 469.433699 \n",
       "L 605.210449 467.104733 \n",
       "L 607.438467 463.875868 \n",
       "L 609.666485 460.417283 \n",
       "L 611.894502 461.790204 \n",
       "L 614.12252 462.208885 \n",
       "L 616.350537 465.530337 \n",
       "L 618.578555 460.642632 \n",
       "L 620.806573 456.233022 \n",
       "L 623.03459 458.750869 \n",
       "L 625.262608 458.13619 \n",
       "L 627.490626 460.803962 \n",
       "L 629.718643 457.018618 \n",
       "L 631.946661 460.918253 \n",
       "L 634.174679 347.36484 \n",
       "L 636.402696 347.231833 \n",
       "L 638.630714 345.92808 \n",
       "L 640.858731 347.484167 \n",
       "L 643.086749 345.743841 \n",
       "L 645.314767 343.395623 \n",
       "L 647.542784 345.965729 \n",
       "L 649.770802 341.394488 \n",
       "L 651.99882 349.712788 \n",
       "L 654.226837 345.0931 \n",
       "L 656.454855 349.531715 \n",
       "L 658.682873 344.821293 \n",
       "L 660.91089 350.366191 \n",
       "L 663.138908 351.157543 \n",
       "L 665.366925 342.716919 \n",
       "L 667.594943 353.506192 \n",
       "L 669.822961 348.153131 \n",
       "L 672.050978 348.939893 \n",
       "L 676.507014 352.321491 \n",
       "L 678.735031 356.494103 \n",
       "L 680.963049 357.483742 \n",
       "L 683.191066 355.671841 \n",
       "L 685.419084 355.365025 \n",
       "L 687.647102 360.240125 \n",
       "L 689.875119 358.685563 \n",
       "L 692.103137 353.202762 \n",
       "L 694.331155 357.452727 \n",
       "L 696.559172 357.18971 \n",
       "L 698.78719 360.028341 \n",
       "L 701.015208 367.005687 \n",
       "L 703.243225 363.307892 \n",
       "L 705.471243 364.330072 \n",
       "L 707.69926 362.996077 \n",
       "L 709.927278 360.414006 \n",
       "L 712.155296 370.124733 \n",
       "L 714.383313 369.241421 \n",
       "L 716.611331 368.586327 \n",
       "L 718.839349 374.582073 \n",
       "L 721.067366 375.843958 \n",
       "L 723.295384 370.751574 \n",
       "L 725.523402 373.916358 \n",
       "L 727.751419 374.330195 \n",
       "L 729.979437 375.34813 \n",
       "L 732.207454 376.155154 \n",
       "L 734.435472 381.368545 \n",
       "L 736.66349 381.387941 \n",
       "L 738.891507 383.402934 \n",
       "L 741.119525 378.472094 \n",
       "L 743.347543 384.934208 \n",
       "L 743.347543 384.934208 \n",
       "\" clip-path=\"url(#pc8e94de5f7)\" style=\"fill: none; stroke: #0969da; stroke-width: 1.5; stroke-linecap: round\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_15\">\n",
       "    <path d=\"M 43.861406 475.8575 \n",
       "L 43.861406 334.533889 \n",
       "\" style=\"fill: none; stroke: #d1d2cb; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_16\">\n",
       "    <path d=\"M 43.861406 475.8575 \n",
       "L 776.656406 475.8575 \n",
       "\" style=\"fill: none; stroke: #d1d2cb; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "  </g>\n",
       " </g>\n",
       " <defs>\n",
       "  <clipPath id=\"pe2b1011533\">\n",
       "   <rect x=\"43.861406\" y=\"29.925\" width=\"732.795\" height=\"141.323611\"/>\n",
       "  </clipPath>\n",
       "  <clipPath id=\"pa369e81ba4\">\n",
       "   <rect x=\"43.861406\" y=\"182.229444\" width=\"732.795\" height=\"141.323611\"/>\n",
       "  </clipPath>\n",
       "  <clipPath id=\"pc8e94de5f7\">\n",
       "   <rect x=\"43.861406\" y=\"334.533889\" width=\"732.795\" height=\"141.323611\"/>\n",
       "  </clipPath>\n",
       " </defs>\n",
       "</svg>\n"
      ],
      "text/plain": [
       "<Figure size 1100x700 with 3 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ]
  },
  {
   "id": "cell-04",
   "metadata": {},
   "cell_type": "markdown",
   "source": [
    "## Run the actual diffusion model\n",
    "\n",
    "The checkpoint reconstructs masked observations; large residuals can indicate unusual behavior. We use SCS thresholding and three diffusion samples to keep this an exploratory workstation exercise, not a vendor benchmark.[2][4]\n",
    "\n",
    "Important boundary: the pinned SDK fits min/max normalization on the supplied batch and uses windowed reconstruction plus adaptive batch thresholding (`ad_diffusion/sdk/inference_ad.py` and `sdk/anomaly_analysis.py`).[2] Later values can affect earlier scores. **This is retrospective triage, not causal streaming detection or a leakage-free future holdout.** Labels never enter the model. A real online design needs a separately validated causal preprocessing and threshold protocol.\n"
   ]
  },
  {
   "id": "cell-05",
   "metadata": {},
   "cell_type": "code",
   "execution_count": 3,
   "source": [
    "set_seed(42)\n",
    "started = time.perf_counter()\n",
    "# Exact official SDK call. No fallback to a baseline if this fails.\n",
    "result = perform_anomaly_analysis_with_diffusion(\n",
    "    df=model_input, threshold_strategy='scs', nsample=3,\n",
    "    model_path=str(weights/'final_model.pth'),\n",
    "    model_config_path=str(weights/'curriculum_medium.yaml'),\n",
    "    explain=True, explanation_top_k=3,\n",
    ")\n",
    "elapsed = time.perf_counter() - started\n",
    "assert len(result) == len(df) and np.isfinite(result.MAE).all()\n",
    "assert result.Anomaly.isin([0, 1]).all()\n",
    "print(f'Actual model inference: {elapsed:.2f} seconds on {DEVICE}')\n"
   ],
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Actual model inference: 6.44 seconds on mps\n"
     ]
    }
   ]
  },
  {
   "id": "cell-06",
   "metadata": {},
   "cell_type": "markdown",
   "source": [
    "## Does the complexity earn its place?\n",
    "\n",
    "The baseline uses a per-channel median and median absolute deviation from the first 120 points, then flags any channel beyond six robust standard deviations. Its threshold is fixed before seeing evaluation labels. Compare pointwise precision, recall, F1, false alarms, and misses on the same final 180 points. We do not inflate event intervals through point adjustment. The protocols differ (batch SDK versus historical baseline), so this is a workflow comparison, not a controlled architecture benchmark.\n"
   ]
  },
  {
   "id": "cell-07",
   "metadata": {},
   "cell_type": "code",
   "execution_count": 4,
   "source": [
    "reference = model_input.iloc[:120]\n",
    "center = reference.median()\n",
    "scale = (reference-center).abs().median().clip(lower=1e-6) * 1.4826\n",
    "baseline_score = ((model_input-center)/scale).abs().max(axis=1)\n",
    "baseline_flags = (baseline_score > 6).astype(int).to_numpy()\n",
    "flags = result.Anomaly.astype(int).to_numpy()\n",
    "metrics = pd.DataFrame({\n",
    "    'NV-Tesseract AD (batch)': anomaly_metrics(truth[120:], flags[120:]),\n",
    "    'Robust baseline (historical)': anomaly_metrics(truth[120:], baseline_flags[120:]),\n",
    "}).T\n",
    "display(metrics.round(3))\n",
    "fig, axes = plt.subplots(2,1,figsize=(11,6),sharex=True)\n",
    "axes[0].plot(df.timestamp, result.MAE, label='Diffusion reconstruction MAE')\n",
    "axes[0].scatter(df.timestamp[flags==1], result.MAE[flags==1], color='#cf222e', s=20, label='SCS flag')\n",
    "axes[1].plot(df.timestamp, baseline_score, color='#b35900', label='Robust baseline score')\n",
    "axes[1].axhline(6, color='#6f706a', linestyle='--', label='Fixed threshold')\n",
    "for ax in axes:\n",
    "    for start, stop in intervals:\n",
    "        ax.axvspan(df.timestamp[start], df.timestamp[stop-1], color='#cf222e', alpha=.12)\n",
    "    ax.axvline(df.timestamp[120], color='#171817', linestyle=':', label='Evaluation starts')\n",
    "    ax.legend(loc='upper left', fontsize=8)\n",
    "axes[0].set_title('Model and baseline can disagree — inspect both false alarms and misses')\n",
    "plt.tight_layout(); plt.show()\n"
   ],
   "outputs": [
    {
     "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>precision</th>\n",
       "      <th>recall</th>\n",
       "      <th>f1</th>\n",
       "      <th>false_alarms</th>\n",
       "      <th>missed_points</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>NV-Tesseract AD (batch)</th>\n",
       "      <td>0.929</td>\n",
       "      <td>0.448</td>\n",
       "      <td>0.605</td>\n",
       "      <td>1.0</td>\n",
       "      <td>16.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Robust baseline (historical)</th>\n",
       "      <td>1.000</td>\n",
       "      <td>0.483</td>\n",
       "      <td>0.651</td>\n",
       "      <td>0.0</td>\n",
       "      <td>15.0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                              precision  recall     f1  false_alarms  \\\n",
       "NV-Tesseract AD (batch)           0.929   0.448  0.605           1.0   \n",
       "Robust baseline (historical)      1.000   0.483  0.651           0.0   \n",
       "\n",
       "                              missed_points  \n",
       "NV-Tesseract AD (batch)                16.0  \n",
       "Robust baseline (historical)           15.0  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "image/svg+xml": [
       "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n",
       "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
       "  \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
       "<svg xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"786.533672pt\" height=\"426.96pt\" viewBox=\"0 0 786.533672 426.96\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\">\n",
       " <metadata>\n",
       "  <rdf:RDF xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n",
       "   <cc:Work>\n",
       "    <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\n",
       "    <dc:date>2026-10-06T14:15:50.077334</dc:date>\n",
       "    <dc:format>image/svg+xml</dc:format>\n",
       "    <dc:creator>\n",
       "     <cc:Agent>\n",
       "      <dc:title>Matplotlib v3.11.2, https://matplotlib.org/</dc:title>\n",
       "     </cc:Agent>\n",
       "    </dc:creator>\n",
       "   </cc:Work>\n",
       "  </rdf:RDF>\n",
       " </metadata>\n",
       " <defs>\n",
       "  <style type=\"text/css\">*{stroke-linejoin: round; stroke-linecap: butt}</style>\n",
       " </defs>\n",
       " <g id=\"figure_1\">\n",
       "  <g id=\"patch_1\">\n",
       "   <path d=\"M 0 426.96 \n",
       "L 786.533672 426.96 \n",
       "L 786.533672 0 \n",
       "L 0 0 \n",
       "L 0 426.96 \n",
       "z\n",
       "\" style=\"fill: none\"/>\n",
       "  </g>\n",
       "  <g id=\"axes_1\">\n",
       "   <g id=\"patch_2\">\n",
       "    <path d=\"M 25.013672 210.018268 \n",
       "L 779.333672 210.018268 \n",
       "L 779.333672 29.925 \n",
       "L 25.013672 29.925 \n",
       "L 25.013672 210.018268 \n",
       "z\n",
       "\" style=\"fill: none\"/>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_1\">\n",
       "    <g id=\"xtick_1\">\n",
       "     <g id=\"line2d_1\"/>\n",
       "    </g>\n",
       "    <g id=\"xtick_2\">\n",
       "     <g id=\"line2d_2\"/>\n",
       "    </g>\n",
       "    <g id=\"xtick_3\">\n",
       "     <g id=\"line2d_3\"/>\n",
       "    </g>\n",
       "    <g id=\"xtick_4\">\n",
       "     <g id=\"line2d_4\"/>\n",
       "    </g>\n",
       "    <g id=\"xtick_5\">\n",
       "     <g id=\"line2d_5\"/>\n",
       "    </g>\n",
       "    <g id=\"xtick_6\">\n",
       "     <g id=\"line2d_6\"/>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_2\">\n",
       "    <g id=\"ytick_1\">\n",
       "     <g id=\"line2d_7\">\n",
       "      <path d=\"M 25.013672 207.83793 \n",
       "L 779.333672 207.83793 \n",
       "\" clip-path=\"url(#p561e2e6588)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_8\"/>\n",
       "     <g id=\"text_1\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"19.013672\" y=\"211.88393\" transform=\"rotate(-0 19.013672 211.88393)\">0.0</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_2\">\n",
       "     <g id=\"line2d_9\">\n",
       "      <path d=\"M 25.013672 175.924571 \n",
       "L 779.333672 175.924571 \n",
       "\" clip-path=\"url(#p561e2e6588)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_10\"/>\n",
       "     <g id=\"text_2\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"19.013672\" y=\"179.970571\" transform=\"rotate(-0 19.013672 179.970571)\">0.2</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_3\">\n",
       "     <g id=\"line2d_11\">\n",
       "      <path d=\"M 25.013672 144.011213 \n",
       "L 779.333672 144.011213 \n",
       "\" clip-path=\"url(#p561e2e6588)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_12\"/>\n",
       "     <g id=\"text_3\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"19.013672\" y=\"148.057213\" transform=\"rotate(-0 19.013672 148.057213)\">0.4</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_4\">\n",
       "     <g id=\"line2d_13\">\n",
       "      <path d=\"M 25.013672 112.097855 \n",
       "L 779.333672 112.097855 \n",
       "\" clip-path=\"url(#p561e2e6588)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_14\"/>\n",
       "     <g id=\"text_4\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"19.013672\" y=\"116.143855\" transform=\"rotate(-0 19.013672 116.143855)\">0.6</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_5\">\n",
       "     <g id=\"line2d_15\">\n",
       "      <path d=\"M 25.013672 80.184496 \n",
       "L 779.333672 80.184496 \n",
       "\" clip-path=\"url(#p561e2e6588)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_16\"/>\n",
       "     <g id=\"text_5\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"19.013672\" y=\"84.230496\" transform=\"rotate(-0 19.013672 84.230496)\">0.8</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_6\">\n",
       "     <g id=\"line2d_17\">\n",
       "      <path d=\"M 25.013672 48.271138 \n",
       "L 779.333672 48.271138 \n",
       "\" clip-path=\"url(#p561e2e6588)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_18\"/>\n",
       "     <g id=\"text_6\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"19.013672\" y=\"52.317138\" transform=\"rotate(-0 19.013672 52.317138)\">1.0</text>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"PathCollection_1\">\n",
       "    <defs>\n",
       "     <path id=\"m63b7ff32da\" d=\"M 0 2.236068 \n",
       "C 0.593012 2.236068 1.161816 2.000462 1.581139 1.581139 \n",
       "C 2.000462 1.161816 2.236068 0.593012 2.236068 0 \n",
       "C 2.236068 -0.593012 2.000462 -1.161816 1.581139 -1.581139 \n",
       "C 1.161816 -2.000462 0.593012 -2.236068 0 -2.236068 \n",
       "C -0.593012 -2.236068 -1.161816 -2.000462 -1.581139 -1.581139 \n",
       "C -2.000462 -1.161816 -2.236068 -0.593012 -2.236068 0 \n",
       "C -2.236068 0.593012 -2.000462 1.161816 -1.581139 1.581139 \n",
       "C -1.161816 2.000462 -0.593012 2.236068 0 2.236068 \n",
       "z\n",
       "\" style=\"stroke: #cf222e\"/>\n",
       "    </defs>\n",
       "    <g clip-path=\"url(#p561e2e6588)\">\n",
       "     <use xlink:href=\"#m63b7ff32da\" x=\"375.798847\" y=\"100.961674\" style=\"fill: #cf222e; stroke: #cf222e\"/>\n",
       "     <use xlink:href=\"#m63b7ff32da\" x=\"414.787719\" y=\"97.023858\" style=\"fill: #cf222e; stroke: #cf222e\"/>\n",
       "     <use xlink:href=\"#m63b7ff32da\" x=\"417.081182\" y=\"38.111058\" style=\"fill: #cf222e; stroke: #cf222e\"/>\n",
       "     <use xlink:href=\"#m63b7ff32da\" x=\"419.374645\" y=\"41.314241\" style=\"fill: #cf222e; stroke: #cf222e\"/>\n",
       "     <use xlink:href=\"#m63b7ff32da\" x=\"421.668108\" y=\"77.471827\" style=\"fill: #cf222e; stroke: #cf222e\"/>\n",
       "     <use xlink:href=\"#m63b7ff32da\" x=\"423.961571\" y=\"86.292237\" style=\"fill: #cf222e; stroke: #cf222e\"/>\n",
       "     <use xlink:href=\"#m63b7ff32da\" x=\"426.255034\" y=\"48.861348\" style=\"fill: #cf222e; stroke: #cf222e\"/>\n",
       "     <use xlink:href=\"#m63b7ff32da\" x=\"428.548497\" y=\"63.565271\" style=\"fill: #cf222e; stroke: #cf222e\"/>\n",
       "     <use xlink:href=\"#m63b7ff32da\" x=\"430.84196\" y=\"75.822672\" style=\"fill: #cf222e; stroke: #cf222e\"/>\n",
       "     <use xlink:href=\"#m63b7ff32da\" x=\"433.135423\" y=\"63.780142\" style=\"fill: #cf222e; stroke: #cf222e\"/>\n",
       "     <use xlink:href=\"#m63b7ff32da\" x=\"437.722349\" y=\"65.742255\" style=\"fill: #cf222e; stroke: #cf222e\"/>\n",
       "     <use xlink:href=\"#m63b7ff32da\" x=\"440.015812\" y=\"69.482349\" style=\"fill: #cf222e; stroke: #cf222e\"/>\n",
       "     <use xlink:href=\"#m63b7ff32da\" x=\"442.309275\" y=\"50.344738\" style=\"fill: #cf222e; stroke: #cf222e\"/>\n",
       "     <use xlink:href=\"#m63b7ff32da\" x=\"444.602738\" y=\"52.694563\" style=\"fill: #cf222e; stroke: #cf222e\"/>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"patch_3\">\n",
       "    <path d=\"M 414.787719 210.018268 \n",
       "L 444.602738 210.018268 \n",
       "L 444.602738 29.925 \n",
       "L 414.787719 29.925 \n",
       "z\n",
       "\" clip-path=\"url(#p561e2e6588)\" style=\"fill: #cf222e; opacity: 0.12; stroke: #cf222e; stroke-linejoin: miter\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_4\">\n",
       "    <path d=\"M 598.264763 210.018268 \n",
       "L 630.373246 210.018268 \n",
       "L 630.373246 29.925 \n",
       "L 598.264763 29.925 \n",
       "z\n",
       "\" clip-path=\"url(#p561e2e6588)\" style=\"fill: #cf222e; opacity: 0.12; stroke: #cf222e; stroke-linejoin: miter\"/>\n",
       "   </g>\n",
       "   <g id=\"line2d_19\">\n",
       "    <path d=\"M 59.300945 124.42996 \n",
       "L 61.594408 152.2293 \n",
       "L 63.887871 157.367495 \n",
       "L 66.181334 147.169285 \n",
       "L 68.474797 154.764375 \n",
       "L 70.76826 147.442914 \n",
       "L 73.061723 147.935385 \n",
       "L 75.355186 145.497075 \n",
       "L 77.648649 155.371951 \n",
       "L 79.942112 160.089963 \n",
       "L 82.235575 121.829474 \n",
       "L 84.529038 118.078937 \n",
       "L 86.822501 166.161436 \n",
       "L 89.115964 134.948259 \n",
       "L 91.409427 166.534963 \n",
       "L 93.70289 148.495507 \n",
       "L 95.996354 168.557271 \n",
       "L 98.289817 163.216855 \n",
       "L 100.58328 134.049587 \n",
       "L 102.876743 154.854957 \n",
       "L 105.170206 152.885173 \n",
       "L 107.463669 146.441676 \n",
       "L 109.757132 122.695462 \n",
       "L 112.050595 182.0671 \n",
       "L 114.344058 165.784737 \n",
       "L 116.637521 152.985514 \n",
       "L 118.930984 169.621343 \n",
       "L 121.224447 150.862576 \n",
       "L 123.51791 173.235617 \n",
       "L 125.811373 156.966533 \n",
       "L 128.104836 153.676725 \n",
       "L 130.398299 150.780563 \n",
       "L 132.691762 144.146671 \n",
       "L 134.985226 173.212094 \n",
       "L 137.278689 146.399129 \n",
       "L 139.572152 140.860776 \n",
       "L 141.865615 157.416743 \n",
       "L 144.159078 156.595156 \n",
       "L 146.452541 163.547797 \n",
       "L 148.746004 164.504391 \n",
       "L 151.039467 149.400529 \n",
       "L 153.33293 159.686453 \n",
       "L 155.626393 111.129268 \n",
       "L 157.919856 141.820433 \n",
       "L 160.213319 136.810764 \n",
       "L 162.506782 178.7043 \n",
       "L 164.800245 156.238239 \n",
       "L 167.093708 154.879528 \n",
       "L 169.387171 146.836451 \n",
       "L 171.680634 168.231892 \n",
       "L 173.974098 106.14623 \n",
       "L 176.267561 126.765928 \n",
       "L 178.561024 163.1728 \n",
       "L 180.854487 171.593102 \n",
       "L 183.14795 165.789473 \n",
       "L 185.441413 182.934106 \n",
       "L 187.734876 151.488785 \n",
       "L 190.028339 138.04357 \n",
       "L 192.321802 171.498673 \n",
       "L 194.615265 179.276538 \n",
       "L 196.908728 158.73965 \n",
       "L 199.202191 162.787161 \n",
       "L 201.495654 170.449699 \n",
       "L 203.789117 140.898592 \n",
       "L 206.08258 120.963571 \n",
       "L 208.376043 156.280216 \n",
       "L 210.669506 159.729951 \n",
       "L 212.96297 181.663195 \n",
       "L 215.256433 181.176883 \n",
       "L 217.549896 197.355234 \n",
       "L 219.843359 170.257222 \n",
       "L 222.136822 145.422771 \n",
       "L 224.430285 156.57592 \n",
       "L 226.723748 196.773345 \n",
       "L 229.017211 170.963971 \n",
       "L 231.310674 156.062202 \n",
       "L 233.604137 172.921008 \n",
       "L 235.8976 174.4697 \n",
       "L 238.191063 149.255744 \n",
       "L 240.484526 152.697461 \n",
       "L 242.777989 172.481132 \n",
       "L 245.071452 145.713563 \n",
       "L 247.364915 174.3249 \n",
       "L 249.658378 186.705829 \n",
       "L 251.951842 140.120736 \n",
       "L 254.245305 155.662591 \n",
       "L 256.538768 181.502596 \n",
       "L 258.832231 147.075165 \n",
       "L 261.125694 157.375408 \n",
       "L 263.419157 189.673406 \n",
       "L 265.71262 172.210713 \n",
       "L 268.006083 156.577827 \n",
       "L 270.299546 146.487552 \n",
       "L 272.593009 157.064991 \n",
       "L 274.886472 152.649341 \n",
       "L 277.179935 165.63699 \n",
       "L 279.473398 169.528012 \n",
       "L 281.766861 142.620516 \n",
       "L 284.060324 145.690793 \n",
       "L 286.353787 133.651726 \n",
       "L 288.64725 153.987427 \n",
       "L 290.940714 112.628085 \n",
       "L 293.234177 167.706761 \n",
       "L 295.52764 121.664792 \n",
       "L 297.821103 175.569937 \n",
       "L 300.114566 151.66408 \n",
       "L 302.408029 173.701186 \n",
       "L 304.701492 139.702546 \n",
       "L 306.994955 178.161345 \n",
       "L 309.288418 137.679344 \n",
       "L 311.581881 186.004612 \n",
       "L 313.875344 127.167897 \n",
       "L 316.168807 156.067789 \n",
       "L 318.46227 156.037036 \n",
       "L 320.755733 157.892859 \n",
       "L 323.049196 161.0152 \n",
       "L 325.342659 152.167589 \n",
       "L 327.636122 174.794628 \n",
       "L 329.929586 119.568984 \n",
       "L 332.223049 111.375544 \n",
       "L 334.516512 126.42867 \n",
       "L 336.809975 128.263142 \n",
       "L 339.103438 132.035792 \n",
       "L 341.396901 190.234337 \n",
       "L 343.690364 160.092098 \n",
       "L 345.983827 147.774251 \n",
       "L 348.27729 143.898099 \n",
       "L 350.570753 132.954199 \n",
       "L 352.864216 153.187221 \n",
       "L 355.157679 127.467739 \n",
       "L 357.451142 118.624788 \n",
       "L 359.744605 149.736407 \n",
       "L 362.038068 137.159373 \n",
       "L 364.331531 137.349097 \n",
       "L 366.624994 139.033923 \n",
       "L 368.918458 164.472296 \n",
       "L 371.211921 141.071205 \n",
       "L 373.505384 147.746384 \n",
       "L 375.798847 100.961674 \n",
       "L 378.09231 149.276235 \n",
       "L 380.385773 136.972355 \n",
       "L 382.679236 127.488168 \n",
       "L 384.972699 146.347789 \n",
       "L 387.266162 139.472358 \n",
       "L 389.559625 144.633883 \n",
       "L 391.853088 156.832358 \n",
       "L 394.146551 156.048501 \n",
       "L 396.440014 146.525805 \n",
       "L 398.733477 160.229569 \n",
       "L 401.02694 138.222504 \n",
       "L 403.320403 152.124675 \n",
       "L 405.613866 145.059078 \n",
       "L 407.90733 128.448814 \n",
       "L 410.200793 153.484005 \n",
       "L 412.494256 143.134201 \n",
       "L 414.787719 97.023858 \n",
       "L 417.081182 38.111058 \n",
       "L 419.374645 41.314241 \n",
       "L 421.668108 77.471827 \n",
       "L 423.961571 86.292237 \n",
       "L 426.255034 48.861348 \n",
       "L 428.548497 63.565271 \n",
       "L 430.84196 75.822672 \n",
       "L 433.135423 63.780142 \n",
       "L 435.428886 99.437511 \n",
       "L 437.722349 65.742255 \n",
       "L 440.015812 69.482349 \n",
       "L 442.309275 50.344738 \n",
       "L 444.602738 52.694563 \n",
       "L 446.896202 154.988219 \n",
       "L 449.189665 137.569208 \n",
       "L 451.483128 179.636213 \n",
       "L 453.776591 127.97993 \n",
       "L 456.070054 132.852542 \n",
       "L 458.363517 135.086035 \n",
       "L 460.65698 148.634172 \n",
       "L 462.950443 147.65867 \n",
       "L 465.243906 160.35888 \n",
       "L 467.537369 162.556844 \n",
       "L 469.830832 119.536058 \n",
       "L 472.124295 198.24971 \n",
       "L 474.417758 161.959126 \n",
       "L 476.711221 167.253784 \n",
       "L 479.004684 161.86307 \n",
       "L 481.298147 164.863476 \n",
       "L 483.59161 171.509582 \n",
       "L 485.885074 145.449035 \n",
       "L 488.178537 167.558319 \n",
       "L 490.472 113.627559 \n",
       "L 492.765463 138.191279 \n",
       "L 495.058926 188.098691 \n",
       "L 497.352389 167.678894 \n",
       "L 499.645852 166.643773 \n",
       "L 501.939315 146.863842 \n",
       "L 504.232778 175.14011 \n",
       "L 506.526241 165.796968 \n",
       "L 508.819704 161.345124 \n",
       "L 511.113167 168.769809 \n",
       "L 513.40663 188.683336 \n",
       "L 515.700093 151.423421 \n",
       "L 517.993556 156.310684 \n",
       "L 520.287019 159.903487 \n",
       "L 522.580482 154.843558 \n",
       "L 524.873946 169.91179 \n",
       "L 527.167409 150.503558 \n",
       "L 529.460872 174.731238 \n",
       "L 531.754335 148.55894 \n",
       "L 534.047798 154.279265 \n",
       "L 536.341261 162.183959 \n",
       "L 538.634724 164.821728 \n",
       "L 540.928187 171.833148 \n",
       "L 543.22165 133.804319 \n",
       "L 545.515113 138.664443 \n",
       "L 547.808576 163.965145 \n",
       "L 550.102039 152.71888 \n",
       "L 552.395502 151.088579 \n",
       "L 554.688965 161.586312 \n",
       "L 556.982428 160.660937 \n",
       "L 559.275891 141.026685 \n",
       "L 561.569354 146.330774 \n",
       "L 563.862818 126.665683 \n",
       "L 566.156281 146.292692 \n",
       "L 568.449744 198.117073 \n",
       "L 570.743207 153.382095 \n",
       "L 573.03667 149.901145 \n",
       "L 575.330133 163.679095 \n",
       "L 577.623596 157.223766 \n",
       "L 579.917059 151.835039 \n",
       "L 582.210522 154.277991 \n",
       "L 584.503985 147.069107 \n",
       "L 586.797448 142.493992 \n",
       "L 589.090911 167.036802 \n",
       "L 591.384374 142.065777 \n",
       "L 593.677837 147.953746 \n",
       "L 595.9713 165.709962 \n",
       "L 598.264763 196.695409 \n",
       "L 600.558226 187.367466 \n",
       "L 602.85169 184.983731 \n",
       "L 605.145153 187.119906 \n",
       "L 607.438616 201.83221 \n",
       "L 609.732079 194.093795 \n",
       "L 612.025542 164.478031 \n",
       "L 614.319005 195.475972 \n",
       "L 616.612468 174.079566 \n",
       "L 618.905931 196.383376 \n",
       "L 621.199394 190.071689 \n",
       "L 623.492857 196.115703 \n",
       "L 625.78632 159.867503 \n",
       "L 628.079783 175.747261 \n",
       "L 630.373246 184.722495 \n",
       "L 632.666709 163.853002 \n",
       "L 634.960172 161.35901 \n",
       "L 637.253635 139.706155 \n",
       "L 639.547098 121.271497 \n",
       "L 641.840562 139.476124 \n",
       "L 644.134025 125.84644 \n",
       "L 646.427488 128.551751 \n",
       "L 648.720951 158.139839 \n",
       "L 651.014414 157.271563 \n",
       "L 653.307877 136.420493 \n",
       "L 655.60134 170.504492 \n",
       "L 657.894803 151.730238 \n",
       "L 660.188266 155.706593 \n",
       "L 662.481729 130.394692 \n",
       "L 664.775192 127.586587 \n",
       "L 667.068655 159.116344 \n",
       "L 669.362118 141.869148 \n",
       "L 671.655581 117.301514 \n",
       "L 673.949044 153.647688 \n",
       "L 676.242507 130.566939 \n",
       "L 678.53597 150.119492 \n",
       "L 680.829434 184.62238 \n",
       "L 683.122897 144.171718 \n",
       "L 685.41636 153.006994 \n",
       "L 687.709823 177.016938 \n",
       "L 690.003286 163.354069 \n",
       "L 692.296749 159.071148 \n",
       "L 694.590212 165.93461 \n",
       "L 696.883675 148.123231 \n",
       "L 699.177138 171.453377 \n",
       "L 701.470601 131.434616 \n",
       "L 703.764064 164.942397 \n",
       "L 706.057527 156.824203 \n",
       "L 708.35099 152.01947 \n",
       "L 710.644453 144.733006 \n",
       "L 712.937916 148.414122 \n",
       "L 715.231379 158.318516 \n",
       "L 717.524842 164.495142 \n",
       "L 719.818306 166.825265 \n",
       "L 722.111769 164.547689 \n",
       "L 724.405232 142.716585 \n",
       "L 726.698695 153.505623 \n",
       "L 728.992158 167.047493 \n",
       "L 731.285621 156.358239 \n",
       "L 735.872547 170.74249 \n",
       "L 738.16601 127.289314 \n",
       "L 740.459473 151.747586 \n",
       "L 742.752936 156.083563 \n",
       "L 745.046399 163.579977 \n",
       "L 745.046399 163.579977 \n",
       "\" clip-path=\"url(#p561e2e6588)\" style=\"fill: none; stroke: #0969da; stroke-width: 1.8; stroke-linecap: round\"/>\n",
       "   </g>\n",
       "   <g id=\"line2d_20\">\n",
       "    <path d=\"M 334.516512 210.018268 \n",
       "L 334.516512 29.925 \n",
       "\" clip-path=\"url(#p561e2e6588)\" style=\"fill: none; stroke-dasharray: 1.8,2.97; stroke-dashoffset: 0; stroke: #171817; stroke-width: 1.8\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_5\">\n",
       "    <path d=\"M 25.013672 210.018268 \n",
       "L 25.013672 29.925 \n",
       "\" style=\"fill: none; stroke: #d1d2cb; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_6\">\n",
       "    <path d=\"M 25.013672 210.018268 \n",
       "L 779.333672 210.018268 \n",
       "\" style=\"fill: none; stroke: #d1d2cb; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"text_7\">\n",
       "    <text style=\"font-weight: 600; font-size: 11px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: start; fill: #171817\" x=\"25.013672\" y=\"17.925\" transform=\"rotate(-0 25.013672 17.925)\">Model and baseline can disagree — inspect both false alarms and misses</text>\n",
       "   </g>\n",
       "   <g id=\"legend_1\">\n",
       "    <g id=\"line2d_21\">\n",
       "     <path d=\"M 32.213672 41.941 \n",
       "L 40.213672 41.941 \n",
       "L 48.213672 41.941 \n",
       "\" style=\"fill: none; stroke: #0969da; stroke-width: 1.8; stroke-linecap: round\"/>\n",
       "    </g>\n",
       "    <g id=\"text_8\">\n",
       "     <text style=\"font-size: 8px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: start; fill: #484945\" x=\"54.613672\" y=\"44.741\" transform=\"rotate(-0 54.613672 44.741)\">Diffusion reconstruction MAE</text>\n",
       "    </g>\n",
       "    <g id=\"PathCollection_2\">\n",
       "     <g>\n",
       "      <use xlink:href=\"#m63b7ff32da\" x=\"40.213672\" y=\"55.961\" style=\"fill: #cf222e; stroke: #cf222e\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_9\">\n",
       "     <text style=\"font-size: 8px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: start; fill: #484945\" x=\"54.613672\" y=\"58.061\" transform=\"rotate(-0 54.613672 58.061)\">SCS flag</text>\n",
       "    </g>\n",
       "    <g id=\"line2d_22\">\n",
       "     <path d=\"M 32.213672 68.581 \n",
       "L 40.213672 68.581 \n",
       "L 48.213672 68.581 \n",
       "\" style=\"fill: none; stroke-dasharray: 1.8,2.97; stroke-dashoffset: 0; stroke: #171817; stroke-width: 1.8\"/>\n",
       "    </g>\n",
       "    <g id=\"text_10\">\n",
       "     <text style=\"font-size: 8px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: start; fill: #484945\" x=\"54.613672\" y=\"71.381\" transform=\"rotate(-0 54.613672 71.381)\">Evaluation starts</text>\n",
       "    </g>\n",
       "   </g>\n",
       "  </g>\n",
       "  <g id=\"axes_2\">\n",
       "   <g id=\"patch_7\">\n",
       "    <path d=\"M 25.013672 403.8575 \n",
       "L 779.333672 403.8575 \n",
       "L 779.333672 223.764232 \n",
       "L 25.013672 223.764232 \n",
       "L 25.013672 403.8575 \n",
       "z\n",
       "\" style=\"fill: none\"/>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_3\">\n",
       "    <g id=\"xtick_7\">\n",
       "     <g id=\"line2d_23\"/>\n",
       "     <g id=\"text_11\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: middle; fill: #6f706a\" x=\"59.300945\" y=\"417.9495\" transform=\"rotate(-0 59.300945 417.9495)\">02-01 00</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_8\">\n",
       "     <g id=\"line2d_24\"/>\n",
       "     <g id=\"text_12\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: middle; fill: #6f706a\" x=\"196.908728\" y=\"417.9495\" transform=\"rotate(-0 196.908728 417.9495)\">02-01 01</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_9\">\n",
       "     <g id=\"line2d_25\"/>\n",
       "     <g id=\"text_13\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: middle; fill: #6f706a\" x=\"334.516512\" y=\"417.9495\" transform=\"rotate(-0 334.516512 417.9495)\">02-01 02</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_10\">\n",
       "     <g id=\"line2d_26\"/>\n",
       "     <g id=\"text_14\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: middle; fill: #6f706a\" x=\"472.124295\" y=\"417.9495\" transform=\"rotate(-0 472.124295 417.9495)\">02-01 03</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_11\">\n",
       "     <g id=\"line2d_27\"/>\n",
       "     <g id=\"text_15\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: middle; fill: #6f706a\" x=\"609.732079\" y=\"417.9495\" transform=\"rotate(-0 609.732079 417.9495)\">02-01 04</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_12\">\n",
       "     <g id=\"line2d_28\"/>\n",
       "     <g id=\"text_16\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: middle; fill: #6f706a\" x=\"747.339862\" y=\"417.9495\" transform=\"rotate(-0 747.339862 417.9495)\">02-01 05</text>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_4\">\n",
       "    <g id=\"ytick_7\">\n",
       "     <g id=\"line2d_29\">\n",
       "      <path d=\"M 25.013672 395.842047 \n",
       "L 779.333672 395.842047 \n",
       "\" clip-path=\"url(#pc316696dd7)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_30\"/>\n",
       "     <g id=\"text_17\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"19.013672\" y=\"399.888047\" transform=\"rotate(-0 19.013672 399.888047)\">0</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_8\">\n",
       "     <g id=\"line2d_31\">\n",
       "      <path d=\"M 25.013672 375.756878 \n",
       "L 779.333672 375.756878 \n",
       "\" clip-path=\"url(#pc316696dd7)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_32\"/>\n",
       "     <g id=\"text_18\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"19.013672\" y=\"379.802878\" transform=\"rotate(-0 19.013672 379.802878)\">5</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_9\">\n",
       "     <g id=\"line2d_33\">\n",
       "      <path d=\"M 25.013672 355.671709 \n",
       "L 779.333672 355.671709 \n",
       "\" clip-path=\"url(#pc316696dd7)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_34\"/>\n",
       "     <g id=\"text_19\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"19.013672\" y=\"359.717709\" transform=\"rotate(-0 19.013672 359.717709)\">10</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_10\">\n",
       "     <g id=\"line2d_35\">\n",
       "      <path d=\"M 25.013672 335.586541 \n",
       "L 779.333672 335.586541 \n",
       "\" clip-path=\"url(#pc316696dd7)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_36\"/>\n",
       "     <g id=\"text_20\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"19.013672\" y=\"339.632541\" transform=\"rotate(-0 19.013672 339.632541)\">15</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_11\">\n",
       "     <g id=\"line2d_37\">\n",
       "      <path d=\"M 25.013672 315.501372 \n",
       "L 779.333672 315.501372 \n",
       "\" clip-path=\"url(#pc316696dd7)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_38\"/>\n",
       "     <g id=\"text_21\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"19.013672\" y=\"319.547372\" transform=\"rotate(-0 19.013672 319.547372)\">20</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_12\">\n",
       "     <g id=\"line2d_39\">\n",
       "      <path d=\"M 25.013672 295.416203 \n",
       "L 779.333672 295.416203 \n",
       "\" clip-path=\"url(#pc316696dd7)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_40\"/>\n",
       "     <g id=\"text_22\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"19.013672\" y=\"299.462203\" transform=\"rotate(-0 19.013672 299.462203)\">25</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_13\">\n",
       "     <g id=\"line2d_41\">\n",
       "      <path d=\"M 25.013672 275.331034 \n",
       "L 779.333672 275.331034 \n",
       "\" clip-path=\"url(#pc316696dd7)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_42\"/>\n",
       "     <g id=\"text_23\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"19.013672\" y=\"279.377034\" transform=\"rotate(-0 19.013672 279.377034)\">30</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_14\">\n",
       "     <g id=\"line2d_43\">\n",
       "      <path d=\"M 25.013672 255.245865 \n",
       "L 779.333672 255.245865 \n",
       "\" clip-path=\"url(#pc316696dd7)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_44\"/>\n",
       "     <g id=\"text_24\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"19.013672\" y=\"259.291865\" transform=\"rotate(-0 19.013672 259.291865)\">35</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_15\">\n",
       "     <g id=\"line2d_45\">\n",
       "      <path d=\"M 25.013672 235.160696 \n",
       "L 779.333672 235.160696 \n",
       "\" clip-path=\"url(#pc316696dd7)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_46\"/>\n",
       "     <g id=\"text_25\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"19.013672\" y=\"239.206696\" transform=\"rotate(-0 19.013672 239.206696)\">40</text>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"patch_8\">\n",
       "    <path d=\"M 414.787719 403.8575 \n",
       "L 444.602738 403.8575 \n",
       "L 444.602738 223.764232 \n",
       "L 414.787719 223.764232 \n",
       "z\n",
       "\" clip-path=\"url(#pc316696dd7)\" style=\"fill: #cf222e; opacity: 0.12; stroke: #cf222e; stroke-linejoin: miter\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_9\">\n",
       "    <path d=\"M 598.264763 403.8575 \n",
       "L 630.373246 403.8575 \n",
       "L 630.373246 223.764232 \n",
       "L 598.264763 223.764232 \n",
       "z\n",
       "\" clip-path=\"url(#pc316696dd7)\" style=\"fill: #cf222e; opacity: 0.12; stroke: #cf222e; stroke-linejoin: miter\"/>\n",
       "   </g>\n",
       "   <g id=\"line2d_47\">\n",
       "    <path d=\"M 59.300945 394.819467 \n",
       "L 61.594408 394.89078 \n",
       "L 63.887871 394.290158 \n",
       "L 66.181334 395.036717 \n",
       "L 68.474797 395.00903 \n",
       "L 70.76826 394.38653 \n",
       "L 73.061723 394.185386 \n",
       "L 75.355186 394.357154 \n",
       "L 77.648649 393.33597 \n",
       "L 79.942112 394.28239 \n",
       "L 82.235575 393.767364 \n",
       "L 84.529038 393.496315 \n",
       "L 89.115964 392.598141 \n",
       "L 91.409427 392.359367 \n",
       "L 93.70289 393.024266 \n",
       "L 95.996354 391.377228 \n",
       "L 98.289817 392.758943 \n",
       "L 100.58328 391.47362 \n",
       "L 107.463669 390.453901 \n",
       "L 109.757132 387.790095 \n",
       "L 112.050595 391.049509 \n",
       "L 114.344058 391.151741 \n",
       "L 116.637521 392.762885 \n",
       "L 118.930984 392.492661 \n",
       "L 121.224447 388.486162 \n",
       "L 123.51791 387.785914 \n",
       "L 125.811373 390.652475 \n",
       "L 128.104836 391.327016 \n",
       "L 130.398299 390.567531 \n",
       "L 132.691762 391.662688 \n",
       "L 134.985226 391.2722 \n",
       "L 137.278689 391.958835 \n",
       "L 139.572152 389.386915 \n",
       "L 141.865615 392.831968 \n",
       "L 144.159078 391.325996 \n",
       "L 148.746004 390.717394 \n",
       "L 151.039467 392.235054 \n",
       "L 153.33293 392.714594 \n",
       "L 155.626393 390.494501 \n",
       "L 157.919856 391.351052 \n",
       "L 160.213319 391.515048 \n",
       "L 162.506782 393.599339 \n",
       "L 164.800245 391.376629 \n",
       "L 167.093708 392.212819 \n",
       "L 169.387171 391.102838 \n",
       "L 171.680634 393.250782 \n",
       "L 173.974098 392.656668 \n",
       "L 176.267561 390.136356 \n",
       "L 178.561024 393.144091 \n",
       "L 180.854487 393.2804 \n",
       "L 183.14795 392.978288 \n",
       "L 185.441413 392.164615 \n",
       "L 187.734876 393.823291 \n",
       "L 190.028339 393.716888 \n",
       "L 192.321802 395.671442 \n",
       "L 194.615265 394.220874 \n",
       "L 196.908728 394.221868 \n",
       "L 199.202191 392.708079 \n",
       "L 201.495654 393.506684 \n",
       "L 203.789117 392.705831 \n",
       "L 206.08258 393.199 \n",
       "L 208.376043 392.831342 \n",
       "L 210.669506 393.593884 \n",
       "L 212.96297 393.526469 \n",
       "L 215.256433 393.203828 \n",
       "L 217.549896 392.174817 \n",
       "L 219.843359 392.948054 \n",
       "L 222.136822 392.061027 \n",
       "L 224.430285 389.671013 \n",
       "L 226.723748 389.300095 \n",
       "L 229.017211 390.728321 \n",
       "L 231.310674 392.295276 \n",
       "L 233.604137 390.755463 \n",
       "L 235.8976 391.705361 \n",
       "L 238.191063 392.035483 \n",
       "L 240.484526 389.120828 \n",
       "L 242.777989 391.614718 \n",
       "L 245.071452 391.6904 \n",
       "L 247.364915 391.245732 \n",
       "L 249.658378 391.317177 \n",
       "L 251.951842 387.945218 \n",
       "L 254.245305 390.718472 \n",
       "L 256.538768 388.583102 \n",
       "L 258.832231 390.965542 \n",
       "L 261.125694 390.359051 \n",
       "L 263.419157 390.094977 \n",
       "L 265.71262 391.430195 \n",
       "L 268.006083 388.581889 \n",
       "L 270.299546 390.992598 \n",
       "L 272.593009 389.244756 \n",
       "L 274.886472 392.431944 \n",
       "L 277.179935 390.089513 \n",
       "L 279.473398 390.866304 \n",
       "L 281.766861 391.39141 \n",
       "L 284.060324 391.339892 \n",
       "L 286.353787 390.196994 \n",
       "L 288.64725 389.388395 \n",
       "L 290.940714 391.191842 \n",
       "L 293.234177 391.162321 \n",
       "L 295.52764 390.119657 \n",
       "L 297.821103 393.894824 \n",
       "L 300.114566 388.563182 \n",
       "L 302.408029 390.29823 \n",
       "L 304.701492 390.265062 \n",
       "L 306.994955 392.796764 \n",
       "L 309.288418 391.948649 \n",
       "L 311.581881 391.592997 \n",
       "L 313.875344 390.418243 \n",
       "L 316.168807 390.137448 \n",
       "L 318.46227 392.81415 \n",
       "L 320.755733 390.324972 \n",
       "L 323.049196 391.002899 \n",
       "L 325.342659 389.991293 \n",
       "L 327.636122 391.048233 \n",
       "L 329.929586 388.376709 \n",
       "L 332.223049 393.703642 \n",
       "L 334.516512 393.296425 \n",
       "L 336.809975 389.882577 \n",
       "L 339.103438 390.100397 \n",
       "L 341.396901 391.771734 \n",
       "L 343.690364 392.104749 \n",
       "L 345.983827 392.655176 \n",
       "L 348.27729 390.357529 \n",
       "L 350.570753 392.11083 \n",
       "L 352.864216 392.132771 \n",
       "L 355.157679 389.775949 \n",
       "L 357.451142 393.062109 \n",
       "L 362.038068 392.066959 \n",
       "L 364.331531 391.229678 \n",
       "L 366.624994 390.532512 \n",
       "L 368.918458 388.593931 \n",
       "L 371.211921 392.499626 \n",
       "L 373.505384 391.309506 \n",
       "L 375.798847 390.905387 \n",
       "L 378.09231 392.027292 \n",
       "L 380.385773 391.717583 \n",
       "L 382.679236 391.27961 \n",
       "L 384.972699 389.551976 \n",
       "L 387.266162 392.296659 \n",
       "L 389.559625 391.798941 \n",
       "L 391.853088 391.479188 \n",
       "L 394.146551 391.811607 \n",
       "L 396.440014 390.061635 \n",
       "L 398.733477 391.523988 \n",
       "L 401.02694 391.56735 \n",
       "L 403.320403 388.780272 \n",
       "L 405.613866 392.40814 \n",
       "L 407.90733 392.102105 \n",
       "L 410.200793 391.472886 \n",
       "L 412.494256 392.327777 \n",
       "L 414.787719 234.589968 \n",
       "L 417.081182 234.823944 \n",
       "L 419.374645 233.280657 \n",
       "L 421.668108 236.741135 \n",
       "L 423.961571 233.537285 \n",
       "L 426.255034 235.81236 \n",
       "L 428.548497 233.774104 \n",
       "L 430.84196 232.643866 \n",
       "L 433.135423 231.95029 \n",
       "L 435.428886 234.176203 \n",
       "L 437.722349 234.347421 \n",
       "L 440.015812 232.427107 \n",
       "L 444.602738 232.935924 \n",
       "L 446.896202 393.598509 \n",
       "L 449.189665 394.476056 \n",
       "L 451.483128 394.558892 \n",
       "L 453.776591 389.229041 \n",
       "L 456.070054 393.4912 \n",
       "L 458.363517 392.467403 \n",
       "L 460.65698 390.822381 \n",
       "L 462.950443 393.228067 \n",
       "L 465.243906 392.648536 \n",
       "L 467.537369 391.132051 \n",
       "L 469.830832 391.866436 \n",
       "L 472.124295 390.578757 \n",
       "L 474.417758 393.043324 \n",
       "L 476.711221 392.871008 \n",
       "L 479.004684 390.699668 \n",
       "L 481.298147 391.709181 \n",
       "L 483.59161 390.527511 \n",
       "L 485.885074 391.851198 \n",
       "L 488.178537 389.294964 \n",
       "L 490.472 389.531843 \n",
       "L 492.765463 390.094434 \n",
       "L 495.058926 391.369739 \n",
       "L 497.352389 391.993113 \n",
       "L 499.645852 389.278335 \n",
       "L 501.939315 390.713728 \n",
       "L 504.232778 389.92045 \n",
       "L 506.526241 391.072701 \n",
       "L 508.819704 391.459988 \n",
       "L 511.113167 390.792522 \n",
       "L 513.40663 390.938667 \n",
       "L 515.700093 388.199566 \n",
       "L 517.993556 391.449619 \n",
       "L 520.287019 391.621417 \n",
       "L 522.580482 390.520063 \n",
       "L 524.873946 391.576404 \n",
       "L 529.460872 392.114601 \n",
       "L 531.754335 390.045297 \n",
       "L 534.047798 390.495556 \n",
       "L 536.341261 391.543092 \n",
       "L 538.634724 392.397417 \n",
       "L 540.928187 392.335162 \n",
       "L 543.22165 391.48615 \n",
       "L 545.515113 392.002805 \n",
       "L 547.808576 391.290332 \n",
       "L 552.395502 392.8983 \n",
       "L 554.688965 392.852467 \n",
       "L 556.982428 393.758514 \n",
       "L 559.275891 393.258884 \n",
       "L 561.569354 393.196714 \n",
       "L 563.862818 393.81603 \n",
       "L 566.156281 394.052646 \n",
       "L 568.449744 393.122134 \n",
       "L 570.743207 393.68539 \n",
       "L 573.03667 394.656613 \n",
       "L 575.330133 392.418214 \n",
       "L 577.623596 393.196811 \n",
       "L 579.917059 392.415986 \n",
       "L 582.210522 392.342596 \n",
       "L 584.503985 393.824164 \n",
       "L 586.797448 391.142393 \n",
       "L 589.090911 394.514643 \n",
       "L 591.384374 390.319668 \n",
       "L 593.677837 390.588931 \n",
       "L 595.9713 390.006763 \n",
       "L 598.264763 376.276052 \n",
       "L 600.558226 375.889715 \n",
       "L 602.85169 376.335277 \n",
       "L 607.438616 377.614674 \n",
       "L 609.732079 377.352017 \n",
       "L 612.025542 377.271917 \n",
       "L 614.319005 376.63648 \n",
       "L 618.905931 378.415179 \n",
       "L 621.199394 377.933481 \n",
       "L 623.492857 378.051078 \n",
       "L 625.78632 377.540698 \n",
       "L 628.079783 378.264884 \n",
       "L 630.373246 377.518832 \n",
       "L 632.666709 391.293531 \n",
       "L 634.960172 390.625236 \n",
       "L 637.253635 390.451754 \n",
       "L 639.547098 390.599592 \n",
       "L 641.840562 392.130879 \n",
       "L 644.134025 390.120951 \n",
       "L 646.427488 389.43575 \n",
       "L 648.720951 391.099425 \n",
       "L 651.014414 390.06044 \n",
       "L 653.307877 391.383476 \n",
       "L 657.894803 391.561132 \n",
       "L 660.188266 392.054511 \n",
       "L 662.481729 390.224108 \n",
       "L 664.775192 391.128703 \n",
       "L 667.068655 391.555186 \n",
       "L 669.362118 390.378493 \n",
       "L 671.655581 392.146834 \n",
       "L 673.949044 391.698996 \n",
       "L 676.242507 391.721964 \n",
       "L 678.53597 392.316857 \n",
       "L 680.829434 390.172589 \n",
       "L 683.122897 392.264867 \n",
       "L 685.41636 392.265916 \n",
       "L 687.709823 391.983472 \n",
       "L 690.003286 392.638989 \n",
       "L 692.296749 392.980038 \n",
       "L 694.590212 394.347398 \n",
       "L 696.883675 393.2449 \n",
       "L 699.177138 393.097868 \n",
       "L 701.470601 393.719276 \n",
       "L 703.764064 392.665003 \n",
       "L 706.057527 395.424174 \n",
       "L 708.35099 393.870774 \n",
       "L 710.644453 394.404007 \n",
       "L 712.937916 393.773206 \n",
       "L 715.231379 394.226485 \n",
       "L 717.524842 392.60282 \n",
       "L 719.818306 394.036082 \n",
       "L 722.111769 393.732256 \n",
       "L 724.405232 394.174604 \n",
       "L 726.698695 392.209896 \n",
       "L 728.992158 392.169767 \n",
       "L 731.285621 391.554595 \n",
       "L 733.579084 393.73513 \n",
       "L 735.872547 390.533156 \n",
       "L 738.16601 390.222588 \n",
       "L 740.459473 391.172971 \n",
       "L 742.752936 393.228516 \n",
       "L 745.046399 391.770818 \n",
       "L 745.046399 391.770818 \n",
       "\" clip-path=\"url(#pc316696dd7)\" style=\"fill: none; stroke: #b35900; stroke-width: 1.8; stroke-linecap: round\"/>\n",
       "   </g>\n",
       "   <g id=\"line2d_48\">\n",
       "    <path d=\"M 25.013672 371.739845 \n",
       "L 779.333672 371.739845 \n",
       "\" clip-path=\"url(#pc316696dd7)\" style=\"fill: none; stroke-dasharray: 6.66,2.88; stroke-dashoffset: 0; stroke: #6f706a; stroke-width: 1.8\"/>\n",
       "   </g>\n",
       "   <g id=\"line2d_49\">\n",
       "    <path d=\"M 334.516512 403.8575 \n",
       "L 334.516512 223.764232 \n",
       "\" clip-path=\"url(#pc316696dd7)\" style=\"fill: none; stroke-dasharray: 1.8,2.97; stroke-dashoffset: 0; stroke: #171817; stroke-width: 1.8\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_10\">\n",
       "    <path d=\"M 25.013672 403.8575 \n",
       "L 25.013672 223.764232 \n",
       "\" style=\"fill: none; stroke: #d1d2cb; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_11\">\n",
       "    <path d=\"M 25.013672 403.8575 \n",
       "L 779.333672 403.8575 \n",
       "\" style=\"fill: none; stroke: #d1d2cb; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"legend_2\">\n",
       "    <g id=\"line2d_50\">\n",
       "     <path d=\"M 32.213672 235.780232 \n",
       "L 40.213672 235.780232 \n",
       "L 48.213672 235.780232 \n",
       "\" style=\"fill: none; stroke: #b35900; stroke-width: 1.8; stroke-linecap: round\"/>\n",
       "    </g>\n",
       "    <g id=\"text_26\">\n",
       "     <text style=\"font-size: 8px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: start; fill: #484945\" x=\"54.613672\" y=\"238.580232\" transform=\"rotate(-0 54.613672 238.580232)\">Robust baseline score</text>\n",
       "    </g>\n",
       "    <g id=\"line2d_51\">\n",
       "     <path d=\"M 32.213672 249.100232 \n",
       "L 40.213672 249.100232 \n",
       "L 48.213672 249.100232 \n",
       "\" style=\"fill: none; stroke-dasharray: 6.66,2.88; stroke-dashoffset: 0; stroke: #6f706a; stroke-width: 1.8\"/>\n",
       "    </g>\n",
       "    <g id=\"text_27\">\n",
       "     <text style=\"font-size: 8px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: start; fill: #484945\" x=\"54.613672\" y=\"251.900232\" transform=\"rotate(-0 54.613672 251.900232)\">Fixed threshold</text>\n",
       "    </g>\n",
       "    <g id=\"line2d_52\">\n",
       "     <path d=\"M 32.213672 262.420232 \n",
       "L 40.213672 262.420232 \n",
       "L 48.213672 262.420232 \n",
       "\" style=\"fill: none; stroke-dasharray: 1.8,2.97; stroke-dashoffset: 0; stroke: #171817; stroke-width: 1.8\"/>\n",
       "    </g>\n",
       "    <g id=\"text_28\">\n",
       "     <text style=\"font-size: 8px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: start; fill: #484945\" x=\"54.613672\" y=\"265.220232\" transform=\"rotate(-0 54.613672 265.220232)\">Evaluation starts</text>\n",
       "    </g>\n",
       "   </g>\n",
       "  </g>\n",
       " </g>\n",
       " <defs>\n",
       "  <clipPath id=\"p561e2e6588\">\n",
       "   <rect x=\"25.013672\" y=\"29.925\" width=\"754.32\" height=\"180.093268\"/>\n",
       "  </clipPath>\n",
       "  <clipPath id=\"pc316696dd7\">\n",
       "   <rect x=\"25.013672\" y=\"223.764232\" width=\"754.32\" height=\"180.093268\"/>\n",
       "  </clipPath>\n",
       " </defs>\n",
       "</svg>\n"
      ],
      "text/plain": [
       "<Figure size 1100x600 with 2 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ]
  },
  {
   "id": "cell-08",
   "metadata": {},
   "cell_type": "markdown",
   "source": [
    "## From flags to human work\n",
    "\n",
    "Consecutive flagged points become one review episode. This simple grouping is not an incident-correlation engine. Contributor shares identify channels with reconstruction error, **not root cause**.[2] Compare the top contributors with independent maintenance or network-change evidence before taking action.\n"
   ]
  },
  {
   "id": "cell-09",
   "metadata": {},
   "cell_type": "code",
   "execution_count": 5,
   "source": [
    "evaluation_flags = flags.copy()\n",
    "evaluation_flags[:120] = 0\n",
    "starts = np.flatnonzero((evaluation_flags == 1) & (np.r_[0, evaluation_flags[:-1]] == 0))\n",
    "review = result.loc[starts, ['MAE', 'TopContributors', 'ContributionShares']].copy()\n",
    "review.insert(0, 'timestamp', df.timestamp.iloc[starts].to_numpy())\n",
    "display(review.head(10))\n",
    "model_f1 = metrics.loc['NV-Tesseract AD (batch)', 'f1']\n",
    "base_f1 = metrics.loc['Robust baseline (historical)', 'f1']\n",
    "verdict = 'higher' if model_f1 > base_f1 else 'lower' if model_f1 < base_f1 else 'equal'\n",
    "display(Markdown(f\"**Observed:** model F1 is {model_f1:.3f}, {verdict} than the baseline's {base_f1:.3f}. \"\n",
    "                 f\"The model creates {len(starts)} review episodes in the evaluation interval. \"\n",
    "                 \"A sophisticated model is not automatically a better alerting policy. \"\n",
    "                 \"Keep the cheap comparator and require an operator to review the misses.\"))\n"
   ],
   "outputs": [
    {
     "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>timestamp</th>\n",
       "      <th>MAE</th>\n",
       "      <th>TopContributors</th>\n",
       "      <th>ContributionShares</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>138</th>\n",
       "      <td>2026-02-01 02:18:00</td>\n",
       "      <td>0.669790</td>\n",
       "      <td>[\"latency_ms\",\"throughput_mbps\",\"packet_loss_p...</td>\n",
       "      <td>[0.556024,0.430347,0.01363]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>155</th>\n",
       "      <td>2026-02-01 02:35:00</td>\n",
       "      <td>0.694468</td>\n",
       "      <td>[\"packet_loss_pct\",\"latency_ms\",\"throughput_mb...</td>\n",
       "      <td>[0.451911,0.387988,0.160101]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>165</th>\n",
       "      <td>2026-02-01 02:45:00</td>\n",
       "      <td>0.890509</td>\n",
       "      <td>[\"packet_loss_pct\",\"latency_ms\",\"throughput_mb...</td>\n",
       "      <td>[0.366649,0.329669,0.303681]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "              timestamp       MAE  \\\n",
       "138 2026-02-01 02:18:00  0.669790   \n",
       "155 2026-02-01 02:35:00  0.694468   \n",
       "165 2026-02-01 02:45:00  0.890509   \n",
       "\n",
       "                                       TopContributors  \\\n",
       "138  [\"latency_ms\",\"throughput_mbps\",\"packet_loss_p...   \n",
       "155  [\"packet_loss_pct\",\"latency_ms\",\"throughput_mb...   \n",
       "165  [\"packet_loss_pct\",\"latency_ms\",\"throughput_mb...   \n",
       "\n",
       "               ContributionShares  \n",
       "138   [0.556024,0.430347,0.01363]  \n",
       "155  [0.451911,0.387988,0.160101]  \n",
       "165  [0.366649,0.329669,0.303681]  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/markdown": [
       "**Observed:** model F1 is 0.605, lower than the baseline's 0.651. The model creates 3 review episodes in the evaluation interval. A sophisticated model is not automatically a better alerting policy. Keep the cheap comparator and require an operator to review the misses."
      ],
      "text/plain": [
       "<IPython.core.display.Markdown object>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ]
  },
  {
   "id": "cell-10",
   "metadata": {},
   "cell_type": "markdown",
   "source": [
    "## Break it safely, then transfer the idea\n",
    "\n",
    "A missing sensor value should be a data-quality decision, not a silently invented zero. This failure probe is intentionally caught so Run All stays green. For your variation, replace the sharp spike with a slow ramp, freeze your alert policy before reading labels, and explain which event each method misses. Do not tune repeatedly against these displayed labels and call the result held out.\n"
   ]
  },
  {
   "id": "cell-11",
   "metadata": {},
   "cell_type": "code",
   "execution_count": 6,
   "source": [
    "broken = df.copy()\n",
    "broken.loc[170, columns[0]] = np.nan\n",
    "try:\n",
    "    features(broken, columns)\n",
    "except ValueError as error:\n",
    "    print('EXPECTED DATA-QUALITY REJECTION:', error)\n",
    "else:\n",
    "    raise AssertionError('Missing sensor data reached the model')\n"
   ],
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "EXPECTED DATA-QUALITY REJECTION: Missing or nonfinite observations require an explicit data-quality policy\n"
     ]
    }
   ]
  },
  {
   "id": "cell-12",
   "metadata": {},
   "cell_type": "markdown",
   "source": [
    "## What this teaches an operator\n",
    "\n",
    "- Separate **data validity**, **model score**, **alert policy**, and **permission to act**.\n",
    "- Baselines are useful even when foundation models run successfully. Their disagreements identify where to investigate.\n",
    "- An impressive plot does not measure avoided downtime or faster incident resolution. A pilot needs real labels, shift-specific false-alarm budgets, and independently reviewed outcomes.\n",
    "- This notebook does not fine-tune weights, prove safety, or authorize machine control, alarm acknowledgement, or production changes.\n",
    "\n",
    "The following receipt is generated from this execution, not hand-entered expected results.\n"
   ]
  },
  {
   "id": "cell-13",
   "metadata": {
    "tags": [
     "vit-result"
    ]
   },
   "cell_type": "code",
   "execution_count": 7,
   "source": [
    "display(JSON({'case_id': 'TEL-10', 'model': 'nvidia/nv-tesseract-ad-diffusion',\n",
    "              'device': str(DEVICE), 'seconds': round(elapsed,3), 'samples': 3,\n",
    "              'protocol': 'retrospective-batch', 'review_episodes': len(starts),\n",
    "              'metrics': metrics.to_dict(orient='index')}))\n"
   ],
   "outputs": [
    {
     "data": {
      "application/json": {
       "case_id": "TEL-10",
       "device": "mps",
       "metrics": {
        "NV-Tesseract AD (batch)": {
         "f1": 0.6046511627906977,
         "false_alarms": 1,
         "missed_points": 16,
         "precision": 0.9285714285714286,
         "recall": 0.4482758620689655
        },
        "Robust baseline (historical)": {
         "f1": 0.6511627906976745,
         "false_alarms": 0,
         "missed_points": 15,
         "precision": 1,
         "recall": 0.4827586206896552
        }
       },
       "model": "nvidia/nv-tesseract-ad-diffusion",
       "protocol": "retrospective-batch",
       "review_episodes": 3,
       "samples": 3,
       "seconds": 6.443
      },
      "text/plain": [
       "<IPython.core.display.JSON object>"
      ]
     },
     "metadata": {
      "application/json": {
       "expanded": false,
       "root": "root"
      }
     },
     "output_type": "display_data"
    }
   ]
  },
  {
   "id": "cell-14",
   "metadata": {},
   "cell_type": "markdown",
   "source": [
    "## Sources and scope\n",
    "\n",
    "The May 2025 article describes a family spanning classification, forecasting, and anomaly detection.[1]\n",
    "This notebook uses the later public diffusion anomaly-detection release, not the earlier article's exact model or reported healthcare F1 score.[2][4]\n",
    "The pinned public library exposes forecasting and anomaly detection; this collection does not invent a released classification checkpoint.[2]\n",
    "This is an original VIT teaching extension of the casebook, not implementation of the entire enterprise program.\n",
    "\n",
    "## Sources\n",
    "\n",
    "[1] https://developer.nvidia.com/blog/new-nvidia-nv-tesseract-time-series-models-advance-dataset-processing-and-anomaly-detection — New NVIDIA NV-Tesseract Time Series Models Advance Dataset Processing and Anomaly Detection\n",
    "\n",
    "[2] https://github.com/NVIDIA/NV-Tesseract\n",
    "\n",
    "[4] https://huggingface.co/nvidia/nv-tesseract-ad-diffusion\n"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "name": "python",
   "version": "3.12.12"
  },
  "mementropy": {
   "contentKind": "notebook",
   "world": "signalworks",
   "capabilities": [
    "anomaly-detection",
    "baseline-evaluation",
    "human-review"
   ],
   "implementations": [
    "NV-Tesseract",
    "PyTorch",
    "NumPy",
    "pandas",
    "Matplotlib",
    "IPython"
   ],
   "evidenceStatus": "executed-example",
   "updatedDate": "2026-10-29"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
