{
 "cells": [
  {
   "id": "cell-00",
   "metadata": {},
   "cell_type": "markdown",
   "source": [
    "# Apex: which machine signals deserve an inspection?\n",
    "\n",
    "**Casebook links: MFG-02 / MFG-09 / MFG-10 · Real pretrained model · Synthetic data · Retrospective batch analysis**\n",
    "\n",
    "A reliability engineer has three synthetic compressor sensors and limited inspection capacity. Can reconstruction error help prioritize a bearing inspection without automatically stopping a machine?\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(17)\n",
    "t = np.arange(300)\n",
    "df = pd.DataFrame({\n",
    "    'timestamp': pd.date_range('2026-01-01', periods=len(t), freq='min'),\n",
    "    'vibration_mm_s': 2 + .2*np.sin(t/12) + rng.normal(0,.06,len(t)),\n",
    "    'temperature_c': 65 + 2*np.sin(t/25) + rng.normal(0,.3,len(t)),\n",
    "    'motor_current_a': 18 + np.sin(t/12) + rng.normal(0,.2,len(t)),\n",
    "})\n",
    "columns = ['vibration_mm_s', 'temperature_c', 'motor_current_a']\n",
    "# Known synthetic events, defined before model execution; not tuning targets.\n",
    "intervals = [(160,174), (230,244)]\n",
    "df.loc[160:173, 'vibration_mm_s'] += 2.5\n",
    "df.loc[160:173, 'temperature_c'] += 7\n",
    "df.loc[230:243, 'motor_current_a'] += 8\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: ['vibration_mm_s', 'temperature_c', 'motor_current_a']\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>vibration_mm_s</th>\n",
       "      <th>temperature_c</th>\n",
       "      <th>motor_current_a</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>2026-01-01 00:00:00</td>\n",
       "      <td>2.066076</td>\n",
       "      <td>65.237994</td>\n",
       "      <td>17.875674</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2026-01-01 00:01:00</td>\n",
       "      <td>2.036953</td>\n",
       "      <td>65.316900</td>\n",
       "      <td>17.804345</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>2026-01-01 00:02:00</td>\n",
       "      <td>2.000781</td>\n",
       "      <td>65.300022</td>\n",
       "      <td>18.108237</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>2026-01-01 00:03:00</td>\n",
       "      <td>1.973866</td>\n",
       "      <td>65.634647</td>\n",
       "      <td>18.028081</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>2026-01-01 00:04:00</td>\n",
       "      <td>1.951762</td>\n",
       "      <td>65.538299</td>\n",
       "      <td>18.345866</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "            timestamp  vibration_mm_s  temperature_c  motor_current_a\n",
       "0 2026-01-01 00:00:00        2.066076      65.237994        17.875674\n",
       "1 2026-01-01 00:01:00        2.036953      65.316900        17.804345\n",
       "2 2026-01-01 00:02:00        2.000781      65.300022        18.108237\n",
       "3 2026-01-01 00:03:00        1.973866      65.634647        18.028081\n",
       "4 2026-01-01 00:04:00        1.951762      65.538299        18.345866"
      ]
     },
     "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=\"781.493672pt\" height=\"498.96pt\" viewBox=\"0 0 781.493672 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:00.126556</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 781.493672 498.96 \n",
       "L 781.493672 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 41.498672 172.089167 \n",
       "L 774.293672 172.089167 \n",
       "L 774.293672 29.925 \n",
       "L 41.498672 29.925 \n",
       "L 41.498672 172.089167 \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 41.498672 152.824927 \n",
       "L 774.293672 152.824927 \n",
       "\" clip-path=\"url(#p54263b7600)\" 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=\"35.498672\" y=\"156.870927\" transform=\"rotate(-0 35.498672 156.870927)\">2.0</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_2\">\n",
       "     <g id=\"line2d_9\">\n",
       "      <path d=\"M 41.498672 131.714564 \n",
       "L 774.293672 131.714564 \n",
       "\" clip-path=\"url(#p54263b7600)\" 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=\"35.498672\" y=\"135.760564\" transform=\"rotate(-0 35.498672 135.760564)\">2.5</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_3\">\n",
       "     <g id=\"line2d_11\">\n",
       "      <path d=\"M 41.498672 110.6042 \n",
       "L 774.293672 110.6042 \n",
       "\" clip-path=\"url(#p54263b7600)\" 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=\"35.498672\" y=\"114.6502\" transform=\"rotate(-0 35.498672 114.6502)\">3.0</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_4\">\n",
       "     <g id=\"line2d_13\">\n",
       "      <path d=\"M 41.498672 89.493836 \n",
       "L 774.293672 89.493836 \n",
       "\" clip-path=\"url(#p54263b7600)\" 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=\"35.498672\" y=\"93.539836\" transform=\"rotate(-0 35.498672 93.539836)\">3.5</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_5\">\n",
       "     <g id=\"line2d_15\">\n",
       "      <path d=\"M 41.498672 68.383472 \n",
       "L 774.293672 68.383472 \n",
       "\" clip-path=\"url(#p54263b7600)\" 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=\"35.498672\" y=\"72.429472\" transform=\"rotate(-0 35.498672 72.429472)\">4.0</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_6\">\n",
       "     <g id=\"line2d_17\">\n",
       "      <path d=\"M 41.498672 47.273108 \n",
       "L 774.293672 47.273108 \n",
       "\" clip-path=\"url(#p54263b7600)\" 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=\"35.498672\" y=\"51.319108\" transform=\"rotate(-0 35.498672 51.319108)\">4.5</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_7\">\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=\"101.007083\" transform=\"rotate(-90 15.768 101.007083)\">vibration mm s</text>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"patch_3\">\n",
       "    <path d=\"M 431.290357 172.089167 \n",
       "L 460.254586 172.089167 \n",
       "L 460.254586 29.925 \n",
       "L 431.290357 29.925 \n",
       "z\n",
       "\" clip-path=\"url(#p54263b7600)\" style=\"fill: #cf222e; opacity: 0.15; stroke: #cf222e; stroke-linejoin: miter\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_4\">\n",
       "    <path d=\"M 587.251591 172.089167 \n",
       "L 616.215821 172.089167 \n",
       "L 616.215821 29.925 \n",
       "L 587.251591 29.925 \n",
       "z\n",
       "\" clip-path=\"url(#p54263b7600)\" style=\"fill: #cf222e; opacity: 0.15; stroke: #cf222e; stroke-linejoin: miter\"/>\n",
       "   </g>\n",
       "   <g id=\"line2d_19\">\n",
       "    <path d=\"M 74.807536 150.035161 \n",
       "L 77.035553 151.264734 \n",
       "L 79.263571 152.791956 \n",
       "L 81.491588 153.928312 \n",
       "L 83.719606 154.861585 \n",
       "L 85.947624 149.360243 \n",
       "L 88.175641 150.829952 \n",
       "L 90.403659 150.383199 \n",
       "L 92.631677 148.165626 \n",
       "L 94.859694 147.200409 \n",
       "L 97.087712 152.342412 \n",
       "L 99.315729 143.780219 \n",
       "L 101.543747 150.853918 \n",
       "L 103.771765 140.653441 \n",
       "L 105.999782 143.564947 \n",
       "L 108.2278 146.00686 \n",
       "L 110.455818 141.215605 \n",
       "L 112.683835 144.428226 \n",
       "L 114.911853 142.651663 \n",
       "L 117.139871 144.109813 \n",
       "L 119.367888 141.641777 \n",
       "L 121.595906 141.827165 \n",
       "L 123.823923 146.968622 \n",
       "L 126.051941 146.432429 \n",
       "L 128.279959 144.27721 \n",
       "L 130.507976 145.997835 \n",
       "L 132.735994 151.624287 \n",
       "L 134.964012 141.122115 \n",
       "L 137.192029 152.228833 \n",
       "L 139.420047 152.498838 \n",
       "L 141.648065 151.004045 \n",
       "L 143.876082 146.921068 \n",
       "L 146.1041 144.413914 \n",
       "L 148.332117 150.19849 \n",
       "L 150.560135 151.253664 \n",
       "L 152.788153 150.501059 \n",
       "L 155.01617 152.562635 \n",
       "L 157.244188 152.124604 \n",
       "L 159.472206 155.924459 \n",
       "L 161.700223 152.62833 \n",
       "L 163.928241 153.439612 \n",
       "L 166.156259 161.288016 \n",
       "L 168.384276 156.066221 \n",
       "L 170.612294 156.02221 \n",
       "L 172.840311 155.636065 \n",
       "L 175.068329 159.718629 \n",
       "L 177.296347 161.575502 \n",
       "L 179.524364 161.142319 \n",
       "L 181.752382 157.827157 \n",
       "L 183.9804 161.810631 \n",
       "L 186.208417 161.978345 \n",
       "L 188.436435 157.484911 \n",
       "L 190.664453 162.66119 \n",
       "L 192.89247 163.178984 \n",
       "L 195.120488 161.310461 \n",
       "L 197.348505 160.695722 \n",
       "L 199.576523 158.631679 \n",
       "L 201.804541 163.490652 \n",
       "L 204.032558 165.179907 \n",
       "L 206.260576 161.403814 \n",
       "L 208.488594 159.291735 \n",
       "L 210.716611 164.447816 \n",
       "L 212.944629 161.647009 \n",
       "L 215.172647 159.302227 \n",
       "L 217.400664 159.107558 \n",
       "L 219.628682 159.048868 \n",
       "L 221.856699 159.433376 \n",
       "L 224.084717 160.288779 \n",
       "L 226.312735 160.058517 \n",
       "L 228.540752 154.187816 \n",
       "L 230.76877 159.326879 \n",
       "L 232.996788 152.740211 \n",
       "L 235.224805 158.515716 \n",
       "L 237.452823 147.145815 \n",
       "L 239.68084 158.209661 \n",
       "L 241.908858 149.04108 \n",
       "L 244.136876 154.67415 \n",
       "L 246.364893 151.994018 \n",
       "L 248.592911 151.174484 \n",
       "L 250.820929 151.980557 \n",
       "L 253.048946 144.020478 \n",
       "L 255.276964 148.784246 \n",
       "L 257.504982 151.756817 \n",
       "L 259.732999 146.188485 \n",
       "L 261.961017 145.47255 \n",
       "L 264.189034 149.673452 \n",
       "L 266.417052 144.941167 \n",
       "L 268.64507 145.700031 \n",
       "L 270.873087 143.421547 \n",
       "L 273.101105 143.371278 \n",
       "L 275.329123 144.925706 \n",
       "L 277.55714 145.722448 \n",
       "L 279.785158 142.222293 \n",
       "L 282.013176 143.632981 \n",
       "L 284.241193 148.155284 \n",
       "L 286.469211 145.777653 \n",
       "L 288.697228 145.69499 \n",
       "L 290.925246 145.266002 \n",
       "L 293.153264 139.003561 \n",
       "L 295.381281 145.990084 \n",
       "L 297.609299 144.123277 \n",
       "L 299.837317 141.489288 \n",
       "L 302.065334 144.806509 \n",
       "L 304.293352 145.434866 \n",
       "L 306.52137 143.731099 \n",
       "L 308.749387 147.049831 \n",
       "L 310.977405 147.645664 \n",
       "L 313.205422 146.971871 \n",
       "L 315.43344 148.301048 \n",
       "L 317.661458 151.720928 \n",
       "L 319.889475 153.623004 \n",
       "L 322.117493 151.643779 \n",
       "L 324.345511 148.512326 \n",
       "L 326.573528 153.330002 \n",
       "L 328.801546 150.550263 \n",
       "L 333.257581 155.630122 \n",
       "L 335.485599 162.194025 \n",
       "L 337.713616 155.616933 \n",
       "L 339.941634 157.514595 \n",
       "L 342.169652 161.473226 \n",
       "L 344.397669 156.689167 \n",
       "L 346.625687 158.594881 \n",
       "L 348.853705 158.078727 \n",
       "L 351.081722 161.015251 \n",
       "L 353.30974 159.381418 \n",
       "L 355.537757 161.452018 \n",
       "L 357.765775 157.863897 \n",
       "L 359.993793 160.501484 \n",
       "L 362.22181 164.568666 \n",
       "L 364.449828 160.615268 \n",
       "L 366.677846 161.071447 \n",
       "L 368.905863 161.784364 \n",
       "L 371.133881 164.6556 \n",
       "L 373.361899 158.461716 \n",
       "L 375.589916 162.850552 \n",
       "L 377.817934 156.782774 \n",
       "L 380.045951 162.203216 \n",
       "L 382.273969 160.135101 \n",
       "L 384.501987 159.965544 \n",
       "L 386.730004 159.054938 \n",
       "L 388.958022 152.281466 \n",
       "L 391.18604 159.737442 \n",
       "L 393.414057 152.690779 \n",
       "L 395.642075 155.776456 \n",
       "L 397.870093 158.507612 \n",
       "L 400.09811 152.930289 \n",
       "L 402.326128 153.322051 \n",
       "L 404.554145 152.357145 \n",
       "L 406.782163 157.46364 \n",
       "L 409.010181 152.111215 \n",
       "L 411.238198 153.701369 \n",
       "L 413.466216 152.339572 \n",
       "L 415.694234 151.61605 \n",
       "L 417.922251 150.494314 \n",
       "L 420.150269 145.898119 \n",
       "L 422.378287 148.318295 \n",
       "L 424.606304 153.324705 \n",
       "L 426.834322 144.896321 \n",
       "L 429.062339 147.269491 \n",
       "L 431.290357 41.08009 \n",
       "L 433.518375 45.554912 \n",
       "L 435.746392 39.473163 \n",
       "L 437.97441 41.355241 \n",
       "L 440.202428 37.325672 \n",
       "L 442.430445 38.29824 \n",
       "L 444.658463 37.118919 \n",
       "L 446.88648 39.978442 \n",
       "L 449.114498 43.542462 \n",
       "L 451.342516 36.387008 \n",
       "L 453.570533 37.767788 \n",
       "L 455.798551 39.720199 \n",
       "L 458.026569 40.402093 \n",
       "L 460.254586 41.400119 \n",
       "L 462.482604 149.395472 \n",
       "L 464.710622 148.18954 \n",
       "L 466.938639 145.714736 \n",
       "L 469.166657 141.840268 \n",
       "L 471.394674 145.197704 \n",
       "L 473.622692 142.753604 \n",
       "L 475.85071 149.89193 \n",
       "L 478.078727 144.703335 \n",
       "L 480.306745 149.528268 \n",
       "L 482.534763 145.377014 \n",
       "L 484.76278 146.623153 \n",
       "L 486.990798 150.310233 \n",
       "L 489.218816 150.740772 \n",
       "L 491.446833 148.691197 \n",
       "L 493.674851 154.492177 \n",
       "L 495.902868 158.658967 \n",
       "L 498.130886 151.811318 \n",
       "L 500.358904 149.054237 \n",
       "L 502.586921 160.05952 \n",
       "L 504.814939 155.389618 \n",
       "L 507.042957 159.558561 \n",
       "L 509.270974 157.9158 \n",
       "L 511.498992 160.301413 \n",
       "L 513.72701 156.104411 \n",
       "L 515.955027 160.21643 \n",
       "L 518.183045 159.796709 \n",
       "L 520.411062 162.481469 \n",
       "L 522.63908 158.25929 \n",
       "L 524.867098 161.736787 \n",
       "L 527.095115 161.680048 \n",
       "L 529.323133 161.134617 \n",
       "L 531.551151 164.786007 \n",
       "L 533.779168 161.268878 \n",
       "L 536.007186 165.348906 \n",
       "L 538.235204 161.80901 \n",
       "L 540.463221 161.745594 \n",
       "L 542.691239 162.077475 \n",
       "L 544.919256 161.386647 \n",
       "L 547.147274 162.350178 \n",
       "L 549.375292 159.054822 \n",
       "L 551.603309 160.012162 \n",
       "L 553.831327 160.80291 \n",
       "L 556.059345 159.747059 \n",
       "L 558.287362 160.395413 \n",
       "L 560.51538 158.476496 \n",
       "L 562.743397 158.383593 \n",
       "L 564.971415 161.556921 \n",
       "L 567.199433 152.193577 \n",
       "L 569.42745 156.844131 \n",
       "L 571.655468 156.747406 \n",
       "L 573.883486 153.599609 \n",
       "L 576.111503 158.956781 \n",
       "L 578.339521 153.96973 \n",
       "L 580.567539 151.482643 \n",
       "L 582.795556 152.229948 \n",
       "L 585.023574 150.707183 \n",
       "L 587.251591 151.317844 \n",
       "L 589.479609 150.466858 \n",
       "L 591.707627 149.000854 \n",
       "L 593.935644 147.904831 \n",
       "L 596.163662 150.486265 \n",
       "L 598.39168 146.463639 \n",
       "L 600.619697 145.914533 \n",
       "L 602.847715 147.775808 \n",
       "L 605.075733 147.245997 \n",
       "L 607.30375 145.133526 \n",
       "L 609.531768 142.170159 \n",
       "L 611.759785 142.101093 \n",
       "L 613.987803 146.75921 \n",
       "L 616.215821 145.876136 \n",
       "L 618.443838 145.837851 \n",
       "L 620.671856 143.417112 \n",
       "L 622.899874 144.816862 \n",
       "L 625.127891 143.689362 \n",
       "L 627.355909 141.486689 \n",
       "L 629.583927 144.304802 \n",
       "L 631.811944 144.096422 \n",
       "L 634.039962 144.558766 \n",
       "L 636.267979 147.743489 \n",
       "L 638.495997 146.617947 \n",
       "L 640.724015 147.284715 \n",
       "L 642.952032 148.491024 \n",
       "L 645.18005 143.915253 \n",
       "L 647.408068 146.898932 \n",
       "L 649.636085 155.741647 \n",
       "L 651.864103 151.641556 \n",
       "L 654.09212 150.482631 \n",
       "L 656.320138 150.921872 \n",
       "L 658.548156 153.692935 \n",
       "L 660.776173 153.136507 \n",
       "L 665.232209 154.905131 \n",
       "L 667.460226 152.811161 \n",
       "L 669.688244 155.226876 \n",
       "L 671.916262 157.207252 \n",
       "L 676.372297 157.057772 \n",
       "L 678.600314 160.432595 \n",
       "L 680.828332 159.606514 \n",
       "L 683.05635 157.207089 \n",
       "L 685.284367 156.699482 \n",
       "L 687.512385 165.627159 \n",
       "L 689.740403 153.839695 \n",
       "L 691.96842 161.9677 \n",
       "L 694.196438 158.628518 \n",
       "L 696.424456 164.35236 \n",
       "L 698.652473 159.299182 \n",
       "L 700.880491 161.115274 \n",
       "L 703.108508 161.455776 \n",
       "L 705.336526 162.027372 \n",
       "L 707.564544 161.863475 \n",
       "L 709.792561 159.253811 \n",
       "L 712.020579 162.871855 \n",
       "L 714.248597 161.389402 \n",
       "L 716.476614 161.471968 \n",
       "L 718.704632 164.289675 \n",
       "L 720.93265 159.534673 \n",
       "L 723.160667 159.446432 \n",
       "L 725.388685 160.09761 \n",
       "L 727.616702 161.833321 \n",
       "L 729.84472 158.703722 \n",
       "L 734.300755 156.645426 \n",
       "L 736.528773 155.848179 \n",
       "L 738.756791 158.3548 \n",
       "L 740.984808 152.046496 \n",
       "L 740.984808 152.046496 \n",
       "\" clip-path=\"url(#p54263b7600)\" style=\"fill: none; stroke: #0969da; stroke-width: 1.5; stroke-linecap: round\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_5\">\n",
       "    <path d=\"M 41.498672 172.089167 \n",
       "L 41.498672 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 41.498672 172.089167 \n",
       "L 774.293672 172.089167 \n",
       "\" style=\"fill: none; stroke: #d1d2cb; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"text_8\">\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=\"41.498672\" y=\"17.925\" transform=\"rotate(-0 41.498672 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 41.498672 323.973333 \n",
       "L 774.293672 323.973333 \n",
       "L 774.293672 181.809167 \n",
       "L 41.498672 181.809167 \n",
       "L 41.498672 323.973333 \n",
       "z\n",
       "\" style=\"fill: none\"/>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_3\">\n",
       "    <g id=\"xtick_7\">\n",
       "     <g id=\"line2d_20\"/>\n",
       "    </g>\n",
       "    <g id=\"xtick_8\">\n",
       "     <g id=\"line2d_21\"/>\n",
       "    </g>\n",
       "    <g id=\"xtick_9\">\n",
       "     <g id=\"line2d_22\"/>\n",
       "    </g>\n",
       "    <g id=\"xtick_10\">\n",
       "     <g id=\"line2d_23\"/>\n",
       "    </g>\n",
       "    <g id=\"xtick_11\">\n",
       "     <g id=\"line2d_24\"/>\n",
       "    </g>\n",
       "    <g id=\"xtick_12\">\n",
       "     <g id=\"line2d_25\"/>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_4\">\n",
       "    <g id=\"ytick_7\">\n",
       "     <g id=\"line2d_26\">\n",
       "      <path d=\"M 41.498672 320.296031 \n",
       "L 774.293672 320.296031 \n",
       "\" clip-path=\"url(#p6a19b0681a)\" 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=\"35.498672\" y=\"324.342031\" transform=\"rotate(-0 35.498672 324.342031)\">62</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_8\">\n",
       "     <g id=\"line2d_28\">\n",
       "      <path d=\"M 41.498672 297.507363 \n",
       "L 774.293672 297.507363 \n",
       "\" clip-path=\"url(#p6a19b0681a)\" 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=\"35.498672\" y=\"301.553363\" transform=\"rotate(-0 35.498672 301.553363)\">64</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_9\">\n",
       "     <g id=\"line2d_30\">\n",
       "      <path d=\"M 41.498672 274.718695 \n",
       "L 774.293672 274.718695 \n",
       "\" clip-path=\"url(#p6a19b0681a)\" 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=\"35.498672\" y=\"278.764695\" transform=\"rotate(-0 35.498672 278.764695)\">66</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_10\">\n",
       "     <g id=\"line2d_32\">\n",
       "      <path d=\"M 41.498672 251.930027 \n",
       "L 774.293672 251.930027 \n",
       "\" clip-path=\"url(#p6a19b0681a)\" 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=\"35.498672\" y=\"255.976027\" transform=\"rotate(-0 35.498672 255.976027)\">68</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_11\">\n",
       "     <g id=\"line2d_34\">\n",
       "      <path d=\"M 41.498672 229.141359 \n",
       "L 774.293672 229.141359 \n",
       "\" clip-path=\"url(#p6a19b0681a)\" 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=\"35.498672\" y=\"233.187359\" transform=\"rotate(-0 35.498672 233.187359)\">70</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_12\">\n",
       "     <g id=\"line2d_36\">\n",
       "      <path d=\"M 41.498672 206.352691 \n",
       "L 774.293672 206.352691 \n",
       "\" clip-path=\"url(#p6a19b0681a)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_37\"/>\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: end; fill: #6f706a\" x=\"35.498672\" y=\"210.398691\" transform=\"rotate(-0 35.498672 210.398691)\">72</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_13\">\n",
       "     <g id=\"line2d_38\">\n",
       "      <path d=\"M 41.498672 183.564023 \n",
       "L 774.293672 183.564023 \n",
       "\" clip-path=\"url(#p6a19b0681a)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_39\"/>\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: end; fill: #6f706a\" x=\"35.498672\" y=\"187.610023\" transform=\"rotate(-0 35.498672 187.610023)\">74</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_16\">\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)\">temperature c</text>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"patch_8\">\n",
       "    <path d=\"M 431.290357 323.973333 \n",
       "L 460.254586 323.973333 \n",
       "L 460.254586 181.809167 \n",
       "L 431.290357 181.809167 \n",
       "z\n",
       "\" clip-path=\"url(#p6a19b0681a)\" style=\"fill: #cf222e; opacity: 0.15; stroke: #cf222e; stroke-linejoin: miter\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_9\">\n",
       "    <path d=\"M 587.251591 323.973333 \n",
       "L 616.215821 323.973333 \n",
       "L 616.215821 181.809167 \n",
       "L 587.251591 181.809167 \n",
       "z\n",
       "\" clip-path=\"url(#p6a19b0681a)\" style=\"fill: #cf222e; opacity: 0.15; stroke: #cf222e; stroke-linejoin: miter\"/>\n",
       "   </g>\n",
       "   <g id=\"line2d_40\">\n",
       "    <path d=\"M 74.807536 283.401247 \n",
       "L 77.035553 282.50217 \n",
       "L 79.263571 282.694482 \n",
       "L 81.491588 278.881653 \n",
       "L 83.719606 279.979476 \n",
       "L 85.947624 277.727834 \n",
       "L 88.175641 279.577461 \n",
       "L 90.403659 279.316169 \n",
       "L 92.631677 276.776413 \n",
       "L 94.859694 280.486096 \n",
       "L 99.315729 275.696808 \n",
       "L 101.543747 277.599832 \n",
       "L 103.771765 283.147324 \n",
       "L 105.999782 276.003169 \n",
       "L 108.2278 275.784883 \n",
       "L 110.455818 269.563087 \n",
       "L 112.683835 278.307535 \n",
       "L 114.911853 273.719028 \n",
       "L 117.139871 264.975836 \n",
       "L 119.367888 277.85588 \n",
       "L 121.595906 270.08989 \n",
       "L 123.823923 270.761804 \n",
       "L 126.051941 273.872207 \n",
       "L 128.279959 267.441621 \n",
       "L 130.507976 269.991539 \n",
       "L 132.735994 275.733491 \n",
       "L 134.964012 268.125888 \n",
       "L 137.192029 270.243017 \n",
       "L 139.420047 261.559345 \n",
       "L 141.648065 264.8592 \n",
       "L 143.876082 268.379502 \n",
       "L 146.1041 263.618316 \n",
       "L 148.332117 257.556389 \n",
       "L 150.560135 268.274928 \n",
       "L 152.788153 267.141665 \n",
       "L 155.01617 263.912939 \n",
       "L 157.244188 263.300316 \n",
       "L 159.472206 262.830228 \n",
       "L 161.700223 268.526147 \n",
       "L 163.928241 263.025467 \n",
       "L 166.156259 267.439715 \n",
       "L 168.384276 266.185155 \n",
       "L 170.612294 260.528936 \n",
       "L 172.840311 266.282286 \n",
       "L 175.068329 261.941172 \n",
       "L 177.296347 265.349672 \n",
       "L 179.524364 263.918432 \n",
       "L 181.752382 264.250935 \n",
       "L 183.9804 262.918964 \n",
       "L 186.208417 262.961524 \n",
       "L 188.436435 268.381735 \n",
       "L 190.664453 260.61316 \n",
       "L 192.89247 264.670857 \n",
       "L 195.120488 263.959456 \n",
       "L 197.348505 264.339299 \n",
       "L 199.576523 269.893046 \n",
       "L 201.804541 269.058182 \n",
       "L 204.032558 269.162825 \n",
       "L 206.260576 269.10242 \n",
       "L 208.488594 264.932446 \n",
       "L 210.716611 265.071979 \n",
       "L 212.944629 260.303267 \n",
       "L 215.172647 266.56499 \n",
       "L 217.400664 267.824292 \n",
       "L 219.628682 274.585365 \n",
       "L 221.856699 277.996939 \n",
       "L 224.084717 275.875863 \n",
       "L 226.312735 277.725589 \n",
       "L 228.540752 281.046015 \n",
       "L 230.76877 279.284564 \n",
       "L 232.996788 277.839124 \n",
       "L 235.224805 280.023211 \n",
       "L 237.452823 277.991052 \n",
       "L 239.68084 279.853863 \n",
       "L 241.908858 281.384454 \n",
       "L 244.136876 279.442147 \n",
       "L 246.364893 285.033171 \n",
       "L 248.592911 285.310787 \n",
       "L 250.820929 281.491043 \n",
       "L 253.048946 284.111304 \n",
       "L 255.276964 293.439352 \n",
       "L 257.504982 288.777786 \n",
       "L 259.732999 284.826649 \n",
       "L 261.961017 289.345711 \n",
       "L 264.189034 287.666233 \n",
       "L 266.417052 297.89601 \n",
       "L 268.64507 292.062779 \n",
       "L 270.873087 301.316878 \n",
       "L 273.101105 292.840564 \n",
       "L 275.329123 300.258928 \n",
       "L 277.55714 292.059493 \n",
       "L 279.785158 300.009416 \n",
       "L 282.013176 298.022955 \n",
       "L 284.241193 298.250738 \n",
       "L 286.469211 299.982727 \n",
       "L 288.697228 305.898607 \n",
       "L 290.925246 298.844216 \n",
       "L 293.153264 303.695504 \n",
       "L 295.381281 294.249514 \n",
       "L 297.609299 304.134463 \n",
       "L 299.837317 303.05659 \n",
       "L 302.065334 305.488134 \n",
       "L 304.293352 298.99021 \n",
       "L 306.52137 300.2475 \n",
       "L 308.749387 303.737885 \n",
       "L 310.977405 302.708875 \n",
       "L 313.205422 309.679709 \n",
       "L 315.43344 310.278601 \n",
       "L 317.661458 302.928706 \n",
       "L 319.889475 310.610695 \n",
       "L 322.117493 308.969521 \n",
       "L 324.345511 313.473101 \n",
       "L 326.573528 309.692878 \n",
       "L 328.801546 307.107933 \n",
       "L 331.029563 308.920225 \n",
       "L 333.257581 313.946496 \n",
       "L 335.485599 306.068693 \n",
       "L 337.713616 308.223555 \n",
       "L 339.941634 317.511326 \n",
       "L 342.169652 312.487109 \n",
       "L 344.397669 309.84189 \n",
       "L 346.625687 310.356483 \n",
       "L 348.853705 307.814771 \n",
       "L 351.081722 304.476659 \n",
       "L 353.30974 308.20024 \n",
       "L 355.537757 307.965046 \n",
       "L 357.765775 302.698939 \n",
       "L 359.993793 301.512282 \n",
       "L 362.22181 307.6866 \n",
       "L 364.449828 300.670376 \n",
       "L 366.677846 311.767781 \n",
       "L 368.905863 299.938324 \n",
       "L 371.133881 303.142918 \n",
       "L 373.361899 307.147479 \n",
       "L 375.589916 305.404711 \n",
       "L 377.817934 302.651619 \n",
       "L 380.045951 297.923245 \n",
       "L 382.273969 298.853516 \n",
       "L 384.501987 300.147671 \n",
       "L 386.730004 301.784734 \n",
       "L 388.958022 299.437565 \n",
       "L 391.18604 303.157889 \n",
       "L 393.414057 299.649373 \n",
       "L 395.642075 300.418499 \n",
       "L 397.870093 297.936028 \n",
       "L 400.09811 294.380488 \n",
       "L 402.326128 296.179534 \n",
       "L 404.554145 300.298909 \n",
       "L 406.782163 289.680724 \n",
       "L 409.010181 292.577252 \n",
       "L 411.238198 290.192495 \n",
       "L 413.466216 293.193143 \n",
       "L 415.694234 290.753608 \n",
       "L 417.922251 289.987099 \n",
       "L 420.150269 283.219032 \n",
       "L 422.378287 291.389529 \n",
       "L 424.606304 283.256015 \n",
       "L 426.834322 285.656655 \n",
       "L 429.062339 282.06518 \n",
       "L 431.290357 205.919232 \n",
       "L 433.518375 208.583121 \n",
       "L 435.746392 198.888774 \n",
       "L 437.97441 202.419827 \n",
       "L 440.202428 198.628653 \n",
       "L 442.430445 196.981216 \n",
       "L 444.658463 204.45265 \n",
       "L 446.88648 199.396033 \n",
       "L 449.114498 197.53577 \n",
       "L 451.342516 194.065819 \n",
       "L 453.570533 193.153745 \n",
       "L 455.798551 191.754394 \n",
       "L 458.026569 194.400842 \n",
       "L 460.254586 188.271174 \n",
       "L 462.482604 271.791594 \n",
       "L 464.710622 271.428422 \n",
       "L 466.938639 272.198588 \n",
       "L 469.166657 273.737077 \n",
       "L 471.394674 269.310446 \n",
       "L 473.622692 267.746561 \n",
       "L 475.85071 267.123496 \n",
       "L 478.078727 260.09124 \n",
       "L 480.306745 265.977484 \n",
       "L 482.534763 265.260609 \n",
       "L 484.76278 270.532054 \n",
       "L 486.990798 266.531285 \n",
       "L 489.218816 265.189426 \n",
       "L 491.446833 263.319097 \n",
       "L 493.674851 265.315951 \n",
       "L 495.902868 263.172966 \n",
       "L 498.130886 267.488067 \n",
       "L 500.358904 260.034063 \n",
       "L 502.586921 260.207608 \n",
       "L 504.814939 267.474782 \n",
       "L 507.042957 268.6393 \n",
       "L 511.498992 262.865596 \n",
       "L 513.72701 266.435831 \n",
       "L 515.955027 262.910269 \n",
       "L 518.183045 260.982383 \n",
       "L 520.411062 260.338132 \n",
       "L 522.63908 260.026233 \n",
       "L 524.867098 269.010866 \n",
       "L 527.095115 271.03265 \n",
       "L 529.323133 262.805145 \n",
       "L 531.551151 267.433978 \n",
       "L 533.779168 267.735914 \n",
       "L 536.007186 269.193471 \n",
       "L 538.235204 268.106401 \n",
       "L 540.463221 264.503674 \n",
       "L 542.691239 271.7925 \n",
       "L 544.919256 271.981897 \n",
       "L 547.147274 264.42369 \n",
       "L 549.375292 266.287621 \n",
       "L 551.603309 274.812651 \n",
       "L 553.831327 275.961563 \n",
       "L 556.059345 269.095005 \n",
       "L 558.287362 268.138367 \n",
       "L 560.51538 264.715315 \n",
       "L 562.743397 270.191068 \n",
       "L 564.971415 270.987053 \n",
       "L 567.199433 274.810792 \n",
       "L 569.42745 274.538258 \n",
       "L 571.655468 276.964464 \n",
       "L 573.883486 272.353255 \n",
       "L 576.111503 275.884529 \n",
       "L 578.339521 274.38998 \n",
       "L 580.567539 277.808635 \n",
       "L 582.795556 282.930773 \n",
       "L 585.023574 280.687799 \n",
       "L 587.251591 277.8432 \n",
       "L 589.479609 281.132062 \n",
       "L 591.707627 289.193905 \n",
       "L 593.935644 280.589921 \n",
       "L 596.163662 286.620659 \n",
       "L 598.39168 281.339438 \n",
       "L 600.619697 288.029915 \n",
       "L 602.847715 290.748793 \n",
       "L 605.075733 285.916496 \n",
       "L 607.30375 293.617597 \n",
       "L 609.531768 286.499223 \n",
       "L 611.759785 293.092543 \n",
       "L 613.987803 290.202517 \n",
       "L 616.215821 298.01656 \n",
       "L 618.443838 293.908801 \n",
       "L 620.671856 296.65977 \n",
       "L 622.899874 290.235553 \n",
       "L 625.127891 299.132912 \n",
       "L 627.355909 297.900101 \n",
       "L 629.583927 300.867278 \n",
       "L 631.811944 298.84162 \n",
       "L 634.039962 299.093325 \n",
       "L 636.267979 296.417642 \n",
       "L 638.495997 298.6205 \n",
       "L 640.724015 306.873113 \n",
       "L 642.952032 295.961117 \n",
       "L 645.18005 302.500729 \n",
       "L 647.408068 299.677392 \n",
       "L 649.636085 305.248351 \n",
       "L 651.864103 302.061005 \n",
       "L 654.09212 305.527685 \n",
       "L 656.320138 306.688586 \n",
       "L 658.548156 306.520473 \n",
       "L 660.776173 309.463725 \n",
       "L 663.004191 305.366882 \n",
       "L 665.232209 306.015219 \n",
       "L 667.460226 305.340023 \n",
       "L 669.688244 303.665132 \n",
       "L 671.916262 304.692214 \n",
       "L 674.144279 306.890763 \n",
       "L 676.372297 305.022702 \n",
       "L 678.600314 308.089339 \n",
       "L 680.828332 305.564466 \n",
       "L 683.05635 309.170448 \n",
       "L 685.284367 315.002373 \n",
       "L 687.512385 311.349476 \n",
       "L 689.740403 312.143721 \n",
       "L 691.96842 310.423641 \n",
       "L 694.196438 309.234639 \n",
       "L 696.424456 308.237478 \n",
       "L 698.652473 306.614907 \n",
       "L 700.880491 311.761195 \n",
       "L 703.108508 309.498661 \n",
       "L 705.336526 305.384224 \n",
       "L 707.564544 305.311636 \n",
       "L 709.792561 302.801273 \n",
       "L 712.020579 307.489166 \n",
       "L 714.248597 298.653359 \n",
       "L 716.476614 308.051184 \n",
       "L 718.704632 310.477716 \n",
       "L 720.93265 306.03635 \n",
       "L 723.160667 308.890132 \n",
       "L 725.388685 301.624249 \n",
       "L 727.616702 303.586142 \n",
       "L 729.84472 307.742422 \n",
       "L 732.072738 301.407259 \n",
       "L 734.300755 297.970049 \n",
       "L 736.528773 302.660799 \n",
       "L 738.756791 301.291755 \n",
       "L 740.984808 301.794251 \n",
       "L 740.984808 301.794251 \n",
       "\" clip-path=\"url(#p6a19b0681a)\" style=\"fill: none; stroke: #0969da; stroke-width: 1.5; stroke-linecap: round\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_10\">\n",
       "    <path d=\"M 41.498672 323.973333 \n",
       "L 41.498672 181.809167 \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 41.498672 323.973333 \n",
       "L 774.293672 323.973333 \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 41.498672 475.8575 \n",
       "L 774.293672 475.8575 \n",
       "L 774.293672 333.693333 \n",
       "L 41.498672 333.693333 \n",
       "L 41.498672 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_41\"/>\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=\"74.807536\" y=\"489.9495\" transform=\"rotate(-0 74.807536 489.9495)\">01-01 00</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_14\">\n",
       "     <g id=\"line2d_42\"/>\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=\"208.488594\" y=\"489.9495\" transform=\"rotate(-0 208.488594 489.9495)\">01-01 01</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_15\">\n",
       "     <g id=\"line2d_43\"/>\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=\"342.169652\" y=\"489.9495\" transform=\"rotate(-0 342.169652 489.9495)\">01-01 02</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_16\">\n",
       "     <g id=\"line2d_44\"/>\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=\"475.85071\" y=\"489.9495\" transform=\"rotate(-0 475.85071 489.9495)\">01-01 03</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_17\">\n",
       "     <g id=\"line2d_45\"/>\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: middle; fill: #6f706a\" x=\"609.531768\" y=\"489.9495\" transform=\"rotate(-0 609.531768 489.9495)\">01-01 04</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_18\">\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: middle; fill: #6f706a\" x=\"743.212826\" y=\"489.9495\" transform=\"rotate(-0 743.212826 489.9495)\">01-01 05</text>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_6\">\n",
       "    <g id=\"ytick_14\">\n",
       "     <g id=\"line2d_47\">\n",
       "      <path d=\"M 41.498672 454.029416 \n",
       "L 774.293672 454.029416 \n",
       "\" clip-path=\"url(#p95d7900a19)\" 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=\"35.498672\" y=\"458.075416\" transform=\"rotate(-0 35.498672 458.075416)\">18</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_15\">\n",
       "     <g id=\"line2d_49\">\n",
       "      <path d=\"M 41.498672 429.617788 \n",
       "L 774.293672 429.617788 \n",
       "\" clip-path=\"url(#p95d7900a19)\" 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=\"35.498672\" y=\"433.663788\" transform=\"rotate(-0 35.498672 433.663788)\">20</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_16\">\n",
       "     <g id=\"line2d_51\">\n",
       "      <path d=\"M 41.498672 405.206159 \n",
       "L 774.293672 405.206159 \n",
       "\" clip-path=\"url(#p95d7900a19)\" 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=\"35.498672\" y=\"409.252159\" transform=\"rotate(-0 35.498672 409.252159)\">22</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_17\">\n",
       "     <g id=\"line2d_53\">\n",
       "      <path d=\"M 41.498672 380.794531 \n",
       "L 774.293672 380.794531 \n",
       "\" clip-path=\"url(#p95d7900a19)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_54\"/>\n",
       "     <g id=\"text_26\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"35.498672\" y=\"384.840531\" transform=\"rotate(-0 35.498672 384.840531)\">24</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_18\">\n",
       "     <g id=\"line2d_55\">\n",
       "      <path d=\"M 41.498672 356.382903 \n",
       "L 774.293672 356.382903 \n",
       "\" clip-path=\"url(#p95d7900a19)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_56\"/>\n",
       "     <g id=\"text_27\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"35.498672\" y=\"360.428903\" transform=\"rotate(-0 35.498672 360.428903)\">26</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_28\">\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=\"404.775417\" transform=\"rotate(-90 18.130734 404.775417)\">motor current a</text>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"patch_13\">\n",
       "    <path d=\"M 431.290357 475.8575 \n",
       "L 460.254586 475.8575 \n",
       "L 460.254586 333.693333 \n",
       "L 431.290357 333.693333 \n",
       "z\n",
       "\" clip-path=\"url(#p95d7900a19)\" style=\"fill: #cf222e; opacity: 0.15; stroke: #cf222e; stroke-linejoin: miter\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_14\">\n",
       "    <path d=\"M 587.251591 475.8575 \n",
       "L 616.215821 475.8575 \n",
       "L 616.215821 333.693333 \n",
       "L 587.251591 333.693333 \n",
       "z\n",
       "\" clip-path=\"url(#p95d7900a19)\" style=\"fill: #cf222e; opacity: 0.15; stroke: #cf222e; stroke-linejoin: miter\"/>\n",
       "   </g>\n",
       "   <g id=\"line2d_57\">\n",
       "    <path d=\"M 74.807536 455.546914 \n",
       "L 77.035553 456.417538 \n",
       "L 79.263571 452.708298 \n",
       "L 81.491588 453.686664 \n",
       "L 83.719606 449.80784 \n",
       "L 85.947624 446.510172 \n",
       "L 88.175641 446.495263 \n",
       "L 90.403659 446.79107 \n",
       "L 92.631677 443.950086 \n",
       "L 94.859694 444.325218 \n",
       "L 97.087712 446.57492 \n",
       "L 99.315729 443.522724 \n",
       "L 101.543747 442.37516 \n",
       "L 103.771765 443.980107 \n",
       "L 105.999782 441.521842 \n",
       "L 108.2278 444.62844 \n",
       "L 110.455818 441.37253 \n",
       "L 112.683835 440.678609 \n",
       "L 114.911853 441.573128 \n",
       "L 117.139871 442.635286 \n",
       "L 119.367888 441.341704 \n",
       "L 121.595906 444.17895 \n",
       "L 123.823923 443.720286 \n",
       "L 126.051941 441.328145 \n",
       "L 128.279959 440.625948 \n",
       "L 130.507976 441.462322 \n",
       "L 132.735994 444.120155 \n",
       "L 134.964012 443.507257 \n",
       "L 137.192029 446.752413 \n",
       "L 139.420047 445.447308 \n",
       "L 141.648065 448.279928 \n",
       "L 143.876082 450.50123 \n",
       "L 146.1041 447.72968 \n",
       "L 148.332117 450.213585 \n",
       "L 150.560135 450.848296 \n",
       "L 152.788153 453.349719 \n",
       "L 155.01617 448.672517 \n",
       "L 157.244188 452.249004 \n",
       "L 159.472206 456.318238 \n",
       "L 161.700223 453.83958 \n",
       "L 163.928241 456.268378 \n",
       "L 166.156259 459.171069 \n",
       "L 168.384276 460.216239 \n",
       "L 170.612294 456.986866 \n",
       "L 172.840311 460.935511 \n",
       "L 175.068329 460.067542 \n",
       "L 177.296347 463.338976 \n",
       "L 179.524364 461.413406 \n",
       "L 181.752382 462.192816 \n",
       "L 183.9804 462.754675 \n",
       "L 186.208417 463.496316 \n",
       "L 188.436435 462.524898 \n",
       "L 190.664453 463.526386 \n",
       "L 192.89247 467.077564 \n",
       "L 195.120488 461.934271 \n",
       "L 197.348505 467.233329 \n",
       "L 199.576523 467.646984 \n",
       "L 201.804541 466.180125 \n",
       "L 204.032558 464.128457 \n",
       "L 206.260576 464.815548 \n",
       "L 208.488594 468.322404 \n",
       "L 210.716611 466.50842 \n",
       "L 212.944629 462.67926 \n",
       "L 215.172647 463.882899 \n",
       "L 217.400664 463.365818 \n",
       "L 219.628682 467.069049 \n",
       "L 221.856699 462.569379 \n",
       "L 224.084717 461.228913 \n",
       "L 226.312735 463.632868 \n",
       "L 228.540752 464.686621 \n",
       "L 230.76877 458.802298 \n",
       "L 232.996788 456.478551 \n",
       "L 235.224805 460.612008 \n",
       "L 237.452823 457.237416 \n",
       "L 239.68084 452.19567 \n",
       "L 241.908858 450.584942 \n",
       "L 244.136876 453.149443 \n",
       "L 246.364893 457.836253 \n",
       "L 248.592911 450.984518 \n",
       "L 250.820929 448.183689 \n",
       "L 253.048946 443.314518 \n",
       "L 255.276964 446.036319 \n",
       "L 257.504982 445.764249 \n",
       "L 259.732999 447.394216 \n",
       "L 261.961017 449.449928 \n",
       "L 264.189034 447.124948 \n",
       "L 266.417052 446.63171 \n",
       "L 268.64507 445.345786 \n",
       "L 270.873087 441.596258 \n",
       "L 273.101105 442.669814 \n",
       "L 275.329123 447.393518 \n",
       "L 277.55714 443.026204 \n",
       "L 279.785158 439.118105 \n",
       "L 282.013176 439.854457 \n",
       "L 284.241193 438.132397 \n",
       "L 286.469211 444.412154 \n",
       "L 288.697228 440.984116 \n",
       "L 293.153264 444.975038 \n",
       "L 295.381281 444.428997 \n",
       "L 297.609299 447.473969 \n",
       "L 299.837317 447.687902 \n",
       "L 302.065334 443.87839 \n",
       "L 304.293352 445.375612 \n",
       "L 306.52137 446.713348 \n",
       "L 308.749387 443.35227 \n",
       "L 310.977405 448.101309 \n",
       "L 313.205422 446.70044 \n",
       "L 315.43344 451.61288 \n",
       "L 317.661458 452.813776 \n",
       "L 319.889475 452.007346 \n",
       "L 322.117493 453.257423 \n",
       "L 324.345511 453.665586 \n",
       "L 326.573528 453.84278 \n",
       "L 328.801546 450.882457 \n",
       "L 331.029563 458.17062 \n",
       "L 333.257581 460.023003 \n",
       "L 335.485599 456.722289 \n",
       "L 337.713616 455.89315 \n",
       "L 339.941634 455.551513 \n",
       "L 342.169652 463.256318 \n",
       "L 344.397669 460.254088 \n",
       "L 346.625687 466.630589 \n",
       "L 348.853705 463.149682 \n",
       "L 351.081722 466.264204 \n",
       "L 353.30974 465.575935 \n",
       "L 355.537757 468.336942 \n",
       "L 357.765775 462.169365 \n",
       "L 359.993793 463.282962 \n",
       "L 362.22181 464.723163 \n",
       "L 364.449828 468.358928 \n",
       "L 366.677846 462.121938 \n",
       "L 368.905863 463.650574 \n",
       "L 371.133881 466.780364 \n",
       "L 373.361899 463.391409 \n",
       "L 375.589916 464.606371 \n",
       "L 377.817934 464.01144 \n",
       "L 380.045951 463.202868 \n",
       "L 382.273969 462.808052 \n",
       "L 384.501987 464.133267 \n",
       "L 386.730004 466.723484 \n",
       "L 388.958022 465.399381 \n",
       "L 391.18604 461.088253 \n",
       "L 393.414057 462.408125 \n",
       "L 395.642075 459.733497 \n",
       "L 397.870093 464.139596 \n",
       "L 400.09811 459.779574 \n",
       "L 402.326128 458.795557 \n",
       "L 404.554145 453.133493 \n",
       "L 406.782163 456.526811 \n",
       "L 409.010181 456.317489 \n",
       "L 411.238198 453.531124 \n",
       "L 413.466216 449.87917 \n",
       "L 415.694234 445.576657 \n",
       "L 417.922251 454.068166 \n",
       "L 420.150269 445.567108 \n",
       "L 422.378287 453.597452 \n",
       "L 424.606304 444.675541 \n",
       "L 426.834322 443.573375 \n",
       "L 429.062339 443.562371 \n",
       "L 431.290357 451.001944 \n",
       "L 433.518375 447.143411 \n",
       "L 435.746392 439.834838 \n",
       "L 437.97441 442.506528 \n",
       "L 440.202428 440.549614 \n",
       "L 442.430445 442.55952 \n",
       "L 444.658463 441.606584 \n",
       "L 446.88648 441.257846 \n",
       "L 449.114498 443.412653 \n",
       "L 451.342516 439.432958 \n",
       "L 453.570533 436.15466 \n",
       "L 455.798551 444.495315 \n",
       "L 458.026569 444.387021 \n",
       "L 460.254586 444.615964 \n",
       "L 462.482604 444.587299 \n",
       "L 464.710622 442.621823 \n",
       "L 466.938639 442.319074 \n",
       "L 469.166657 442.697253 \n",
       "L 471.394674 444.043997 \n",
       "L 473.622692 448.28396 \n",
       "L 475.85071 446.457101 \n",
       "L 478.078727 449.391835 \n",
       "L 480.306745 448.043287 \n",
       "L 482.534763 447.412324 \n",
       "L 484.76278 449.398037 \n",
       "L 486.990798 447.319949 \n",
       "L 489.218816 451.175995 \n",
       "L 491.446833 449.918295 \n",
       "L 493.674851 446.477547 \n",
       "L 495.902868 452.520273 \n",
       "L 498.130886 459.293995 \n",
       "L 500.358904 459.458076 \n",
       "L 502.586921 457.868896 \n",
       "L 504.814939 456.579259 \n",
       "L 507.042957 460.313266 \n",
       "L 509.270974 458.803675 \n",
       "L 511.498992 462.251562 \n",
       "L 513.72701 462.586947 \n",
       "L 515.955027 463.320404 \n",
       "L 518.183045 458.578074 \n",
       "L 520.411062 461.692206 \n",
       "L 522.63908 467.864496 \n",
       "L 524.867098 465.303744 \n",
       "L 527.095115 461.395582 \n",
       "L 529.323133 465.42331 \n",
       "L 531.551151 460.336884 \n",
       "L 533.779168 465.450118 \n",
       "L 536.007186 465.583789 \n",
       "L 538.235204 466.871049 \n",
       "L 540.463221 466.493093 \n",
       "L 542.691239 466.287127 \n",
       "L 544.919256 464.147829 \n",
       "L 547.147274 462.359091 \n",
       "L 549.375292 465.618673 \n",
       "L 551.603309 462.91329 \n",
       "L 553.831327 466.874868 \n",
       "L 556.059345 462.885428 \n",
       "L 558.287362 460.963769 \n",
       "L 562.743397 462.746073 \n",
       "L 564.971415 458.47056 \n",
       "L 567.199433 456.585348 \n",
       "L 569.42745 455.157881 \n",
       "L 571.655468 455.780924 \n",
       "L 573.883486 451.801785 \n",
       "L 576.111503 455.830018 \n",
       "L 578.339521 452.767558 \n",
       "L 580.567539 456.941656 \n",
       "L 582.795556 452.146768 \n",
       "L 585.023574 450.938222 \n",
       "L 587.251591 347.286873 \n",
       "L 589.479609 348.404607 \n",
       "L 591.707627 347.660579 \n",
       "L 593.935644 352.09342 \n",
       "L 596.163662 349.60602 \n",
       "L 598.39168 347.751221 \n",
       "L 600.619697 350.492463 \n",
       "L 602.847715 347.760635 \n",
       "L 605.075733 344.347706 \n",
       "L 607.30375 345.768773 \n",
       "L 609.531768 347.364968 \n",
       "L 611.759785 340.155341 \n",
       "L 613.987803 343.374537 \n",
       "L 616.215821 344.323911 \n",
       "L 618.443838 444.924374 \n",
       "L 620.671856 439.58967 \n",
       "L 622.899874 442.452466 \n",
       "L 627.355909 443.744026 \n",
       "L 629.583927 439.38259 \n",
       "L 631.811944 447.355524 \n",
       "L 634.039962 445.778402 \n",
       "L 636.267979 441.848018 \n",
       "L 638.495997 443.53553 \n",
       "L 640.724015 443.830483 \n",
       "L 642.952032 446.521499 \n",
       "L 645.18005 445.417607 \n",
       "L 647.408068 449.114974 \n",
       "L 649.636085 449.833803 \n",
       "L 651.864103 449.667163 \n",
       "L 654.09212 451.372725 \n",
       "L 656.320138 450.006856 \n",
       "L 658.548156 452.061977 \n",
       "L 660.776173 454.755944 \n",
       "L 663.004191 457.035924 \n",
       "L 665.232209 450.838921 \n",
       "L 667.460226 458.569134 \n",
       "L 669.688244 456.845345 \n",
       "L 671.916262 461.587489 \n",
       "L 674.144279 462.110858 \n",
       "L 676.372297 459.343635 \n",
       "L 678.600314 456.816394 \n",
       "L 680.828332 457.829477 \n",
       "L 683.05635 463.50486 \n",
       "L 685.284367 465.317864 \n",
       "L 687.512385 461.8969 \n",
       "L 689.740403 461.036679 \n",
       "L 691.96842 466.710209 \n",
       "L 694.196438 466.976992 \n",
       "L 696.424456 461.953765 \n",
       "L 698.652473 467.925444 \n",
       "L 700.880491 464.031653 \n",
       "L 703.108508 467.9469 \n",
       "L 705.336526 465.168257 \n",
       "L 707.564544 469.395492 \n",
       "L 709.792561 464.82494 \n",
       "L 712.020579 468.311991 \n",
       "L 714.248597 468.38898 \n",
       "L 716.476614 466.334613 \n",
       "L 718.704632 461.536274 \n",
       "L 720.93265 463.22574 \n",
       "L 723.160667 463.310973 \n",
       "L 725.388685 460.843579 \n",
       "L 727.616702 463.517288 \n",
       "L 729.84472 458.462363 \n",
       "L 732.072738 463.591677 \n",
       "L 734.300755 454.522332 \n",
       "L 736.528773 457.362779 \n",
       "L 738.756791 457.080574 \n",
       "L 740.984808 462.286825 \n",
       "L 740.984808 462.286825 \n",
       "\" clip-path=\"url(#p95d7900a19)\" style=\"fill: none; stroke: #0969da; stroke-width: 1.5; stroke-linecap: round\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_15\">\n",
       "    <path d=\"M 41.498672 475.8575 \n",
       "L 41.498672 333.693333 \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 41.498672 475.8575 \n",
       "L 774.293672 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=\"p54263b7600\">\n",
       "   <rect x=\"41.498672\" y=\"29.925\" width=\"732.795\" height=\"142.164167\"/>\n",
       "  </clipPath>\n",
       "  <clipPath id=\"p6a19b0681a\">\n",
       "   <rect x=\"41.498672\" y=\"181.809167\" width=\"732.795\" height=\"142.164167\"/>\n",
       "  </clipPath>\n",
       "  <clipPath id=\"p95d7900a19\">\n",
       "   <rect x=\"41.498672\" y=\"333.693333\" width=\"732.795\" height=\"142.164167\"/>\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.59 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>1.0</td>\n",
       "      <td>0.536</td>\n",
       "      <td>0.698</td>\n",
       "      <td>0.0</td>\n",
       "      <td>13.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Robust baseline (historical)</th>\n",
       "      <td>1.0</td>\n",
       "      <td>1.000</td>\n",
       "      <td>1.000</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                              precision  recall     f1  false_alarms  \\\n",
       "NV-Tesseract AD (batch)             1.0   0.536  0.698           0.0   \n",
       "Robust baseline (historical)        1.0   1.000  1.000           0.0   \n",
       "\n",
       "                              missed_points  \n",
       "NV-Tesseract AD (batch)                13.0  \n",
       "Robust baseline (historical)            0.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:06.821990</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.866151 \n",
       "L 779.333672 210.866151 \n",
       "L 779.333672 29.925 \n",
       "L 25.013672 29.925 \n",
       "L 25.013672 210.866151 \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 206.646223 \n",
       "L 779.333672 206.646223 \n",
       "\" clip-path=\"url(#p870b2376be)\" 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=\"210.692223\" transform=\"rotate(-0 19.013672 210.692223)\">0.0</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_2\">\n",
       "     <g id=\"line2d_9\">\n",
       "      <path d=\"M 25.013672 186.107424 \n",
       "L 779.333672 186.107424 \n",
       "\" clip-path=\"url(#p870b2376be)\" 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=\"190.153424\" transform=\"rotate(-0 19.013672 190.153424)\">0.1</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_3\">\n",
       "     <g id=\"line2d_11\">\n",
       "      <path d=\"M 25.013672 165.568624 \n",
       "L 779.333672 165.568624 \n",
       "\" clip-path=\"url(#p870b2376be)\" 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=\"169.614624\" transform=\"rotate(-0 19.013672 169.614624)\">0.2</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_4\">\n",
       "     <g id=\"line2d_13\">\n",
       "      <path d=\"M 25.013672 145.029825 \n",
       "L 779.333672 145.029825 \n",
       "\" clip-path=\"url(#p870b2376be)\" 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=\"149.075825\" transform=\"rotate(-0 19.013672 149.075825)\">0.3</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_5\">\n",
       "     <g id=\"line2d_15\">\n",
       "      <path d=\"M 25.013672 124.491026 \n",
       "L 779.333672 124.491026 \n",
       "\" clip-path=\"url(#p870b2376be)\" 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=\"128.537026\" transform=\"rotate(-0 19.013672 128.537026)\">0.4</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_6\">\n",
       "     <g id=\"line2d_17\">\n",
       "      <path d=\"M 25.013672 103.952226 \n",
       "L 779.333672 103.952226 \n",
       "\" clip-path=\"url(#p870b2376be)\" 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=\"107.998226\" transform=\"rotate(-0 19.013672 107.998226)\">0.5</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_7\">\n",
       "     <g id=\"line2d_19\">\n",
       "      <path d=\"M 25.013672 83.413427 \n",
       "L 779.333672 83.413427 \n",
       "\" clip-path=\"url(#p870b2376be)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_20\"/>\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=\"19.013672\" y=\"87.459427\" transform=\"rotate(-0 19.013672 87.459427)\">0.6</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_8\">\n",
       "     <g id=\"line2d_21\">\n",
       "      <path d=\"M 25.013672 62.874627 \n",
       "L 779.333672 62.874627 \n",
       "\" clip-path=\"url(#p870b2376be)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_22\"/>\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=\"19.013672\" y=\"66.920627\" transform=\"rotate(-0 19.013672 66.920627)\">0.7</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_9\">\n",
       "     <g id=\"line2d_23\">\n",
       "      <path d=\"M 25.013672 42.335828 \n",
       "L 779.333672 42.335828 \n",
       "\" clip-path=\"url(#p870b2376be)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_24\"/>\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=\"19.013672\" y=\"46.381828\" transform=\"rotate(-0 19.013672 46.381828)\">0.8</text>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"PathCollection_1\">\n",
       "    <defs>\n",
       "     <path id=\"m59c72f2b79\" 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(#p870b2376be)\">\n",
       "     <use xlink:href=\"#m59c72f2b79\" x=\"426.255034\" y=\"72.812149\" style=\"fill: #cf222e; stroke: #cf222e\"/>\n",
       "     <use xlink:href=\"#m59c72f2b79\" x=\"428.548497\" y=\"85.885257\" style=\"fill: #cf222e; stroke: #cf222e\"/>\n",
       "     <use xlink:href=\"#m59c72f2b79\" x=\"430.84196\" y=\"84.962265\" style=\"fill: #cf222e; stroke: #cf222e\"/>\n",
       "     <use xlink:href=\"#m59c72f2b79\" x=\"433.135423\" y=\"78.737009\" style=\"fill: #cf222e; stroke: #cf222e\"/>\n",
       "     <use xlink:href=\"#m59c72f2b79\" x=\"435.428886\" y=\"97.257915\" style=\"fill: #cf222e; stroke: #cf222e\"/>\n",
       "     <use xlink:href=\"#m59c72f2b79\" x=\"437.722349\" y=\"70.351479\" style=\"fill: #cf222e; stroke: #cf222e\"/>\n",
       "     <use xlink:href=\"#m59c72f2b79\" x=\"440.015812\" y=\"75.068842\" style=\"fill: #cf222e; stroke: #cf222e\"/>\n",
       "     <use xlink:href=\"#m59c72f2b79\" x=\"442.309275\" y=\"54.287546\" style=\"fill: #cf222e; stroke: #cf222e\"/>\n",
       "     <use xlink:href=\"#m59c72f2b79\" x=\"444.602738\" y=\"63.309162\" style=\"fill: #cf222e; stroke: #cf222e\"/>\n",
       "     <use xlink:href=\"#m59c72f2b79\" x=\"446.896202\" y=\"69.887749\" style=\"fill: #cf222e; stroke: #cf222e\"/>\n",
       "     <use xlink:href=\"#m59c72f2b79\" x=\"449.189665\" y=\"68.514151\" style=\"fill: #cf222e; stroke: #cf222e\"/>\n",
       "     <use xlink:href=\"#m59c72f2b79\" x=\"451.483128\" y=\"84.141862\" style=\"fill: #cf222e; stroke: #cf222e\"/>\n",
       "     <use xlink:href=\"#m59c72f2b79\" x=\"453.776591\" y=\"38.149598\" style=\"fill: #cf222e; stroke: #cf222e\"/>\n",
       "     <use xlink:href=\"#m59c72f2b79\" x=\"456.070054\" y=\"57.158412\" style=\"fill: #cf222e; stroke: #cf222e\"/>\n",
       "     <use xlink:href=\"#m59c72f2b79\" x=\"612.025542\" y=\"94.295871\" style=\"fill: #cf222e; stroke: #cf222e\"/>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"patch_3\">\n",
       "    <path d=\"M 426.255034 210.866151 \n",
       "L 456.070054 210.866151 \n",
       "L 456.070054 29.925 \n",
       "L 426.255034 29.925 \n",
       "z\n",
       "\" clip-path=\"url(#p870b2376be)\" style=\"fill: #cf222e; opacity: 0.12; stroke: #cf222e; stroke-linejoin: miter\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_4\">\n",
       "    <path d=\"M 586.797448 210.866151 \n",
       "L 616.612468 210.866151 \n",
       "L 616.612468 29.925 \n",
       "L 586.797448 29.925 \n",
       "z\n",
       "\" clip-path=\"url(#p870b2376be)\" style=\"fill: #cf222e; opacity: 0.12; stroke: #cf222e; stroke-linejoin: miter\"/>\n",
       "   </g>\n",
       "   <g id=\"line2d_25\">\n",
       "    <path d=\"M 59.300945 153.899888 \n",
       "L 61.594408 174.864444 \n",
       "L 63.887871 169.284548 \n",
       "L 66.181334 168.430911 \n",
       "L 68.474797 169.249437 \n",
       "L 70.76826 159.819979 \n",
       "L 73.061723 169.877988 \n",
       "L 75.355186 158.656348 \n",
       "L 77.648649 160.293307 \n",
       "L 79.942112 162.40061 \n",
       "L 82.235575 154.277372 \n",
       "L 84.529038 157.181506 \n",
       "L 86.822501 168.246119 \n",
       "L 89.115964 174.369931 \n",
       "L 91.409427 169.567364 \n",
       "L 93.702891 168.445635 \n",
       "L 95.996354 167.534922 \n",
       "L 98.289817 164.989574 \n",
       "L 100.58328 150.768805 \n",
       "L 102.876743 160.170479 \n",
       "L 105.170206 175.851266 \n",
       "L 107.463669 154.56186 \n",
       "L 109.757132 144.535518 \n",
       "L 112.050595 176.091535 \n",
       "L 114.344058 173.111883 \n",
       "L 116.637521 160.501839 \n",
       "L 118.930984 175.266413 \n",
       "L 121.224447 156.65599 \n",
       "L 123.51791 178.953874 \n",
       "L 125.811373 164.36801 \n",
       "L 128.104836 170.684307 \n",
       "L 130.398299 168.378469 \n",
       "L 132.691762 151.116211 \n",
       "L 134.985226 160.784493 \n",
       "L 137.278689 165.32713 \n",
       "L 139.572152 160.796117 \n",
       "L 141.865615 162.098169 \n",
       "L 144.159078 162.620162 \n",
       "L 146.452541 177.159418 \n",
       "L 148.746004 165.88592 \n",
       "L 151.039467 157.577427 \n",
       "L 153.33293 173.401314 \n",
       "L 155.626393 147.557279 \n",
       "L 157.919856 159.449115 \n",
       "L 160.213319 158.707422 \n",
       "L 162.506782 168.634521 \n",
       "L 164.800245 173.558894 \n",
       "L 167.093708 168.905496 \n",
       "L 169.387171 169.744262 \n",
       "L 171.680634 168.153502 \n",
       "L 173.974098 149.265569 \n",
       "L 176.267561 155.87542 \n",
       "L 178.561024 164.789177 \n",
       "L 180.854487 169.252424 \n",
       "L 183.14795 161.493193 \n",
       "L 185.441413 148.651244 \n",
       "L 187.734876 172.319904 \n",
       "L 190.028339 164.663781 \n",
       "L 192.321802 175.439601 \n",
       "L 194.615265 168.521297 \n",
       "L 196.908728 169.977315 \n",
       "L 199.202191 172.326168 \n",
       "L 201.495654 176.060942 \n",
       "L 203.789117 155.744099 \n",
       "L 206.08258 151.644995 \n",
       "L 208.376043 194.104658 \n",
       "L 210.669506 181.817187 \n",
       "L 212.96297 179.233783 \n",
       "L 215.256433 168.212536 \n",
       "L 217.549896 166.17532 \n",
       "L 219.843359 180.784646 \n",
       "L 222.136822 162.08514 \n",
       "L 224.430285 171.037029 \n",
       "L 226.723748 165.346283 \n",
       "L 229.017211 160.258197 \n",
       "L 231.310674 166.615484 \n",
       "L 233.604137 180.1677 \n",
       "L 235.8976 174.815154 \n",
       "L 238.191063 169.961675 \n",
       "L 240.484526 171.673877 \n",
       "L 242.777989 161.913023 \n",
       "L 245.071452 172.65534 \n",
       "L 247.364915 172.314156 \n",
       "L 249.658378 174.000775 \n",
       "L 251.951842 170.55287 \n",
       "L 254.245305 172.079025 \n",
       "L 256.538768 178.110229 \n",
       "L 258.832231 168.445577 \n",
       "L 261.125694 179.89412 \n",
       "L 263.419157 190.646586 \n",
       "L 265.71262 187.832767 \n",
       "L 268.006083 176.276384 \n",
       "L 270.299546 158.05858 \n",
       "L 272.593009 162.423671 \n",
       "L 274.886472 168.359108 \n",
       "L 277.179935 177.532761 \n",
       "L 279.473398 180.993675 \n",
       "L 281.766861 169.044793 \n",
       "L 284.060324 161.082618 \n",
       "L 286.353787 169.034742 \n",
       "L 288.64725 183.256204 \n",
       "L 290.940714 151.222239 \n",
       "L 293.234177 181.106848 \n",
       "L 295.52764 136.091704 \n",
       "L 297.821103 147.946369 \n",
       "L 300.114566 172.68708 \n",
       "L 302.408029 192.15524 \n",
       "L 304.701492 155.65453 \n",
       "L 306.994955 168.721473 \n",
       "L 309.288418 176.740286 \n",
       "L 311.581881 176.055513 \n",
       "L 313.875344 169.437531 \n",
       "L 316.168807 184.601772 \n",
       "L 318.46227 196.487569 \n",
       "L 320.755733 194.420629 \n",
       "L 323.049196 195.749086 \n",
       "L 325.342659 160.981713 \n",
       "L 327.636122 198.415026 \n",
       "L 329.929586 171.229756 \n",
       "L 332.223049 151.792898 \n",
       "L 334.516512 171.807876 \n",
       "L 336.809975 166.437619 \n",
       "L 339.103438 164.365772 \n",
       "L 341.396901 175.625782 \n",
       "L 343.690364 184.757881 \n",
       "L 345.983827 192.431868 \n",
       "L 348.27729 193.95852 \n",
       "L 350.570753 186.733447 \n",
       "L 352.864216 194.69674 \n",
       "L 355.157679 177.516286 \n",
       "L 357.451142 176.19513 \n",
       "L 359.744605 191.249958 \n",
       "L 362.038068 187.830963 \n",
       "L 364.331531 183.277156 \n",
       "L 366.624994 190.01122 \n",
       "L 368.918458 174.124126 \n",
       "L 371.211921 187.094658 \n",
       "L 373.505384 188.640371 \n",
       "L 375.798847 155.737549 \n",
       "L 378.09231 194.109989 \n",
       "L 380.385773 188.023104 \n",
       "L 382.679236 151.716452 \n",
       "L 384.972699 192.309807 \n",
       "L 387.266162 185.685087 \n",
       "L 389.559625 190.725686 \n",
       "L 391.853088 186.234995 \n",
       "L 394.146551 192.919872 \n",
       "L 396.440014 187.65384 \n",
       "L 398.733477 184.785421 \n",
       "L 401.02694 172.259988 \n",
       "L 403.320403 176.328612 \n",
       "L 405.613866 178.77607 \n",
       "L 407.90733 156.702862 \n",
       "L 410.200793 182.849808 \n",
       "L 412.494256 172.739314 \n",
       "L 414.787719 187.999867 \n",
       "L 417.081182 165.884509 \n",
       "L 419.374645 178.237513 \n",
       "L 421.668108 188.914707 \n",
       "L 423.961571 181.106574 \n",
       "L 426.255034 72.812149 \n",
       "L 428.548497 85.885257 \n",
       "L 430.84196 84.962265 \n",
       "L 433.135423 78.737009 \n",
       "L 435.428886 97.257915 \n",
       "L 437.722349 70.351479 \n",
       "L 440.015812 75.068842 \n",
       "L 442.309275 54.287546 \n",
       "L 444.602738 63.309162 \n",
       "L 446.896202 69.887749 \n",
       "L 449.189665 68.514151 \n",
       "L 451.483128 84.141862 \n",
       "L 453.776591 38.149598 \n",
       "L 456.070054 57.158412 \n",
       "L 458.363517 156.437971 \n",
       "L 460.65698 158.107677 \n",
       "L 462.950443 154.85368 \n",
       "L 465.243906 160.59075 \n",
       "L 467.537369 169.498101 \n",
       "L 469.830832 155.437413 \n",
       "L 472.124295 166.424002 \n",
       "L 474.417758 156.569509 \n",
       "L 476.711221 166.555715 \n",
       "L 479.004684 158.542283 \n",
       "L 483.59161 176.098305 \n",
       "L 485.885074 145.739324 \n",
       "L 488.178537 160.665941 \n",
       "L 490.472 174.330172 \n",
       "L 492.765463 149.451973 \n",
       "L 495.058926 161.931753 \n",
       "L 497.352389 169.003898 \n",
       "L 499.645852 166.381614 \n",
       "L 501.939315 159.153316 \n",
       "L 504.232778 179.215456 \n",
       "L 506.526241 170.317901 \n",
       "L 508.819704 167.896446 \n",
       "L 511.113167 178.141875 \n",
       "L 513.40663 156.438518 \n",
       "L 515.700093 156.873091 \n",
       "L 517.993556 157.754199 \n",
       "L 520.287019 173.620958 \n",
       "L 522.580482 185.5144 \n",
       "L 524.873946 184.59912 \n",
       "L 527.167409 159.667605 \n",
       "L 529.460872 185.326621 \n",
       "L 531.754335 173.354751 \n",
       "L 534.047798 156.302013 \n",
       "L 536.341261 179.42258 \n",
       "L 538.634724 180.259553 \n",
       "L 540.928187 182.325188 \n",
       "L 543.22165 153.034171 \n",
       "L 545.515113 152.471941 \n",
       "L 547.808576 175.773284 \n",
       "L 550.102039 161.073571 \n",
       "L 552.395502 164.568226 \n",
       "L 554.688965 167.567253 \n",
       "L 556.982428 159.172468 \n",
       "L 559.275891 160.498304 \n",
       "L 561.569354 168.292468 \n",
       "L 563.862818 139.176738 \n",
       "L 566.156281 151.090827 \n",
       "L 570.743207 169.033233 \n",
       "L 573.03667 163.979838 \n",
       "L 575.330133 179.087172 \n",
       "L 577.623596 172.541715 \n",
       "L 579.917059 161.018956 \n",
       "L 582.210522 176.71956 \n",
       "L 584.503985 168.278386 \n",
       "L 586.797448 102.440146 \n",
       "L 589.090911 126.185622 \n",
       "L 591.384374 119.403241 \n",
       "L 593.677837 110.24654 \n",
       "L 595.9713 126.294772 \n",
       "L 598.264763 117.275721 \n",
       "L 600.558226 123.029645 \n",
       "L 602.85169 109.967322 \n",
       "L 605.145153 111.164157 \n",
       "L 607.438616 122.776595 \n",
       "L 609.732079 149.749793 \n",
       "L 612.025542 94.295871 \n",
       "L 614.319005 125.398909 \n",
       "L 616.612468 108.798883 \n",
       "L 618.905931 188.573696 \n",
       "L 621.199394 183.165496 \n",
       "L 623.492857 177.281511 \n",
       "L 625.78632 146.355205 \n",
       "L 628.079783 160.962964 \n",
       "L 630.373246 161.63716 \n",
       "L 632.666709 186.076961 \n",
       "L 634.960172 179.783024 \n",
       "L 637.253635 172.724109 \n",
       "L 639.547098 162.254987 \n",
       "L 641.840562 174.21311 \n",
       "L 644.134025 156.772427 \n",
       "L 646.427488 165.368858 \n",
       "L 648.720951 192.865187 \n",
       "L 651.014414 192.333708 \n",
       "L 653.307877 172.474637 \n",
       "L 655.60134 194.437888 \n",
       "L 657.894803 179.225963 \n",
       "L 660.188266 188.083414 \n",
       "L 662.481729 170.866126 \n",
       "L 667.068655 194.676162 \n",
       "L 669.362118 190.476667 \n",
       "L 671.655581 164.682524 \n",
       "L 673.949044 186.436429 \n",
       "L 676.242507 181.346262 \n",
       "L 678.53597 180.261068 \n",
       "L 680.829434 194.974481 \n",
       "L 683.122897 182.143073 \n",
       "L 685.41636 188.228223 \n",
       "L 687.709823 192.651987 \n",
       "L 690.003286 174.909593 \n",
       "L 692.296749 202.565738 \n",
       "L 694.590212 202.254157 \n",
       "L 696.883675 194.037559 \n",
       "L 699.177138 191.882736 \n",
       "L 701.470601 177.712368 \n",
       "L 703.764064 198.832261 \n",
       "L 706.057527 200.016909 \n",
       "L 708.35099 191.476092 \n",
       "L 710.644453 177.198632 \n",
       "L 712.937916 187.922205 \n",
       "L 715.231379 197.032593 \n",
       "L 717.524842 196.404847 \n",
       "L 719.818306 202.641553 \n",
       "L 722.111769 198.521221 \n",
       "L 724.405232 174.784864 \n",
       "L 726.698695 193.766649 \n",
       "L 728.992158 196.679683 \n",
       "L 731.285621 189.594332 \n",
       "L 733.579084 192.125397 \n",
       "L 735.872547 202.621383 \n",
       "L 738.16601 149.511329 \n",
       "L 740.459473 183.663743 \n",
       "L 742.752936 183.493241 \n",
       "L 745.046399 192.995192 \n",
       "L 745.046399 192.995192 \n",
       "\" clip-path=\"url(#p870b2376be)\" style=\"fill: none; stroke: #0969da; stroke-width: 1.8; stroke-linecap: round\"/>\n",
       "   </g>\n",
       "   <g id=\"line2d_26\">\n",
       "    <path d=\"M 334.516512 210.866151 \n",
       "L 334.516512 29.925 \n",
       "\" clip-path=\"url(#p870b2376be)\" 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.866151 \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.866151 \n",
       "L 779.333672 210.866151 \n",
       "\" style=\"fill: none; stroke: #d1d2cb; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"text_10\">\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_27\">\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_11\">\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=\"#m59c72f2b79\" x=\"40.213672\" y=\"55.961\" style=\"fill: #cf222e; stroke: #cf222e\"/>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_12\">\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_28\">\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_13\">\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 222.916349 \n",
       "L 25.013672 222.916349 \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_29\"/>\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=\"59.300945\" y=\"417.9495\" transform=\"rotate(-0 59.300945 417.9495)\">01-01 00</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_8\">\n",
       "     <g id=\"line2d_30\"/>\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=\"196.908728\" y=\"417.9495\" transform=\"rotate(-0 196.908728 417.9495)\">01-01 01</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_9\">\n",
       "     <g id=\"line2d_31\"/>\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=\"334.516512\" y=\"417.9495\" transform=\"rotate(-0 334.516512 417.9495)\">01-01 02</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_10\">\n",
       "     <g id=\"line2d_32\"/>\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=\"472.124295\" y=\"417.9495\" transform=\"rotate(-0 472.124295 417.9495)\">01-01 03</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_11\">\n",
       "     <g id=\"line2d_33\"/>\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=\"609.732079\" y=\"417.9495\" transform=\"rotate(-0 609.732079 417.9495)\">01-01 04</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_12\">\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: middle; fill: #6f706a\" x=\"747.339862\" y=\"417.9495\" transform=\"rotate(-0 747.339862 417.9495)\">01-01 05</text>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_4\">\n",
       "    <g id=\"ytick_10\">\n",
       "     <g id=\"line2d_35\">\n",
       "      <path d=\"M 25.013672 397.467095 \n",
       "L 779.333672 397.467095 \n",
       "\" clip-path=\"url(#p6c205c4e68)\" 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=\"401.513095\" transform=\"rotate(-0 19.013672 401.513095)\">0</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_11\">\n",
       "     <g id=\"line2d_37\">\n",
       "      <path d=\"M 25.013672 373.998732 \n",
       "L 779.333672 373.998732 \n",
       "\" clip-path=\"url(#p6c205c4e68)\" 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=\"378.044732\" transform=\"rotate(-0 19.013672 378.044732)\">2</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_12\">\n",
       "     <g id=\"line2d_39\">\n",
       "      <path d=\"M 25.013672 350.530368 \n",
       "L 779.333672 350.530368 \n",
       "\" clip-path=\"url(#p6c205c4e68)\" 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=\"354.576368\" transform=\"rotate(-0 19.013672 354.576368)\">4</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_13\">\n",
       "     <g id=\"line2d_41\">\n",
       "      <path d=\"M 25.013672 327.062005 \n",
       "L 779.333672 327.062005 \n",
       "\" clip-path=\"url(#p6c205c4e68)\" 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=\"331.108005\" transform=\"rotate(-0 19.013672 331.108005)\">6</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_14\">\n",
       "     <g id=\"line2d_43\">\n",
       "      <path d=\"M 25.013672 303.593642 \n",
       "L 779.333672 303.593642 \n",
       "\" clip-path=\"url(#p6c205c4e68)\" 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=\"307.639642\" transform=\"rotate(-0 19.013672 307.639642)\">8</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_15\">\n",
       "     <g id=\"line2d_45\">\n",
       "      <path d=\"M 25.013672 280.125278 \n",
       "L 779.333672 280.125278 \n",
       "\" clip-path=\"url(#p6c205c4e68)\" 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=\"284.171278\" transform=\"rotate(-0 19.013672 284.171278)\">10</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_16\">\n",
       "     <g id=\"line2d_47\">\n",
       "      <path d=\"M 25.013672 256.656915 \n",
       "L 779.333672 256.656915 \n",
       "\" clip-path=\"url(#p6c205c4e68)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_48\"/>\n",
       "     <g id=\"text_26\">\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=\"260.702915\" transform=\"rotate(-0 19.013672 260.702915)\">12</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_17\">\n",
       "     <g id=\"line2d_49\">\n",
       "      <path d=\"M 25.013672 233.188552 \n",
       "L 779.333672 233.188552 \n",
       "\" clip-path=\"url(#p6c205c4e68)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_50\"/>\n",
       "     <g id=\"text_27\">\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=\"237.234552\" transform=\"rotate(-0 19.013672 237.234552)\">14</text>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"patch_8\">\n",
       "    <path d=\"M 426.255034 403.8575 \n",
       "L 456.070054 403.8575 \n",
       "L 456.070054 222.916349 \n",
       "L 426.255034 222.916349 \n",
       "z\n",
       "\" clip-path=\"url(#p6c205c4e68)\" style=\"fill: #cf222e; opacity: 0.12; stroke: #cf222e; stroke-linejoin: miter\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_9\">\n",
       "    <path d=\"M 586.797448 403.8575 \n",
       "L 616.612468 403.8575 \n",
       "L 616.612468 222.916349 \n",
       "L 586.797448 222.916349 \n",
       "z\n",
       "\" clip-path=\"url(#p6c205c4e68)\" style=\"fill: #cf222e; opacity: 0.12; stroke: #cf222e; stroke-linejoin: miter\"/>\n",
       "   </g>\n",
       "   <g id=\"line2d_51\">\n",
       "    <path d=\"M 59.300945 391.377448 \n",
       "L 61.594408 390.317901 \n",
       "L 63.887871 394.261442 \n",
       "L 66.181334 393.535541 \n",
       "L 68.474797 392.183702 \n",
       "L 70.76826 392.55905 \n",
       "L 73.061723 392.540906 \n",
       "L 75.355186 392.900902 \n",
       "L 77.648649 389.443431 \n",
       "L 79.942112 389.899966 \n",
       "L 82.235575 392.637848 \n",
       "L 84.529038 386.699212 \n",
       "L 86.822501 387.52675 \n",
       "L 89.115964 382.170098 \n",
       "L 91.409427 386.387393 \n",
       "L 93.702891 389.924485 \n",
       "L 95.996354 382.984388 \n",
       "L 98.289817 385.462051 \n",
       "L 100.58328 385.064508 \n",
       "L 102.876743 387.176627 \n",
       "L 105.170206 383.601694 \n",
       "L 107.463669 383.870228 \n",
       "L 109.757132 389.163765 \n",
       "L 112.050595 386.252535 \n",
       "L 114.344058 385.397963 \n",
       "L 116.637521 386.415828 \n",
       "L 118.930984 389.650405 \n",
       "L 121.224447 382.848968 \n",
       "L 123.51791 392.162839 \n",
       "L 125.811373 386.228014 \n",
       "L 130.398299 390.889227 \n",
       "L 132.691762 387.617114 \n",
       "L 134.985226 383.492209 \n",
       "L 137.278689 390.817756 \n",
       "L 139.572152 390.043231 \n",
       "L 141.865615 387.83657 \n",
       "L 146.452541 387.096595 \n",
       "L 148.746004 390.989451 \n",
       "L 151.039467 387.23003 \n",
       "L 153.33293 382.875064 \n",
       "L 155.626393 385.694891 \n",
       "L 157.919856 385.523785 \n",
       "L 160.213319 384.819539 \n",
       "L 162.506782 385.148311 \n",
       "L 164.800245 381.894528 \n",
       "L 167.093708 383.086106 \n",
       "L 169.387171 383.289402 \n",
       "L 171.680634 382.118061 \n",
       "L 173.974098 381.703046 \n",
       "L 176.267561 382.885259 \n",
       "L 178.561024 380.886033 \n",
       "L 180.854487 377.344676 \n",
       "L 183.14795 382.842554 \n",
       "L 185.441413 377.15511 \n",
       "L 187.734876 376.651693 \n",
       "L 190.028339 378.436857 \n",
       "L 192.321802 377.237689 \n",
       "L 194.615265 380.097543 \n",
       "L 196.908728 375.829708 \n",
       "L 199.202191 378.037322 \n",
       "L 201.495654 382.355067 \n",
       "L 203.789117 381.232575 \n",
       "L 206.08258 381.861862 \n",
       "L 208.376043 377.355039 \n",
       "L 210.669506 382.831125 \n",
       "L 212.96297 384.322453 \n",
       "L 215.256433 381.536862 \n",
       "L 217.549896 380.254447 \n",
       "L 219.843359 385.715758 \n",
       "L 222.136822 390.243648 \n",
       "L 224.430285 385.213241 \n",
       "L 226.723748 389.320112 \n",
       "L 229.017211 387.334039 \n",
       "L 231.310674 394.31953 \n",
       "L 233.604137 392.455201 \n",
       "L 235.8976 388.591328 \n",
       "L 238.191063 392.473337 \n",
       "L 240.484526 394.595716 \n",
       "L 242.777989 387.047226 \n",
       "L 245.071452 386.917898 \n",
       "L 247.364915 390.103829 \n",
       "L 249.658378 390.187568 \n",
       "L 251.951842 389.150541 \n",
       "L 254.245305 390.863516 \n",
       "L 256.538768 383.872012 \n",
       "L 258.832231 387.858713 \n",
       "L 261.125694 381.534032 \n",
       "L 263.419157 386.106865 \n",
       "L 265.71262 382.257084 \n",
       "L 268.006083 387.860959 \n",
       "L 270.299546 382.427612 \n",
       "L 272.593009 383.785252 \n",
       "L 274.886472 382.363318 \n",
       "L 277.179935 382.445852 \n",
       "L 279.473398 378.402665 \n",
       "L 281.766861 383.223964 \n",
       "L 284.060324 379.780259 \n",
       "L 286.353787 386.364196 \n",
       "L 288.64725 379.608363 \n",
       "L 290.940714 380.345032 \n",
       "L 293.234177 378.683201 \n",
       "L 295.52764 383.124185 \n",
       "L 297.821103 382.264895 \n",
       "L 300.114566 379.879403 \n",
       "L 302.408029 380.582676 \n",
       "L 304.701492 375.818484 \n",
       "L 306.994955 375.409174 \n",
       "L 309.288418 380.432433 \n",
       "L 311.581881 375.182206 \n",
       "L 313.875344 376.30386 \n",
       "L 316.168807 373.225904 \n",
       "L 318.46227 375.809484 \n",
       "L 320.755733 377.576155 \n",
       "L 323.049196 376.337551 \n",
       "L 325.342659 372.902364 \n",
       "L 327.636122 378.28642 \n",
       "L 329.929586 376.813688 \n",
       "L 332.223049 370.465994 \n",
       "L 334.516512 373.899777 \n",
       "L 336.809975 375.707642 \n",
       "L 339.103438 375.355946 \n",
       "L 341.396901 377.09307 \n",
       "L 343.690364 378.334533 \n",
       "L 345.983827 376.829623 \n",
       "L 348.27729 375.812016 \n",
       "L 350.570753 380.589467 \n",
       "L 352.864216 381.400484 \n",
       "L 355.157679 377.180668 \n",
       "L 359.744605 374.391399 \n",
       "L 362.038068 381.515314 \n",
       "L 364.331531 377.706368 \n",
       "L 366.624994 377.549128 \n",
       "L 368.918458 378.740217 \n",
       "L 371.211921 380.621807 \n",
       "L 375.798847 382.540661 \n",
       "L 378.09231 380.927878 \n",
       "L 380.385773 377.77559 \n",
       "L 382.679236 379.387021 \n",
       "L 384.972699 380.275799 \n",
       "L 387.266162 382.673682 \n",
       "L 389.559625 382.148025 \n",
       "L 391.853088 380.920175 \n",
       "L 394.146551 386.226311 \n",
       "L 396.440014 385.045131 \n",
       "L 398.733477 382.229759 \n",
       "L 401.02694 388.414645 \n",
       "L 403.320403 387.507098 \n",
       "L 405.613866 389.136951 \n",
       "L 407.90733 387.086169 \n",
       "L 410.200793 388.753461 \n",
       "L 414.787719 389.766975 \n",
       "L 417.081182 388.318843 \n",
       "L 419.374645 390.326308 \n",
       "L 421.668108 388.315878 \n",
       "L 423.961571 388.971583 \n",
       "L 426.255034 237.938841 \n",
       "L 428.548497 244.420589 \n",
       "L 430.84196 235.61122 \n",
       "L 433.135423 238.337396 \n",
       "L 435.428886 232.500595 \n",
       "L 437.722349 233.909354 \n",
       "L 440.015812 232.201115 \n",
       "L 442.309275 236.343113 \n",
       "L 444.602738 241.505569 \n",
       "L 446.896202 231.140947 \n",
       "L 449.189665 233.140997 \n",
       "L 451.483128 235.969049 \n",
       "L 453.776591 236.956768 \n",
       "L 456.070054 238.402402 \n",
       "L 458.363517 390.218918 \n",
       "L 460.65698 387.826938 \n",
       "L 462.950443 387.458493 \n",
       "L 465.243906 383.889208 \n",
       "L 467.537369 388.752429 \n",
       "L 469.830832 385.212168 \n",
       "L 472.124295 390.030814 \n",
       "L 474.417758 385.224643 \n",
       "L 476.711221 389.247576 \n",
       "L 479.004684 388.75763 \n",
       "L 481.298147 390.81718 \n",
       "L 483.59161 389.626069 \n",
       "L 485.885074 388.70898 \n",
       "L 488.178537 387.430711 \n",
       "L 490.472 388.795453 \n",
       "L 492.765463 386.683222 \n",
       "L 495.058926 386.81726 \n",
       "L 497.352389 385.185566 \n",
       "L 499.645852 384.654533 \n",
       "L 501.939315 390.121087 \n",
       "L 504.232778 385.380168 \n",
       "L 506.526241 387.413979 \n",
       "L 508.819704 383.217908 \n",
       "L 511.113167 382.809746 \n",
       "L 513.40663 381.91713 \n",
       "L 515.700093 385.035212 \n",
       "L 517.993556 381.146358 \n",
       "L 520.287019 376.386982 \n",
       "L 522.580482 379.50341 \n",
       "L 524.873946 382.307209 \n",
       "L 527.167409 379.357899 \n",
       "L 529.460872 377.808251 \n",
       "L 531.754335 379.325274 \n",
       "L 534.047798 376.992897 \n",
       "L 536.341261 377.596004 \n",
       "L 538.634724 378.055975 \n",
       "L 540.928187 378.306635 \n",
       "L 543.22165 380.910156 \n",
       "L 545.515113 381.336532 \n",
       "L 547.808576 379.120143 \n",
       "L 550.102039 382.412587 \n",
       "L 552.395502 377.591356 \n",
       "L 554.688965 382.446495 \n",
       "L 556.982428 384.167993 \n",
       "L 559.275891 383.704124 \n",
       "L 561.569354 382.616089 \n",
       "L 563.862818 382.485558 \n",
       "L 566.156281 390.113677 \n",
       "L 568.449744 389.311999 \n",
       "L 570.743207 389.452105 \n",
       "L 573.03667 393.605074 \n",
       "L 575.330133 386.251841 \n",
       "L 577.623596 393.475548 \n",
       "L 579.917059 389.680051 \n",
       "L 582.210522 394.099949 \n",
       "L 584.503985 395.632902 \n",
       "L 586.797448 271.804539 \n",
       "L 589.090911 273.164819 \n",
       "L 591.384374 272.259338 \n",
       "L 593.677837 277.654096 \n",
       "L 595.9713 274.626936 \n",
       "L 598.264763 272.369649 \n",
       "L 600.558226 275.705734 \n",
       "L 602.85169 272.381106 \n",
       "L 605.145153 268.22758 \n",
       "L 607.438616 269.957015 \n",
       "L 609.732079 271.89958 \n",
       "L 612.025542 263.125482 \n",
       "L 614.319005 267.043236 \n",
       "L 616.612468 268.198622 \n",
       "L 618.905931 386.597055 \n",
       "L 621.199394 384.136815 \n",
       "L 623.492857 387.620831 \n",
       "L 625.78632 383.026655 \n",
       "L 628.079783 383.377051 \n",
       "L 630.373246 381.841309 \n",
       "L 632.666709 383.225738 \n",
       "L 634.960172 383.053711 \n",
       "L 637.253635 384.882397 \n",
       "L 639.547098 383.376862 \n",
       "L 641.840562 377.736642 \n",
       "L 644.134025 385.194408 \n",
       "L 646.427488 380.724933 \n",
       "L 648.720951 382.654533 \n",
       "L 651.014414 378.847081 \n",
       "L 653.307877 381.025461 \n",
       "L 655.60134 378.656171 \n",
       "L 657.894803 377.862757 \n",
       "L 660.188266 377.977653 \n",
       "L 662.481729 375.966098 \n",
       "L 664.775192 378.766071 \n",
       "L 667.068655 378.322967 \n",
       "L 669.362118 378.784428 \n",
       "L 671.655581 379.929126 \n",
       "L 673.949044 379.22717 \n",
       "L 676.242507 377.724579 \n",
       "L 678.53597 379.001299 \n",
       "L 680.829434 376.905417 \n",
       "L 683.122897 378.631033 \n",
       "L 685.41636 376.166537 \n",
       "L 687.709823 372.180729 \n",
       "L 690.003286 374.677288 \n",
       "L 692.296749 374.134464 \n",
       "L 694.590212 375.310047 \n",
       "L 696.883675 376.122666 \n",
       "L 699.177138 376.804172 \n",
       "L 701.470601 376.312808 \n",
       "L 703.764064 374.395901 \n",
       "L 706.057527 375.942221 \n",
       "L 708.35099 378.754218 \n",
       "L 710.644453 374.523763 \n",
       "L 712.937916 380.086113 \n",
       "L 715.231379 375.842381 \n",
       "L 717.524842 375.748686 \n",
       "L 719.818306 376.931494 \n",
       "L 722.111769 375.273089 \n",
       "L 724.405232 378.308525 \n",
       "L 726.698695 376.358118 \n",
       "L 728.992158 381.32396 \n",
       "L 731.285621 379.983111 \n",
       "L 733.579084 377.142516 \n",
       "L 735.872547 381.472261 \n",
       "L 738.16601 383.82141 \n",
       "L 740.459473 380.615533 \n",
       "L 742.752936 381.551202 \n",
       "L 745.046399 381.207772 \n",
       "L 745.046399 381.207772 \n",
       "\" clip-path=\"url(#p6c205c4e68)\" style=\"fill: none; stroke: #b35900; stroke-width: 1.8; stroke-linecap: round\"/>\n",
       "   </g>\n",
       "   <g id=\"line2d_52\">\n",
       "    <path d=\"M 25.013672 327.062005 \n",
       "L 779.333672 327.062005 \n",
       "\" clip-path=\"url(#p6c205c4e68)\" style=\"fill: none; stroke-dasharray: 6.66,2.88; stroke-dashoffset: 0; stroke: #6f706a; stroke-width: 1.8\"/>\n",
       "   </g>\n",
       "   <g id=\"line2d_53\">\n",
       "    <path d=\"M 334.516512 403.8575 \n",
       "L 334.516512 222.916349 \n",
       "\" clip-path=\"url(#p6c205c4e68)\" 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 222.916349 \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_54\">\n",
       "     <path d=\"M 32.213672 234.932349 \n",
       "L 40.213672 234.932349 \n",
       "L 48.213672 234.932349 \n",
       "\" style=\"fill: none; stroke: #b35900; stroke-width: 1.8; stroke-linecap: round\"/>\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=\"237.732349\" transform=\"rotate(-0 54.613672 237.732349)\">Robust baseline score</text>\n",
       "    </g>\n",
       "    <g id=\"line2d_55\">\n",
       "     <path d=\"M 32.213672 248.252349 \n",
       "L 40.213672 248.252349 \n",
       "L 48.213672 248.252349 \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_29\">\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.052349\" transform=\"rotate(-0 54.613672 251.052349)\">Fixed threshold</text>\n",
       "    </g>\n",
       "    <g id=\"line2d_56\">\n",
       "     <path d=\"M 32.213672 261.572349 \n",
       "L 40.213672 261.572349 \n",
       "L 48.213672 261.572349 \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_30\">\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=\"264.372349\" transform=\"rotate(-0 54.613672 264.372349)\">Evaluation starts</text>\n",
       "    </g>\n",
       "   </g>\n",
       "  </g>\n",
       " </g>\n",
       " <defs>\n",
       "  <clipPath id=\"p870b2376be\">\n",
       "   <rect x=\"25.013672\" y=\"29.925\" width=\"754.32\" height=\"180.941151\"/>\n",
       "  </clipPath>\n",
       "  <clipPath id=\"p6c205c4e68\">\n",
       "   <rect x=\"25.013672\" y=\"222.916349\" width=\"754.32\" height=\"180.941151\"/>\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>160</th>\n",
       "      <td>2026-01-01 02:40:00</td>\n",
       "      <td>0.651616</td>\n",
       "      <td>[\"vibration_mm_s\",\"temperature_c\",\"motor_curre...</td>\n",
       "      <td>[0.514452,0.356701,0.128847]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>241</th>\n",
       "      <td>2026-01-01 04:01:00</td>\n",
       "      <td>0.547015</td>\n",
       "      <td>[\"motor_current_a\",\"vibration_mm_s\",\"temperatu...</td>\n",
       "      <td>[0.681677,0.273713,0.044611]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "              timestamp       MAE  \\\n",
       "160 2026-01-01 02:40:00  0.651616   \n",
       "241 2026-01-01 04:01:00  0.547015   \n",
       "\n",
       "                                       TopContributors  \\\n",
       "160  [\"vibration_mm_s\",\"temperature_c\",\"motor_curre...   \n",
       "241  [\"motor_current_a\",\"vibration_mm_s\",\"temperatu...   \n",
       "\n",
       "               ContributionShares  \n",
       "160  [0.514452,0.356701,0.128847]  \n",
       "241  [0.681677,0.273713,0.044611]  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/markdown": [
       "**Observed:** model F1 is 0.698, lower than the baseline's 1.000. The model creates 2 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': 'MFG-02 / MFG-09 / MFG-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": "MFG-02 / MFG-09 / MFG-10",
       "device": "mps",
       "metrics": {
        "NV-Tesseract AD (batch)": {
         "f1": 0.6976744186046512,
         "false_alarms": 0,
         "missed_points": 13,
         "precision": 1,
         "recall": 0.5357142857142857
        },
        "Robust baseline (historical)": {
         "f1": 1,
         "false_alarms": 0,
         "missed_points": 0,
         "precision": 1,
         "recall": 1
        }
       },
       "model": "nvidia/nv-tesseract-ad-diffusion",
       "protocol": "retrospective-batch",
       "review_episodes": 2,
       "samples": 3,
       "seconds": 6.594
      },
      "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": "apex",
   "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
}
