{
 "cells": [
  {
   "id": "cell-00",
   "metadata": {},
   "cell_type": "markdown",
   "source": [
    "# Meridian: forecast payment-operations staffing pressure\n",
    "\n",
    "**Casebook links: FIN-01 / FIN-09 · Real pretrained model · Synthetic data · Rolling-origin evaluation**\n",
    "\n",
    "A financial-services operations manager needs the next three days of payment-exception case volume. Understaffing delays review; overstaffing wastes capacity. This predicts aggregate workload, not fraud, creditworthiness, market returns, or individual customer outcomes.\n",
    "\n",
    "The saved example compares persistence, daily seasonality, direct NV-Tesseract forecasting, and DARR context-enhanced forecasting on three predeclared nonoverlapping future blocks. It then compares decisions when shortages cost more than excess capacity.\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",
    "- Forecasting model: `nvidia/nv-tesseract-forecasting`, revision `abff20a58834638b28227ff4ab934f26206e4b09`; required files include `run8_best_model_cr.pt` and `standardizer.pkl`.\n",
    "- Backbone: `AutonLab/MOMENT-1-large`, revision `ca58581bc7bea2ebed4e80dc0a3e4b8b609c6ecc`; required files include `config.json` and `model.safetensors`.\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('forecast')\n",
    "import torch\n",
    "from dataclasses import replace\n",
    "from sdk.forecasting import ForecastingConfig, perform_forecasting\n",
    "DEVICE = 'mps' if torch.backends.mps.is_available() else 'cuda' if torch.cuda.is_available() else 'cpu'\n",
    "print({'model': 'NV-Tesseract Forecasting', 'device': DEVICE,\n",
    "       'checkpoint_revision': LOCK['forecast']['revision'], 'backbone_revision': LOCK['backbone']['revision']})\n"
   ],
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'model': 'NV-Tesseract Forecasting', 'device': 'mps', 'checkpoint_revision': 'abff20a58834638b28227ff4ab934f26206e4b09', 'backbone_revision': 'ca58581bc7bea2ebed4e80dc0a3e4b8b609c6ecc'}\n"
     ]
    }
   ]
  },
  {
   "id": "cell-02",
   "metadata": {},
   "cell_type": "markdown",
   "source": [
    "## Build a dataset with business structure\n",
    "\n",
    "This fixture has hourly seasonality, a weekly cycle, trend, correlated workload signals, and random noise. It is not a real retailer or bank extract. A reproducible synthetic fixture lets us inspect the mechanics without exposing customer records; it does **not** establish real-world generalization.\n"
   ]
  },
  {
   "id": "cell-03",
   "metadata": {},
   "cell_type": "code",
   "execution_count": 2,
   "source": [
    "rng = np.random.default_rng(31)\n",
    "t = np.arange(1500)\n",
    "daily = np.sin(2*np.pi*t/24 - .5)\n",
    "weekly = np.cos(2*np.pi*t/168)\n",
    "values = 75 + 20*daily + 12*weekly + .012*t + rng.normal(0,4,len(t))\n",
    "df = pd.DataFrame({\n",
    "    'timestamp': pd.date_range('2026-01-01', periods=len(t), freq='h'),\n",
    "    'cases_per_hour': values,\n",
    "    'activity_index': 50 + 12*daily + 6*weekly + rng.normal(0,1,len(t)),\n",
    "    'upstream_volume': 200 + 35*daily + .02*t + rng.normal(0,3,len(t)),\n",
    "})\n",
    "TARGET = 'cases_per_hour'\n",
    "columns = [TARGET, 'activity_index', 'upstream_volume']\n",
    "features(df, columns)  # Reject missing data, duplicate/out-of-order timestamps and labels.\n",
    "origins = [1280, 1352, 1424]\n",
    "HORIZON = 72\n",
    "assert all(b-a >= HORIZON for a,b in zip(origins,origins[1:]))\n",
    "fig, ax = plt.subplots(figsize=(11,4))\n",
    "ax.plot(df.timestamp, df[TARGET], linewidth=.8)\n",
    "for origin in origins:\n",
    "    ax.axvspan(df.timestamp[origin], df.timestamp[origin+HORIZON-1], alpha=.12)\n",
    "ax.set(title='Synthetic workload and three predeclared future blocks', ylabel=TARGET.replace('_',' '))\n",
    "plt.tight_layout(); plt.show()\n",
    "display(df.head())\n"
   ],
   "outputs": [
    {
     "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.016406pt\" height=\"282.96pt\" viewBox=\"0 0 786.016406 282.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:14.998349</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 282.96 \n",
       "L 786.016406 282.96 \n",
       "L 786.016406 0 \n",
       "L 0 0 \n",
       "L 0 282.96 \n",
       "z\n",
       "\" style=\"fill: none\"/>\n",
       "  </g>\n",
       "  <g id=\"axes_1\">\n",
       "   <g id=\"patch_2\">\n",
       "    <path d=\"M 43.861406 259.8575 \n",
       "L 778.816406 259.8575 \n",
       "L 778.816406 29.925 \n",
       "L 43.861406 29.925 \n",
       "L 43.861406 259.8575 \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 id=\"text_1\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: middle; fill: #6f706a\" x=\"77.268452\" y=\"273.9495\" transform=\"rotate(-0 77.268452 273.9495)\">2026-01-01</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_2\">\n",
       "     <g id=\"line2d_2\"/>\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: middle; fill: #6f706a\" x=\"152.150155\" y=\"273.9495\" transform=\"rotate(-0 152.150155 273.9495)\">2026-01-08</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_3\">\n",
       "     <g id=\"line2d_3\"/>\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: middle; fill: #6f706a\" x=\"227.031858\" y=\"273.9495\" transform=\"rotate(-0 227.031858 273.9495)\">2026-01-15</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_4\">\n",
       "     <g id=\"line2d_4\"/>\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: middle; fill: #6f706a\" x=\"301.913561\" y=\"273.9495\" transform=\"rotate(-0 301.913561 273.9495)\">2026-01-22</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_5\">\n",
       "     <g id=\"line2d_5\"/>\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: middle; fill: #6f706a\" x=\"408.887422\" y=\"273.9495\" transform=\"rotate(-0 408.887422 273.9495)\">2026-02-01</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_6\">\n",
       "     <g id=\"line2d_6\"/>\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: middle; fill: #6f706a\" x=\"483.769125\" y=\"273.9495\" transform=\"rotate(-0 483.769125 273.9495)\">2026-02-08</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_7\">\n",
       "     <g id=\"line2d_7\"/>\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: middle; fill: #6f706a\" x=\"558.650828\" y=\"273.9495\" transform=\"rotate(-0 558.650828 273.9495)\">2026-02-15</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_8\">\n",
       "     <g id=\"line2d_8\"/>\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: middle; fill: #6f706a\" x=\"633.532531\" y=\"273.9495\" transform=\"rotate(-0 633.532531 273.9495)\">2026-02-22</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_9\">\n",
       "     <g id=\"line2d_9\"/>\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: middle; fill: #6f706a\" x=\"708.414234\" y=\"273.9495\" transform=\"rotate(-0 708.414234 273.9495)\">2026-03-01</text>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_2\">\n",
       "    <g id=\"ytick_1\">\n",
       "     <g id=\"line2d_10\">\n",
       "      <path d=\"M 43.861406 239.424198 \n",
       "L 778.816406 239.424198 \n",
       "\" clip-path=\"url(#p6bff54dffd)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_11\"/>\n",
       "     <g id=\"text_10\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"37.861406\" y=\"243.470198\" transform=\"rotate(-0 37.861406 243.470198)\">40</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_2\">\n",
       "     <g id=\"line2d_12\">\n",
       "      <path d=\"M 43.861406 194.900289 \n",
       "L 778.816406 194.900289 \n",
       "\" clip-path=\"url(#p6bff54dffd)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_13\"/>\n",
       "     <g id=\"text_11\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"37.861406\" y=\"198.946289\" transform=\"rotate(-0 37.861406 198.946289)\">60</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_3\">\n",
       "     <g id=\"line2d_14\">\n",
       "      <path d=\"M 43.861406 150.37638 \n",
       "L 778.816406 150.37638 \n",
       "\" clip-path=\"url(#p6bff54dffd)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_15\"/>\n",
       "     <g id=\"text_12\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"37.861406\" y=\"154.42238\" transform=\"rotate(-0 37.861406 154.42238)\">80</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_4\">\n",
       "     <g id=\"line2d_16\">\n",
       "      <path d=\"M 43.861406 105.852471 \n",
       "L 778.816406 105.852471 \n",
       "\" clip-path=\"url(#p6bff54dffd)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_17\"/>\n",
       "     <g id=\"text_13\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"37.861406\" y=\"109.898471\" transform=\"rotate(-0 37.861406 109.898471)\">100</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_5\">\n",
       "     <g id=\"line2d_18\">\n",
       "      <path d=\"M 43.861406 61.328562 \n",
       "L 778.816406 61.328562 \n",
       "\" clip-path=\"url(#p6bff54dffd)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_19\"/>\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=\"37.861406\" y=\"65.374562\" transform=\"rotate(-0 37.861406 65.374562)\">120</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_15\">\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=\"144.89125\" transform=\"rotate(-90 15.768 144.89125)\">cases per hour</text>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"patch_3\">\n",
       "    <path d=\"M 647.795712 259.8575 \n",
       "L 679.442146 259.8575 \n",
       "L 679.442146 29.925 \n",
       "L 647.795712 29.925 \n",
       "z\n",
       "\" clip-path=\"url(#p6bff54dffd)\" style=\"fill: #0969da; opacity: 0.12\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_4\">\n",
       "    <path d=\"M 679.887871 259.8575 \n",
       "L 711.534305 259.8575 \n",
       "L 711.534305 29.925 \n",
       "L 679.887871 29.925 \n",
       "z\n",
       "\" clip-path=\"url(#p6bff54dffd)\" style=\"fill: #0969da; opacity: 0.12\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_5\">\n",
       "    <path d=\"M 711.980029 259.8575 \n",
       "L 743.626463 259.8575 \n",
       "L 743.626463 29.925 \n",
       "L 711.980029 29.925 \n",
       "z\n",
       "\" clip-path=\"url(#p6bff54dffd)\" style=\"fill: #0969da; opacity: 0.12\"/>\n",
       "   </g>\n",
       "   <g id=\"line2d_20\">\n",
       "    <path d=\"M 77.268452 159.658983 \n",
       "L 78.159901 128.357325 \n",
       "L 78.605625 131.002473 \n",
       "L 79.051349 104.983036 \n",
       "L 79.497074 100.636642 \n",
       "L 79.942798 89.256839 \n",
       "L 80.388523 89.823718 \n",
       "L 80.834247 80.9072 \n",
       "L 81.279972 101.679318 \n",
       "L 81.725696 82.533956 \n",
       "L 82.17142 95.289623 \n",
       "L 82.617145 121.114586 \n",
       "L 83.062869 121.157256 \n",
       "L 83.508594 135.08811 \n",
       "L 83.954318 166.567843 \n",
       "L 84.400042 156.872842 \n",
       "L 84.845767 176.989049 \n",
       "L 85.291491 181.440105 \n",
       "L 85.737216 189.381923 \n",
       "L 86.18294 189.713576 \n",
       "L 87.074389 179.910803 \n",
       "L 87.520113 188.0829 \n",
       "L 87.965838 167.948759 \n",
       "L 88.411562 167.456844 \n",
       "L 88.857287 156.029445 \n",
       "L 89.748736 116.620308 \n",
       "L 90.19446 110.414939 \n",
       "L 90.640184 115.425949 \n",
       "L 91.085909 113.055764 \n",
       "L 91.531633 113.749045 \n",
       "L 91.977358 107.808624 \n",
       "L 92.423082 106.36142 \n",
       "L 92.868806 122.765947 \n",
       "L 93.314531 127.086305 \n",
       "L 93.760255 142.238157 \n",
       "L 94.20598 144.166813 \n",
       "L 94.651704 187.878824 \n",
       "L 95.097429 200.584424 \n",
       "L 95.543153 193.397536 \n",
       "L 95.988877 193.790515 \n",
       "L 96.434602 208.280111 \n",
       "L 96.880326 203.048319 \n",
       "L 97.326051 216.46933 \n",
       "L 97.771775 213.497391 \n",
       "L 98.2175 202.330739 \n",
       "L 98.663224 180.023673 \n",
       "L 99.108948 171.41723 \n",
       "L 99.554673 173.346579 \n",
       "L 100.000397 154.820046 \n",
       "L 100.446122 152.478922 \n",
       "L 100.891846 138.378435 \n",
       "L 101.337571 142.504863 \n",
       "L 101.783295 129.668663 \n",
       "L 102.229019 135.408743 \n",
       "L 102.674744 131.869639 \n",
       "L 103.566193 152.38066 \n",
       "L 104.011917 154.204638 \n",
       "L 104.457641 169.805594 \n",
       "L 104.903366 178.879072 \n",
       "L 105.34909 194.981351 \n",
       "L 105.794815 197.081006 \n",
       "L 106.240539 219.500425 \n",
       "L 106.686264 212.858172 \n",
       "L 107.131988 212.617596 \n",
       "L 107.577712 228.669108 \n",
       "L 108.023437 209.465642 \n",
       "L 108.469161 202.721429 \n",
       "L 109.36061 217.087794 \n",
       "L 109.806335 208.935586 \n",
       "L 110.697783 156.369499 \n",
       "L 111.143508 156.722715 \n",
       "L 111.589232 146.287042 \n",
       "L 112.034957 148.629121 \n",
       "L 112.480681 149.005272 \n",
       "L 112.926405 137.96279 \n",
       "L 113.37213 153.040399 \n",
       "L 113.817854 149.68738 \n",
       "L 114.263579 150.702534 \n",
       "L 114.709303 164.311813 \n",
       "L 115.155028 170.755558 \n",
       "L 115.600752 190.871507 \n",
       "L 116.046476 192.93816 \n",
       "L 116.492201 205.134752 \n",
       "L 116.937925 232.285962 \n",
       "L 117.829374 234.589564 \n",
       "L 118.275099 223.250798 \n",
       "L 118.720823 224.271091 \n",
       "L 119.166547 219.366736 \n",
       "L 119.612272 212.646426 \n",
       "L 120.503721 184.622127 \n",
       "L 120.949445 185.913667 \n",
       "L 121.39517 183.113805 \n",
       "L 121.840894 151.800359 \n",
       "L 122.286618 149.951146 \n",
       "L 122.732343 140.160603 \n",
       "L 123.178067 137.285459 \n",
       "L 123.623792 143.707732 \n",
       "L 124.069516 148.321366 \n",
       "L 124.51524 130.236507 \n",
       "L 124.960965 135.609106 \n",
       "L 125.406689 145.639945 \n",
       "L 125.852414 162.099113 \n",
       "L 126.298138 172.276999 \n",
       "L 126.743863 189.020671 \n",
       "L 127.189587 194.432502 \n",
       "L 127.635311 206.775866 \n",
       "L 128.081036 213.967655 \n",
       "L 128.52676 210.557509 \n",
       "L 128.972485 197.558637 \n",
       "L 129.418209 226.700394 \n",
       "L 129.863934 198.895723 \n",
       "L 130.309658 189.957501 \n",
       "L 130.755382 196.406058 \n",
       "L 131.201107 170.955838 \n",
       "L 131.646831 160.274659 \n",
       "L 132.092556 152.808975 \n",
       "L 132.53828 141.445191 \n",
       "L 132.984004 139.471324 \n",
       "L 133.429729 103.865898 \n",
       "L 133.875453 92.94444 \n",
       "L 134.321178 97.453712 \n",
       "L 134.766902 114.909985 \n",
       "L 135.212627 113.486196 \n",
       "L 135.658351 118.950818 \n",
       "L 136.104075 137.929654 \n",
       "L 136.5498 142.836559 \n",
       "L 136.995524 146.355622 \n",
       "L 137.886973 186.950217 \n",
       "L 138.332698 190.673354 \n",
       "L 138.778422 183.032648 \n",
       "L 139.224146 191.579483 \n",
       "L 139.669871 191.577927 \n",
       "L 140.115595 174.175959 \n",
       "L 140.56132 179.932981 \n",
       "L 141.007044 178.943798 \n",
       "L 141.452769 162.928753 \n",
       "L 141.898493 131.498234 \n",
       "L 142.344217 148.416994 \n",
       "L 142.789942 110.242828 \n",
       "L 143.235666 101.967932 \n",
       "L 143.681391 106.486528 \n",
       "L 144.127115 100.531705 \n",
       "L 144.572839 80.078272 \n",
       "L 145.464288 96.804431 \n",
       "L 145.910013 80.003957 \n",
       "L 146.355737 101.462756 \n",
       "L 146.801462 108.96754 \n",
       "L 147.69291 136.152526 \n",
       "L 148.138635 143.473816 \n",
       "L 148.584359 158.166796 \n",
       "L 149.030084 159.100104 \n",
       "L 149.475808 160.809892 \n",
       "L 149.921533 164.507583 \n",
       "L 150.367257 164.612653 \n",
       "L 150.812981 159.959198 \n",
       "L 151.258706 161.679072 \n",
       "L 151.70443 166.464689 \n",
       "L 152.150155 143.083116 \n",
       "L 152.595879 155.488409 \n",
       "L 153.487328 115.275485 \n",
       "L 153.933052 122.312257 \n",
       "L 154.378777 85.313091 \n",
       "L 154.824501 100.800358 \n",
       "L 155.270226 101.099135 \n",
       "L 155.71595 93.546989 \n",
       "L 156.161674 95.644131 \n",
       "L 156.607399 94.09578 \n",
       "L 157.053123 102.915005 \n",
       "L 157.498848 102.102529 \n",
       "L 157.944572 124.029988 \n",
       "L 158.390297 132.997412 \n",
       "L 158.836021 155.349738 \n",
       "L 159.281745 153.257211 \n",
       "L 160.173194 192.074901 \n",
       "L 160.618919 167.919427 \n",
       "L 161.064643 190.820866 \n",
       "L 161.510368 189.99491 \n",
       "L 161.956092 184.090666 \n",
       "L 162.401816 163.912922 \n",
       "L 162.847541 174.633756 \n",
       "L 164.184714 112.658099 \n",
       "L 164.630438 122.328142 \n",
       "L 165.076163 111.047446 \n",
       "L 165.521887 113.276267 \n",
       "L 165.967612 84.598651 \n",
       "L 166.413336 103.144843 \n",
       "L 166.859061 105.148795 \n",
       "L 167.304785 108.907579 \n",
       "L 167.750509 126.596585 \n",
       "L 168.196234 128.858013 \n",
       "L 168.641958 151.790033 \n",
       "L 169.087683 139.815434 \n",
       "L 169.533407 166.852695 \n",
       "L 169.979132 178.588104 \n",
       "L 170.424856 176.739936 \n",
       "L 170.87058 205.797682 \n",
       "L 171.316305 187.658367 \n",
       "L 171.762029 188.796206 \n",
       "L 172.207754 208.381281 \n",
       "L 172.653478 191.643892 \n",
       "L 173.099203 192.33067 \n",
       "L 173.544927 175.167165 \n",
       "L 174.436376 170.523014 \n",
       "L 174.8821 146.351672 \n",
       "L 175.327825 144.169909 \n",
       "L 176.219273 119.399293 \n",
       "L 176.664998 113.944341 \n",
       "L 177.110722 118.76615 \n",
       "L 177.556447 139.641342 \n",
       "L 178.002171 126.312081 \n",
       "L 178.447896 143.251123 \n",
       "L 178.89362 141.178565 \n",
       "L 179.339344 164.053517 \n",
       "L 179.785069 161.885833 \n",
       "L 180.676518 198.057638 \n",
       "L 181.122242 205.137391 \n",
       "L 181.567967 230.923536 \n",
       "L 182.013691 214.880898 \n",
       "L 182.459415 220.763188 \n",
       "L 182.90514 230.285385 \n",
       "L 183.350864 212.683178 \n",
       "L 183.796589 206.629769 \n",
       "L 184.242313 197.326073 \n",
       "L 184.688037 191.087728 \n",
       "L 185.133762 171.837978 \n",
       "L 185.579486 160.559053 \n",
       "L 186.025211 156.517534 \n",
       "L 186.470935 149.093349 \n",
       "L 187.362384 143.189765 \n",
       "L 187.808108 131.339044 \n",
       "L 188.699557 156.021163 \n",
       "L 189.145282 148.576006 \n",
       "L 189.591006 150.282486 \n",
       "L 190.036731 173.375083 \n",
       "L 190.482455 174.680902 \n",
       "L 190.928179 189.489172 \n",
       "L 191.373904 213.227816 \n",
       "L 191.819628 210.236154 \n",
       "L 192.265353 220.702676 \n",
       "L 192.711077 217.5841 \n",
       "L 193.156802 249.406023 \n",
       "L 193.602526 215.07054 \n",
       "L 194.04825 210.796559 \n",
       "L 194.493975 217.93307 \n",
       "L 194.939699 190.343672 \n",
       "L 195.385424 189.899591 \n",
       "L 196.722597 141.264095 \n",
       "L 197.168321 142.052301 \n",
       "L 197.614046 129.978108 \n",
       "L 198.05977 127.275843 \n",
       "L 198.505495 135.766903 \n",
       "L 198.951219 115.73327 \n",
       "L 199.842668 139.459466 \n",
       "L 200.288392 139.792101 \n",
       "L 200.734117 154.532276 \n",
       "L 201.179841 175.008136 \n",
       "L 201.625566 171.748751 \n",
       "L 202.07129 189.851467 \n",
       "L 203.408463 199.299593 \n",
       "L 203.854188 191.280209 \n",
       "L 204.299912 203.495968 \n",
       "L 204.745636 201.070273 \n",
       "L 205.191361 197.747333 \n",
       "L 205.637085 186.471737 \n",
       "L 206.08281 163.087225 \n",
       "L 206.528534 152.671642 \n",
       "L 206.974259 151.621474 \n",
       "L 207.865707 126.098998 \n",
       "L 208.311432 100.426229 \n",
       "L 208.757156 117.351076 \n",
       "L 209.202881 103.554401 \n",
       "L 209.648605 122.016193 \n",
       "L 210.540054 105.145742 \n",
       "L 210.985778 136.97952 \n",
       "L 211.431503 125.446815 \n",
       "L 211.877227 163.056078 \n",
       "L 212.322952 156.276496 \n",
       "L 212.768676 176.260678 \n",
       "L 213.214401 174.724592 \n",
       "L 213.660125 182.608765 \n",
       "L 214.105849 176.511356 \n",
       "L 214.551574 181.682763 \n",
       "L 214.997298 179.92512 \n",
       "L 215.443023 180.684558 \n",
       "L 215.888747 163.73447 \n",
       "L 216.334471 164.618249 \n",
       "L 217.22592 139.128921 \n",
       "L 218.117369 89.850785 \n",
       "L 218.563094 100.802305 \n",
       "L 219.008818 75.622412 \n",
       "L 219.454542 96.92196 \n",
       "L 219.900267 91.34295 \n",
       "L 220.345991 82.610623 \n",
       "L 220.791716 85.975719 \n",
       "L 221.23744 91.395214 \n",
       "L 221.683165 93.044061 \n",
       "L 222.128889 119.276498 \n",
       "L 222.574613 118.963846 \n",
       "L 223.020338 137.5071 \n",
       "L 223.466062 175.143691 \n",
       "L 223.911787 167.571912 \n",
       "L 224.357511 170.00251 \n",
       "L 224.803235 168.288005 \n",
       "L 225.24896 165.610111 \n",
       "L 225.694684 170.821592 \n",
       "L 226.140409 151.891275 \n",
       "L 226.586133 164.812558 \n",
       "L 227.477582 127.721451 \n",
       "L 227.923306 134.365236 \n",
       "L 228.369031 101.785413 \n",
       "L 228.814755 93.952436 \n",
       "L 229.26048 94.955206 \n",
       "L 229.706204 86.798993 \n",
       "L 230.151929 83.633287 \n",
       "L 230.597653 81.669592 \n",
       "L 231.043377 72.855303 \n",
       "L 231.489102 84.374683 \n",
       "L 231.934826 108.843384 \n",
       "L 232.380551 120.090331 \n",
       "L 232.826275 112.294824 \n",
       "L 233.272 153.025746 \n",
       "L 234.163448 158.279965 \n",
       "L 234.609173 162.655352 \n",
       "L 235.054897 157.887413 \n",
       "L 235.500622 173.139768 \n",
       "L 235.946346 145.375583 \n",
       "L 236.39207 173.579022 \n",
       "L 237.283519 155.881201 \n",
       "L 237.729244 157.219509 \n",
       "L 238.174968 137.737188 \n",
       "L 239.066417 122.666388 \n",
       "L 239.512141 120.593259 \n",
       "L 239.957866 110.564814 \n",
       "L 240.40359 93.693612 \n",
       "L 240.849315 97.782894 \n",
       "L 241.295039 93.530218 \n",
       "L 241.740764 96.225364 \n",
       "L 242.186488 102.964546 \n",
       "L 242.632212 113.530754 \n",
       "L 243.077937 118.767152 \n",
       "L 243.969386 136.08299 \n",
       "L 244.860835 177.342446 \n",
       "L 245.306559 188.373285 \n",
       "L 245.752283 184.52438 \n",
       "L 246.198008 208.899053 \n",
       "L 246.643732 202.183951 \n",
       "L 247.089457 187.506436 \n",
       "L 247.535181 195.945185 \n",
       "L 247.980905 192.484016 \n",
       "L 248.42663 167.298626 \n",
       "L 248.872354 191.911853 \n",
       "L 249.318079 158.402502 \n",
       "L 249.763803 151.226819 \n",
       "L 250.209528 141.782725 \n",
       "L 250.655252 121.227191 \n",
       "L 251.100976 109.995713 \n",
       "L 251.546701 109.921129 \n",
       "L 251.992425 114.06225 \n",
       "L 252.43815 119.310995 \n",
       "L 252.883874 129.870427 \n",
       "L 253.329599 135.762035 \n",
       "L 253.775323 160.338877 \n",
       "L 254.221047 162.16371 \n",
       "L 254.666772 164.506118 \n",
       "L 255.112496 183.043995 \n",
       "L 255.558221 185.948103 \n",
       "L 256.003945 216.765775 \n",
       "L 256.449669 215.420717 \n",
       "L 256.895394 224.097993 \n",
       "L 257.341118 207.658234 \n",
       "L 257.786843 218.065635 \n",
       "L 258.232567 214.128919 \n",
       "L 258.678292 215.53813 \n",
       "L 259.124016 200.192056 \n",
       "L 259.56974 194.234692 \n",
       "L 260.015465 179.141709 \n",
       "L 260.461189 143.635526 \n",
       "L 260.906914 162.809414 \n",
       "L 261.352638 146.087288 \n",
       "L 261.798363 145.069581 \n",
       "L 262.244087 121.548022 \n",
       "L 262.689811 140.655317 \n",
       "L 263.135536 141.626708 \n",
       "L 263.58126 135.458911 \n",
       "L 264.026985 131.325267 \n",
       "L 265.809882 221.207676 \n",
       "L 266.255607 200.271434 \n",
       "L 266.701331 208.19046 \n",
       "L 267.147056 204.565454 \n",
       "L 267.59278 214.830566 \n",
       "L 268.038504 222.242141 \n",
       "L 268.484229 206.428819 \n",
       "L 268.929953 197.391145 \n",
       "L 269.375678 210.842214 \n",
       "L 269.821402 186.966633 \n",
       "L 270.267127 173.28617 \n",
       "L 270.712851 178.617555 \n",
       "L 271.158575 154.786101 \n",
       "L 271.6043 148.888161 \n",
       "L 272.050024 128.514272 \n",
       "L 272.495749 121.622049 \n",
       "L 272.941473 145.45444 \n",
       "L 273.387198 126.676749 \n",
       "L 273.832922 113.536894 \n",
       "L 274.278646 125.158708 \n",
       "L 274.724371 145.345567 \n",
       "L 275.170095 149.075617 \n",
       "L 275.61582 164.352441 \n",
       "L 276.061544 162.633242 \n",
       "L 276.507268 187.744714 \n",
       "L 276.952993 175.050414 \n",
       "L 277.398717 186.526369 \n",
       "L 277.844442 185.050535 \n",
       "L 278.290166 193.671322 \n",
       "L 278.735891 194.459976 \n",
       "L 279.181615 192.612082 \n",
       "L 279.627339 189.958815 \n",
       "L 280.073064 203.935887 \n",
       "L 280.518788 171.420625 \n",
       "L 280.964513 171.471087 \n",
       "L 281.410237 173.200895 \n",
       "L 281.855962 125.392237 \n",
       "L 282.301686 127.81658 \n",
       "L 282.74741 132.126657 \n",
       "L 283.193135 107.077476 \n",
       "L 283.638859 100.714972 \n",
       "L 284.084584 100.579008 \n",
       "L 284.530308 89.973789 \n",
       "L 284.976033 116.63571 \n",
       "L 285.421757 105.034048 \n",
       "L 285.867481 130.102769 \n",
       "L 286.313206 127.065181 \n",
       "L 286.75893 136.05594 \n",
       "L 287.204655 156.645246 \n",
       "L 287.650379 139.565252 \n",
       "L 288.096103 186.208878 \n",
       "L 288.541828 189.247968 \n",
       "L 288.987552 183.472091 \n",
       "L 289.433277 187.626951 \n",
       "L 289.879001 166.885034 \n",
       "L 290.324726 176.63602 \n",
       "L 290.77045 151.433001 \n",
       "L 291.216174 157.044094 \n",
       "L 291.661899 134.286426 \n",
       "L 292.107623 122.018509 \n",
       "L 292.553348 115.873702 \n",
       "L 292.999072 99.18641 \n",
       "L 293.444797 92.693028 \n",
       "L 293.890521 69.465996 \n",
       "L 294.336245 62.270105 \n",
       "L 294.78197 84.64029 \n",
       "L 295.227694 78.419122 \n",
       "L 295.673419 76.662872 \n",
       "L 296.119143 88.651927 \n",
       "L 296.564867 85.074874 \n",
       "L 297.010592 89.499418 \n",
       "L 297.456316 141.803717 \n",
       "L 297.902041 140.157044 \n",
       "L 298.347765 133.67647 \n",
       "L 299.239214 167.216725 \n",
       "L 299.684938 166.97148 \n",
       "L 300.130663 164.707023 \n",
       "L 300.576387 149.174262 \n",
       "L 301.022112 167.602258 \n",
       "L 301.913561 129.102564 \n",
       "L 302.359285 122.086739 \n",
       "L 302.805009 121.129049 \n",
       "L 303.250734 111.000324 \n",
       "L 303.696458 113.933276 \n",
       "L 304.142183 104.341122 \n",
       "L 304.587907 90.296574 \n",
       "L 305.033632 70.988998 \n",
       "L 305.479356 70.184537 \n",
       "L 305.92508 67.961212 \n",
       "L 306.816529 85.427368 \n",
       "L 307.262254 100.479985 \n",
       "L 307.707978 120.37083 \n",
       "L 308.153702 114.40536 \n",
       "L 309.045151 164.594071 \n",
       "L 309.490876 154.017119 \n",
       "L 309.9366 164.672142 \n",
       "L 310.382325 148.588323 \n",
       "L 310.828049 174.549288 \n",
       "L 311.273773 167.930046 \n",
       "L 311.719498 177.354214 \n",
       "L 312.165222 154.407647 \n",
       "L 312.610947 149.519312 \n",
       "L 313.056671 149.066842 \n",
       "L 313.502396 128.89668 \n",
       "L 313.94812 131.783272 \n",
       "L 314.393844 105.455444 \n",
       "L 314.839569 106.527001 \n",
       "L 315.285293 93.241591 \n",
       "L 315.731018 101.263622 \n",
       "L 316.176742 99.690682 \n",
       "L 317.068191 93.69998 \n",
       "L 317.513915 108.213394 \n",
       "L 317.95964 140.925356 \n",
       "L 318.405364 125.53329 \n",
       "L 318.851089 145.019465 \n",
       "L 319.742537 157.806949 \n",
       "L 320.188262 170.724101 \n",
       "L 320.633986 192.458568 \n",
       "L 321.079711 194.345676 \n",
       "L 321.97116 183.480337 \n",
       "L 322.416884 195.663428 \n",
       "L 322.862608 188.112885 \n",
       "L 323.308333 182.848991 \n",
       "L 323.754057 160.490781 \n",
       "L 324.199782 159.930824 \n",
       "L 324.645506 122.179696 \n",
       "L 325.091231 125.745616 \n",
       "L 325.536955 114.449046 \n",
       "L 325.982679 113.63207 \n",
       "L 326.428404 121.053157 \n",
       "L 326.874128 138.121087 \n",
       "L 327.319853 104.913995 \n",
       "L 327.765577 120.698121 \n",
       "L 328.211301 148.451606 \n",
       "L 328.657026 116.306012 \n",
       "L 329.10275 146.569534 \n",
       "L 329.548475 151.232816 \n",
       "L 330.439924 204.87507 \n",
       "L 330.885648 205.692151 \n",
       "L 331.331372 199.069063 \n",
       "L 331.777097 229.84428 \n",
       "L 332.222821 217.502769 \n",
       "L 332.668546 201.182661 \n",
       "L 333.11427 197.650037 \n",
       "L 333.559995 199.713614 \n",
       "L 334.005719 214.418229 \n",
       "L 334.897168 158.273998 \n",
       "L 335.342892 150.83544 \n",
       "L 335.788617 151.831657 \n",
       "L 336.234341 136.092664 \n",
       "L 336.680066 127.690663 \n",
       "L 337.12579 132.355364 \n",
       "L 338.017239 135.88876 \n",
       "L 338.462963 141.913288 \n",
       "L 338.908688 142.385833 \n",
       "L 339.354412 151.442226 \n",
       "L 339.800136 156.650087 \n",
       "L 340.245861 168.084738 \n",
       "L 340.691585 185.926923 \n",
       "L 341.13731 214.302295 \n",
       "L 341.583034 199.035165 \n",
       "L 342.028759 218.658534 \n",
       "L 342.474483 199.031712 \n",
       "L 342.920207 218.203793 \n",
       "L 343.365932 193.327402 \n",
       "L 343.811656 202.57924 \n",
       "L 344.257381 185.608913 \n",
       "L 344.703105 188.980571 \n",
       "L 345.14883 174.834295 \n",
       "L 345.594554 171.138271 \n",
       "L 346.486003 148.332186 \n",
       "L 346.931727 127.78458 \n",
       "L 347.377452 137.026939 \n",
       "L 347.823176 112.997938 \n",
       "L 348.2689 122.510601 \n",
       "L 348.714625 115.643623 \n",
       "L 349.160349 133.979856 \n",
       "L 349.606074 131.189819 \n",
       "L 350.051798 155.556592 \n",
       "L 350.497523 156.111635 \n",
       "L 350.943247 162.862821 \n",
       "L 351.388971 180.784043 \n",
       "L 351.834696 183.561892 \n",
       "L 352.726145 194.414856 \n",
       "L 353.171869 217.099613 \n",
       "L 353.617594 201.89471 \n",
       "L 354.063318 198.351276 \n",
       "L 354.509042 198.355696 \n",
       "L 354.954767 191.068453 \n",
       "L 355.400491 154.994733 \n",
       "L 355.846216 152.808286 \n",
       "L 356.737665 124.569524 \n",
       "L 357.183389 131.902816 \n",
       "L 357.629113 115.766016 \n",
       "L 358.074838 121.362975 \n",
       "L 358.520562 98.704711 \n",
       "L 358.966287 115.166082 \n",
       "L 359.857735 95.935014 \n",
       "L 360.30346 104.036267 \n",
       "L 360.749184 125.966156 \n",
       "L 361.194909 135.072818 \n",
       "L 361.640633 126.035967 \n",
       "L 362.532082 162.306051 \n",
       "L 362.977806 164.633044 \n",
       "L 363.423531 170.736055 \n",
       "L 363.869255 184.699452 \n",
       "L 364.31498 180.392175 \n",
       "L 364.760704 191.53319 \n",
       "L 365.206429 165.103876 \n",
       "L 365.652153 158.354076 \n",
       "L 366.097877 139.648912 \n",
       "L 366.543602 128.081379 \n",
       "L 366.989326 128.966428 \n",
       "L 367.435051 98.434943 \n",
       "L 367.880775 107.855127 \n",
       "L 368.326499 83.228792 \n",
       "L 368.772224 88.701259 \n",
       "L 369.217948 84.776904 \n",
       "L 369.663673 88.470193 \n",
       "L 370.109397 79.168106 \n",
       "L 370.555122 62.676956 \n",
       "L 371.000846 88.164337 \n",
       "L 371.44657 94.248707 \n",
       "L 371.892295 111.880818 \n",
       "L 372.338019 115.509062 \n",
       "L 373.229468 137.14696 \n",
       "L 373.675193 137.895874 \n",
       "L 374.120917 156.944609 \n",
       "L 374.566641 156.957284 \n",
       "L 375.012366 147.938929 \n",
       "L 375.903815 161.624825 \n",
       "L 376.349539 136.208737 \n",
       "L 376.795264 132.429926 \n",
       "L 377.240988 134.461283 \n",
       "L 377.686712 122.692909 \n",
       "L 378.132437 107.828834 \n",
       "L 378.578161 86.434643 \n",
       "L 379.023886 81.892699 \n",
       "L 379.46961 69.409546 \n",
       "L 379.915334 52.218698 \n",
       "L 380.361059 57.738389 \n",
       "L 380.806783 74.26886 \n",
       "L 381.252508 86.186694 \n",
       "L 381.698232 75.513244 \n",
       "L 382.143957 104.000141 \n",
       "L 382.589681 115.899898 \n",
       "L 383.035405 121.996094 \n",
       "L 383.48113 130.426313 \n",
       "L 383.926854 146.373191 \n",
       "L 384.372579 151.336332 \n",
       "L 384.818303 185.078705 \n",
       "L 385.264028 169.219741 \n",
       "L 385.709752 167.510762 \n",
       "L 386.155476 160.378055 \n",
       "L 386.601201 159.577281 \n",
       "L 387.046925 158.127585 \n",
       "L 387.49265 125.24931 \n",
       "L 387.938374 128.624945 \n",
       "L 388.829823 113.134932 \n",
       "L 389.275547 102.015475 \n",
       "L 389.721272 105.205714 \n",
       "L 390.166996 101.040695 \n",
       "L 390.612721 86.551432 \n",
       "L 391.058445 102.443883 \n",
       "L 391.504169 85.664842 \n",
       "L 391.949894 100.047311 \n",
       "L 392.395618 98.506741 \n",
       "L 392.841343 114.082064 \n",
       "L 393.287067 134.302524 \n",
       "L 394.178516 155.571816 \n",
       "L 394.62424 151.891345 \n",
       "L 395.069965 161.252534 \n",
       "L 395.515689 183.02893 \n",
       "L 395.961414 185.326048 \n",
       "L 396.407138 195.831606 \n",
       "L 396.852863 175.336405 \n",
       "L 397.298587 182.013897 \n",
       "L 397.744311 183.58971 \n",
       "L 398.190036 181.068797 \n",
       "L 399.081485 132.215611 \n",
       "L 399.527209 137.523618 \n",
       "L 399.972933 136.58603 \n",
       "L 400.864382 119.578459 \n",
       "L 401.310107 131.427868 \n",
       "L 401.755831 102.802191 \n",
       "L 403.093004 153.174372 \n",
       "L 403.538729 134.190458 \n",
       "L 403.984453 146.934257 \n",
       "L 404.430178 148.427858 \n",
       "L 404.875902 164.406562 \n",
       "L 405.767351 209.590438 \n",
       "L 406.213075 199.900379 \n",
       "L 406.6588 211.649958 \n",
       "L 407.104524 207.569941 \n",
       "L 407.550249 221.203763 \n",
       "L 407.995973 205.513912 \n",
       "L 408.441698 198.034949 \n",
       "L 408.887422 198.473349 \n",
       "L 409.778871 185.161918 \n",
       "L 410.224595 153.58631 \n",
       "L 410.67032 133.193174 \n",
       "L 411.116044 135.44397 \n",
       "L 411.561768 151.41939 \n",
       "L 412.007493 124.884789 \n",
       "L 412.453217 138.283067 \n",
       "L 412.898942 123.111787 \n",
       "L 413.344666 114.605381 \n",
       "L 413.790391 134.225762 \n",
       "L 414.236115 169.76006 \n",
       "L 414.681839 148.182692 \n",
       "L 415.127564 166.026827 \n",
       "L 415.573288 163.573196 \n",
       "L 416.019013 186.33552 \n",
       "L 416.464737 193.49683 \n",
       "L 416.910462 222.288871 \n",
       "L 417.356186 197.51713 \n",
       "L 417.80191 222.202507 \n",
       "L 418.247635 226.980414 \n",
       "L 418.693359 199.452278 \n",
       "L 419.139084 189.764271 \n",
       "L 419.584808 173.548274 \n",
       "L 420.030532 164.840926 \n",
       "L 420.476257 159.753608 \n",
       "L 420.921981 148.064601 \n",
       "L 421.367706 132.129546 \n",
       "L 421.81343 126.934318 \n",
       "L 422.259155 118.570112 \n",
       "L 422.704879 135.895378 \n",
       "L 423.150603 116.83014 \n",
       "L 423.596328 120.198026 \n",
       "L 424.042052 116.34378 \n",
       "L 424.487777 134.475235 \n",
       "L 424.933501 127.646364 \n",
       "L 425.379226 139.369712 \n",
       "L 425.82495 166.747074 \n",
       "L 426.270674 167.1109 \n",
       "L 426.716399 172.245028 \n",
       "L 427.607848 212.684237 \n",
       "L 428.053572 196.659148 \n",
       "L 428.499297 192.551374 \n",
       "L 428.945021 191.822674 \n",
       "L 429.390745 176.646289 \n",
       "L 429.83647 175.368028 \n",
       "L 430.282194 153.289502 \n",
       "L 430.727919 160.87407 \n",
       "L 431.173643 128.502245 \n",
       "L 431.619367 133.317235 \n",
       "L 432.065092 114.612808 \n",
       "L 432.510816 125.741406 \n",
       "L 432.956541 108.028534 \n",
       "L 433.402265 85.298084 \n",
       "L 433.84799 93.033277 \n",
       "L 434.293714 94.302937 \n",
       "L 434.739438 108.837299 \n",
       "L 435.185163 97.27589 \n",
       "L 435.630887 121.634963 \n",
       "L 436.076612 109.538667 \n",
       "L 437.413785 160.623849 \n",
       "L 437.859509 166.116081 \n",
       "L 438.305234 163.983609 \n",
       "L 438.750958 168.395517 \n",
       "L 439.196683 185.391464 \n",
       "L 439.642407 165.200923 \n",
       "L 440.088131 172.306039 \n",
       "L 440.533856 138.212503 \n",
       "L 440.97958 161.241037 \n",
       "L 441.425305 124.397694 \n",
       "L 441.871029 131.094436 \n",
       "L 442.316754 104.793586 \n",
       "L 442.762478 86.300316 \n",
       "L 443.208202 82.901932 \n",
       "L 443.653927 90.079389 \n",
       "L 444.099651 88.515869 \n",
       "L 444.545376 59.718203 \n",
       "L 444.9911 81.343125 \n",
       "L 445.436825 71.297096 \n",
       "L 445.882549 74.373205 \n",
       "L 446.328273 108.763543 \n",
       "L 446.773998 86.732138 \n",
       "L 447.219722 116.651245 \n",
       "L 447.665447 128.397799 \n",
       "L 448.111171 145.718895 \n",
       "L 448.556896 143.591685 \n",
       "L 449.00262 147.947836 \n",
       "L 449.448344 146.807136 \n",
       "L 449.894069 147.979039 \n",
       "L 450.339793 146.129923 \n",
       "L 450.785518 151.486731 \n",
       "L 451.231242 143.948114 \n",
       "L 452.122691 121.144116 \n",
       "L 452.568415 99.975291 \n",
       "L 453.01414 91.659205 \n",
       "L 453.459864 90.823415 \n",
       "L 453.905589 88.681888 \n",
       "L 454.351313 90.851152 \n",
       "L 454.797037 71.750375 \n",
       "L 455.242762 68.640922 \n",
       "L 455.688486 87.612739 \n",
       "L 456.134211 79.122078 \n",
       "L 456.579935 81.289107 \n",
       "L 457.02566 91.395664 \n",
       "L 457.471384 117.212496 \n",
       "L 457.917108 122.585425 \n",
       "L 458.362833 141.601747 \n",
       "L 458.808557 132.133548 \n",
       "L 459.254282 146.862145 \n",
       "L 459.700006 133.546351 \n",
       "L 460.14573 166.94415 \n",
       "L 460.591455 149.887387 \n",
       "L 461.037179 162.048247 \n",
       "L 461.482904 157.569372 \n",
       "L 461.928628 142.343041 \n",
       "L 462.374353 160.367464 \n",
       "L 462.820077 143.705903 \n",
       "L 463.265801 108.683411 \n",
       "L 463.711526 102.631206 \n",
       "L 464.15725 85.093738 \n",
       "L 465.048699 91.853148 \n",
       "L 465.494424 76.634677 \n",
       "L 465.940148 87.828037 \n",
       "L 466.385872 87.240364 \n",
       "L 466.831597 93.340695 \n",
       "L 467.277321 108.207415 \n",
       "L 467.723046 91.893401 \n",
       "L 468.16877 116.148568 \n",
       "L 468.614495 133.909495 \n",
       "L 469.060219 144.043189 \n",
       "L 469.505943 164.242366 \n",
       "L 469.951668 172.5005 \n",
       "L 470.843117 179.275281 \n",
       "L 471.288841 203.740173 \n",
       "L 471.734565 171.822637 \n",
       "L 472.18029 198.153552 \n",
       "L 472.626014 182.129602 \n",
       "L 473.071739 177.52113 \n",
       "L 473.517463 154.231014 \n",
       "L 473.963188 160.334081 \n",
       "L 474.408912 125.183112 \n",
       "L 474.854636 118.118451 \n",
       "L 475.300361 107.841553 \n",
       "L 475.746085 103.036448 \n",
       "L 476.19181 109.779744 \n",
       "L 476.637534 104.264232 \n",
       "L 477.083259 117.663991 \n",
       "L 477.528983 118.462734 \n",
       "L 477.974707 118.780245 \n",
       "L 478.420432 144.114524 \n",
       "L 478.866156 147.067628 \n",
       "L 479.311881 161.149199 \n",
       "L 479.757605 160.901475 \n",
       "L 480.20333 175.396548 \n",
       "L 480.649054 193.737939 \n",
       "L 481.094778 190.171068 \n",
       "L 481.540503 184.773412 \n",
       "L 482.431952 201.735075 \n",
       "L 482.877676 197.222223 \n",
       "L 483.3234 200.186932 \n",
       "L 483.769125 187.398336 \n",
       "L 484.214849 169.623037 \n",
       "L 484.660574 157.548886 \n",
       "L 485.106298 162.491207 \n",
       "L 485.997747 141.579272 \n",
       "L 487.33492 120.334653 \n",
       "L 487.780645 131.356553 \n",
       "L 488.226369 131.837919 \n",
       "L 488.672094 150.578074 \n",
       "L 489.117818 144.453015 \n",
       "L 489.563542 151.068858 \n",
       "L 490.454991 190.05905 \n",
       "L 490.900716 165.229396 \n",
       "L 491.34644 202.834729 \n",
       "L 491.792164 198.334369 \n",
       "L 492.237889 225.51282 \n",
       "L 493.129338 203.683746 \n",
       "L 493.575062 200.568045 \n",
       "L 494.466511 181.862555 \n",
       "L 494.912235 177.71041 \n",
       "L 495.35796 167.034824 \n",
       "L 495.803684 148.665849 \n",
       "L 496.249409 141.634775 \n",
       "L 496.695133 131.509671 \n",
       "L 497.140858 115.049853 \n",
       "L 497.586582 111.818989 \n",
       "L 498.032306 115.995755 \n",
       "L 498.478031 103.379359 \n",
       "L 498.923755 117.558183 \n",
       "L 499.36948 125.657718 \n",
       "L 499.815204 124.716219 \n",
       "L 500.260929 139.89668 \n",
       "L 500.706653 166.911621 \n",
       "L 501.152377 159.303415 \n",
       "L 501.598102 187.472632 \n",
       "L 502.043826 184.150835 \n",
       "L 502.489551 184.690226 \n",
       "L 502.935275 184.721112 \n",
       "L 503.380999 198.876705 \n",
       "L 503.826724 191.325141 \n",
       "L 505.163897 146.207795 \n",
       "L 505.609622 144.331473 \n",
       "L 506.055346 124.43333 \n",
       "L 506.50107 131.534633 \n",
       "L 506.946795 117.075019 \n",
       "L 507.392519 97.785662 \n",
       "L 507.838244 89.907039 \n",
       "L 508.283968 105.441492 \n",
       "L 508.729693 79.123675 \n",
       "L 509.175417 97.938858 \n",
       "L 509.621141 94.999762 \n",
       "L 510.066866 110.532888 \n",
       "L 510.51259 111.806431 \n",
       "L 510.958315 109.046904 \n",
       "L 511.404039 140.583425 \n",
       "L 512.295488 149.183058 \n",
       "L 512.741212 152.068261 \n",
       "L 513.186937 148.011122 \n",
       "L 513.632661 165.357043 \n",
       "L 514.078386 157.454205 \n",
       "L 514.52411 177.974633 \n",
       "L 514.969834 163.287182 \n",
       "L 515.415559 171.681544 \n",
       "L 515.861283 129.971414 \n",
       "L 516.307008 133.746341 \n",
       "L 516.752732 110.859092 \n",
       "L 517.198457 113.449792 \n",
       "L 518.53563 81.777818 \n",
       "L 518.981354 73.34087 \n",
       "L 519.427079 84.073496 \n",
       "L 519.872803 69.268672 \n",
       "L 520.318528 69.164956 \n",
       "L 520.764252 97.156116 \n",
       "L 521.655701 110.547878 \n",
       "L 522.101425 119.641817 \n",
       "L 522.54715 107.180968 \n",
       "L 522.992874 126.284158 \n",
       "L 523.438598 152.930986 \n",
       "L 523.884323 124.054774 \n",
       "L 524.775772 164.578781 \n",
       "L 525.221496 166.359701 \n",
       "L 525.667221 143.054751 \n",
       "L 526.112945 153.988163 \n",
       "L 526.558669 128.295194 \n",
       "L 527.004394 111.084838 \n",
       "L 527.450118 114.900093 \n",
       "L 528.341567 92.884984 \n",
       "L 528.787292 64.858187 \n",
       "L 529.233016 63.997232 \n",
       "L 529.67874 61.420445 \n",
       "L 530.124465 57.273523 \n",
       "L 531.015914 77.640343 \n",
       "L 531.461638 76.71781 \n",
       "L 531.907362 81.138387 \n",
       "L 532.353087 101.900122 \n",
       "L 532.798811 114.513523 \n",
       "L 533.244536 132.936684 \n",
       "L 533.69026 123.197707 \n",
       "L 534.581709 150.722272 \n",
       "L 535.027433 155.615401 \n",
       "L 535.473158 155.833533 \n",
       "L 535.918882 157.297628 \n",
       "L 536.364607 145.235018 \n",
       "L 536.810331 145.678879 \n",
       "L 537.256056 131.922889 \n",
       "L 537.70178 128.032545 \n",
       "L 538.147504 122.952356 \n",
       "L 538.593229 96.968244 \n",
       "L 539.484678 75.400636 \n",
       "L 539.930402 86.922912 \n",
       "L 540.376127 85.438007 \n",
       "L 540.821851 96.02852 \n",
       "L 541.267575 81.648742 \n",
       "L 541.7133 95.137173 \n",
       "L 542.159024 85.305601 \n",
       "L 542.604749 116.685236 \n",
       "L 543.050473 109.597954 \n",
       "L 543.496197 141.643348 \n",
       "L 543.941922 144.129871 \n",
       "L 544.387646 143.362277 \n",
       "L 544.833371 168.900973 \n",
       "L 545.279095 169.056777 \n",
       "L 545.72482 171.443886 \n",
       "L 546.170544 191.930884 \n",
       "L 546.616268 158.966411 \n",
       "L 547.061993 187.395527 \n",
       "L 547.953442 158.813712 \n",
       "L 548.399166 147.030189 \n",
       "L 549.290615 118.87475 \n",
       "L 549.736339 131.724644 \n",
       "L 550.182064 113.128471 \n",
       "L 550.627788 124.1683 \n",
       "L 551.073513 99.870459 \n",
       "L 551.519237 107.909286 \n",
       "L 551.964961 101.440226 \n",
       "L 552.410686 125.307851 \n",
       "L 552.85641 128.187848 \n",
       "L 553.302135 123.870656 \n",
       "L 553.747859 133.449793 \n",
       "L 554.193584 155.045171 \n",
       "L 555.085032 180.627138 \n",
       "L 555.976481 198.190346 \n",
       "L 556.422206 174.702553 \n",
       "L 557.313655 212.347677 \n",
       "L 557.759379 197.728367 \n",
       "L 558.205103 196.155993 \n",
       "L 558.650828 176.661498 \n",
       "L 559.096552 148.596502 \n",
       "L 559.542277 145.355236 \n",
       "L 559.988001 143.970629 \n",
       "L 560.433726 131.3442 \n",
       "L 560.87945 127.225204 \n",
       "L 561.325174 128.468913 \n",
       "L 561.770899 120.771696 \n",
       "L 562.216623 104.449526 \n",
       "L 562.662348 130.300729 \n",
       "L 563.108072 109.642415 \n",
       "L 563.553796 107.481026 \n",
       "L 563.999521 137.067416 \n",
       "L 564.445245 138.366048 \n",
       "L 565.782419 199.951219 \n",
       "L 566.228143 197.154443 \n",
       "L 566.673867 183.408548 \n",
       "L 567.119592 200.427032 \n",
       "L 567.565316 204.922902 \n",
       "L 568.011041 185.934688 \n",
       "L 568.90249 204.717114 \n",
       "L 569.348214 182.141523 \n",
       "L 569.793938 152.549736 \n",
       "L 570.239663 143.707149 \n",
       "L 570.685387 144.833571 \n",
       "L 571.131112 123.33143 \n",
       "L 571.576836 122.033294 \n",
       "L 572.022561 91.546009 \n",
       "L 572.468285 101.945207 \n",
       "L 572.914009 95.882291 \n",
       "L 573.359734 103.243415 \n",
       "L 573.805458 101.710713 \n",
       "L 574.251183 111.796409 \n",
       "L 575.588356 150.117702 \n",
       "L 576.03408 158.757874 \n",
       "L 576.479805 160.500749 \n",
       "L 576.925529 169.637211 \n",
       "L 577.371254 168.935814 \n",
       "L 577.816978 186.187328 \n",
       "L 578.262702 183.244374 \n",
       "L 578.708427 200.906548 \n",
       "L 579.154151 182.852731 \n",
       "L 579.599876 174.200136 \n",
       "L 580.491325 145.051569 \n",
       "L 580.937049 137.985939 \n",
       "L 581.382773 117.710973 \n",
       "L 581.828498 113.738275 \n",
       "L 582.274222 99.697667 \n",
       "L 582.719947 97.316078 \n",
       "L 583.165671 84.791881 \n",
       "L 583.611395 89.559623 \n",
       "L 584.05712 87.070864 \n",
       "L 584.948569 107.060263 \n",
       "L 585.394293 92.012087 \n",
       "L 585.840018 120.148799 \n",
       "L 586.285742 114.500175 \n",
       "L 586.731466 137.535554 \n",
       "L 587.622915 151.658776 \n",
       "L 588.06864 166.049453 \n",
       "L 588.514364 176.723405 \n",
       "L 588.960089 154.971739 \n",
       "L 589.405813 157.358894 \n",
       "L 589.851537 168.334572 \n",
       "L 590.297262 152.062141 \n",
       "L 590.742986 141.09021 \n",
       "L 591.188711 114.091336 \n",
       "L 592.08016 99.394654 \n",
       "L 592.525884 78.051846 \n",
       "L 592.971608 74.506004 \n",
       "L 593.417333 77.16412 \n",
       "L 593.863057 78.208212 \n",
       "L 594.308782 55.284701 \n",
       "L 594.754506 80.394818 \n",
       "L 595.20023 58.74224 \n",
       "L 595.645955 92.110256 \n",
       "L 596.091679 90.951763 \n",
       "L 596.537404 84.610096 \n",
       "L 596.983128 98.744619 \n",
       "L 597.428853 107.330377 \n",
       "L 597.874577 141.296959 \n",
       "L 598.320301 139.516296 \n",
       "L 598.766026 143.940299 \n",
       "L 599.21175 151.065836 \n",
       "L 599.657475 153.69584 \n",
       "L 600.103199 143.88638 \n",
       "L 600.548924 141.616963 \n",
       "L 600.994648 142.854581 \n",
       "L 602.777546 93.442441 \n",
       "L 603.22327 94.239559 \n",
       "L 603.668994 70.887595 \n",
       "L 604.114719 60.525918 \n",
       "L 604.560443 46.993695 \n",
       "L 605.006168 64.509267 \n",
       "L 605.451892 53.922127 \n",
       "L 605.897617 71.948194 \n",
       "L 606.343341 63.402098 \n",
       "L 606.789065 85.539349 \n",
       "L 607.23479 94.698002 \n",
       "L 607.680514 109.47821 \n",
       "L 608.126239 118.169651 \n",
       "L 608.571963 129.064619 \n",
       "L 609.017688 152.617859 \n",
       "L 609.463412 141.802327 \n",
       "L 609.909136 161.566998 \n",
       "L 610.354861 155.996022 \n",
       "L 610.800585 144.851722 \n",
       "L 611.24631 151.173022 \n",
       "L 611.692034 148.495781 \n",
       "L 612.137759 119.016131 \n",
       "L 612.583483 111.428856 \n",
       "L 613.029207 100.488338 \n",
       "L 613.474932 93.077002 \n",
       "L 614.366381 82.477772 \n",
       "L 614.812105 91.231262 \n",
       "L 615.257829 83.345248 \n",
       "L 615.703554 82.294681 \n",
       "L 616.149278 67.759934 \n",
       "L 616.595003 61.522753 \n",
       "L 617.486452 103.356756 \n",
       "L 617.932176 101.091856 \n",
       "L 618.3779 126.465873 \n",
       "L 618.823625 140.410764 \n",
       "L 619.269349 150.554621 \n",
       "L 619.715074 150.015711 \n",
       "L 620.160798 156.638607 \n",
       "L 621.052247 184.456165 \n",
       "L 621.497971 166.735449 \n",
       "L 621.943696 177.729193 \n",
       "L 622.38942 172.565901 \n",
       "L 622.835145 161.09306 \n",
       "L 623.280869 155.724296 \n",
       "L 623.726593 141.95557 \n",
       "L 624.172318 109.398011 \n",
       "L 624.618042 124.027834 \n",
       "L 625.063767 107.776685 \n",
       "L 625.509491 114.628464 \n",
       "L 625.955216 105.149241 \n",
       "L 626.40094 100.712512 \n",
       "L 626.846664 99.083504 \n",
       "L 627.292389 104.633846 \n",
       "L 627.738113 114.307232 \n",
       "L 628.183838 130.138169 \n",
       "L 628.629562 122.106943 \n",
       "L 629.521011 164.726299 \n",
       "L 629.966735 173.276897 \n",
       "L 630.41246 184.878757 \n",
       "L 630.858184 188.490623 \n",
       "L 631.303909 198.781671 \n",
       "L 631.749633 188.282721 \n",
       "L 632.195358 185.177613 \n",
       "L 632.641082 190.518361 \n",
       "L 633.086806 179.274794 \n",
       "L 633.532531 178.710306 \n",
       "L 633.978255 151.823447 \n",
       "L 634.42398 155.462425 \n",
       "L 634.869704 136.252043 \n",
       "L 635.315428 127.093728 \n",
       "L 635.761153 129.932103 \n",
       "L 636.206877 131.169573 \n",
       "L 636.652602 117.74833 \n",
       "L 637.098326 119.274296 \n",
       "L 637.544051 117.559313 \n",
       "L 637.989775 117.290895 \n",
       "L 638.435499 124.642992 \n",
       "L 638.881224 138.109321 \n",
       "L 639.326948 128.547356 \n",
       "L 639.772673 166.465969 \n",
       "L 640.218397 158.407369 \n",
       "L 640.664122 170.761577 \n",
       "L 641.109846 193.587024 \n",
       "L 641.55557 174.929624 \n",
       "L 642.447019 194.704796 \n",
       "L 642.892744 191.277399 \n",
       "L 643.338468 189.804688 \n",
       "L 643.784193 177.088479 \n",
       "L 644.229917 177.369371 \n",
       "L 644.675641 151.196086 \n",
       "L 645.121366 140.427832 \n",
       "L 645.56709 140.795553 \n",
       "L 646.012815 139.55545 \n",
       "L 646.458539 106.334666 \n",
       "L 646.904263 107.377788 \n",
       "L 647.349988 112.174186 \n",
       "L 647.795712 89.26131 \n",
       "L 648.241437 101.440243 \n",
       "L 648.687161 120.915171 \n",
       "L 649.132886 105.36391 \n",
       "L 649.57861 132.876945 \n",
       "L 650.024334 149.471816 \n",
       "L 650.470059 149.872227 \n",
       "L 650.915783 155.770111 \n",
       "L 651.361508 180.420432 \n",
       "L 651.807232 150.693899 \n",
       "L 652.252957 175.12804 \n",
       "L 653.144405 183.074183 \n",
       "L 653.59013 175.846374 \n",
       "L 654.035854 180.253928 \n",
       "L 654.481579 167.086283 \n",
       "L 654.927303 143.75852 \n",
       "L 655.373027 144.880179 \n",
       "L 655.818752 127.762238 \n",
       "L 656.264476 119.189387 \n",
       "L 656.710201 88.490456 \n",
       "L 657.155925 84.56148 \n",
       "L 657.60165 83.688699 \n",
       "L 658.047374 75.374557 \n",
       "L 658.938823 77.970476 \n",
       "L 659.384547 59.707855 \n",
       "L 659.830272 110.847888 \n",
       "L 660.275996 100.574192 \n",
       "L 660.721721 108.548487 \n",
       "L 661.167445 110.886912 \n",
       "L 661.613169 143.706006 \n",
       "L 662.058894 145.583666 \n",
       "L 662.504618 144.156447 \n",
       "L 662.950343 171.120307 \n",
       "L 663.841792 137.600045 \n",
       "L 664.287516 163.26739 \n",
       "L 664.73324 167.665453 \n",
       "L 665.178965 134.89397 \n",
       "L 665.624689 133.378204 \n",
       "L 666.070414 100.206847 \n",
       "L 666.516138 110.519053 \n",
       "L 666.961862 100.453484 \n",
       "L 667.407587 72.513518 \n",
       "L 667.853311 61.785539 \n",
       "L 668.299036 56.005888 \n",
       "L 668.74476 40.376477 \n",
       "L 669.190485 53.880531 \n",
       "L 669.636209 60.006948 \n",
       "L 670.081933 69.477147 \n",
       "L 670.527658 72.57221 \n",
       "L 671.419107 95.725457 \n",
       "L 671.864831 111.651667 \n",
       "L 672.310556 134.437171 \n",
       "L 672.75628 119.339827 \n",
       "L 673.202004 128.310754 \n",
       "L 673.647729 154.019129 \n",
       "L 674.093453 134.669865 \n",
       "L 674.539178 169.075249 \n",
       "L 674.984902 146.323769 \n",
       "L 675.430626 135.632447 \n",
       "L 675.876351 132.848861 \n",
       "L 676.7678 98.221112 \n",
       "L 677.213524 86.793412 \n",
       "L 677.659249 85.243208 \n",
       "L 678.104973 61.092605 \n",
       "L 678.550697 70.254874 \n",
       "L 678.996422 65.22782 \n",
       "L 679.442146 62.06196 \n",
       "L 679.887871 61.848532 \n",
       "L 680.333595 61.146143 \n",
       "L 681.225044 84.8689 \n",
       "L 681.670768 65.656887 \n",
       "L 682.116493 85.650408 \n",
       "L 682.562217 94.083944 \n",
       "L 683.007942 111.81561 \n",
       "L 683.453666 135.780613 \n",
       "L 683.899391 123.917685 \n",
       "L 684.345115 136.426157 \n",
       "L 684.790839 159.043727 \n",
       "L 685.236564 142.98851 \n",
       "L 685.682288 167.822515 \n",
       "L 686.128013 135.537222 \n",
       "L 686.573737 145.985384 \n",
       "L 687.019461 120.233321 \n",
       "L 687.465186 127.204421 \n",
       "L 687.91091 98.910283 \n",
       "L 688.356635 94.730791 \n",
       "L 688.802359 82.723597 \n",
       "L 689.248084 77.456812 \n",
       "L 689.693808 69.19454 \n",
       "L 690.139532 64.592025 \n",
       "L 690.585257 63.185104 \n",
       "L 691.030981 93.726164 \n",
       "L 691.476706 82.236073 \n",
       "L 692.813879 110.396688 \n",
       "L 693.259603 103.239538 \n",
       "L 694.151052 158.558865 \n",
       "L 694.596777 159.811002 \n",
       "L 695.042501 154.637074 \n",
       "L 695.488225 178.667544 \n",
       "L 695.93395 168.808699 \n",
       "L 696.379674 175.445842 \n",
       "L 696.825399 163.081629 \n",
       "L 697.271123 161.900466 \n",
       "L 698.162572 144.12197 \n",
       "L 698.608296 138.661877 \n",
       "L 699.054021 109.162853 \n",
       "L 699.499745 107.327468 \n",
       "L 699.94547 101.520997 \n",
       "L 700.391194 82.536133 \n",
       "L 700.836919 90.786576 \n",
       "L 701.282643 93.223235 \n",
       "L 701.728367 93.584914 \n",
       "L 702.619816 116.426752 \n",
       "L 703.065541 102.439543 \n",
       "L 703.511265 138.173952 \n",
       "L 703.95699 131.783301 \n",
       "L 704.402714 151.033888 \n",
       "L 704.848438 177.09633 \n",
       "L 705.294163 178.496432 \n",
       "L 705.739887 190.713636 \n",
       "L 706.185612 189.167221 \n",
       "L 706.631336 182.739426 \n",
       "L 707.07706 197.356613 \n",
       "L 707.968509 188.937624 \n",
       "L 708.414234 155.752563 \n",
       "L 708.859958 157.491081 \n",
       "L 709.305683 144.343448 \n",
       "L 709.751407 134.795502 \n",
       "L 710.197131 136.345457 \n",
       "L 710.642856 102.016882 \n",
       "L 711.08858 120.659564 \n",
       "L 711.534305 126.411758 \n",
       "L 711.980029 98.752582 \n",
       "L 712.425754 115.537835 \n",
       "L 712.871478 102.930663 \n",
       "L 713.317202 112.988159 \n",
       "L 713.762927 127.669115 \n",
       "L 714.208651 133.303958 \n",
       "L 714.654376 144.139126 \n",
       "L 715.1001 167.019544 \n",
       "L 715.991549 193.528649 \n",
       "L 716.437273 192.162724 \n",
       "L 716.882998 199.116535 \n",
       "L 717.328722 203.190166 \n",
       "L 717.774447 197.824054 \n",
       "L 718.220171 162.924966 \n",
       "L 719.11162 181.059813 \n",
       "L 719.557344 142.151944 \n",
       "L 720.003069 161.634545 \n",
       "L 720.448793 134.256908 \n",
       "L 720.894518 131.827734 \n",
       "L 721.340242 122.049596 \n",
       "L 722.231691 95.618306 \n",
       "L 722.677415 87.668502 \n",
       "L 723.12314 115.864878 \n",
       "L 723.568864 107.146122 \n",
       "L 724.014589 117.411703 \n",
       "L 724.460313 113.349686 \n",
       "L 724.906037 120.799051 \n",
       "L 725.351762 150.552149 \n",
       "L 725.797486 157.134622 \n",
       "L 726.243211 166.547171 \n",
       "L 726.688935 160.796664 \n",
       "L 727.134659 177.635347 \n",
       "L 727.580384 184.158691 \n",
       "L 728.026108 183.293305 \n",
       "L 728.471833 181.114104 \n",
       "L 728.917557 167.709262 \n",
       "L 729.363282 144.164686 \n",
       "L 729.809006 165.866471 \n",
       "L 730.700455 122.063682 \n",
       "L 731.146179 133.445592 \n",
       "L 731.591904 97.82878 \n",
       "L 732.037628 87.751391 \n",
       "L 732.483353 83.203221 \n",
       "L 732.929077 90.588904 \n",
       "L 733.374801 59.670524 \n",
       "L 733.820526 74.936824 \n",
       "L 734.26625 82.745225 \n",
       "L 734.711975 76.20558 \n",
       "L 735.157699 109.152723 \n",
       "L 735.603424 112.0662 \n",
       "L 736.049148 132.77877 \n",
       "L 736.494872 127.827816 \n",
       "L 736.940597 134.727443 \n",
       "L 737.386321 146.780812 \n",
       "L 737.832046 151.981232 \n",
       "L 738.27777 146.860508 \n",
       "L 738.723494 159.537999 \n",
       "L 739.169219 153.469998 \n",
       "L 739.614943 156.956991 \n",
       "L 740.060668 131.7248 \n",
       "L 740.506392 129.614211 \n",
       "L 740.952117 100.267087 \n",
       "L 741.397841 108.12838 \n",
       "L 741.843565 85.735613 \n",
       "L 742.28929 75.865683 \n",
       "L 742.735014 81.019554 \n",
       "L 743.180739 55.109691 \n",
       "L 743.626463 52.64523 \n",
       "L 744.072188 46.2448 \n",
       "L 744.517912 48.184416 \n",
       "L 744.963636 63.14515 \n",
       "L 745.409361 53.007386 \n",
       "L 745.409361 53.007386 \n",
       "\" clip-path=\"url(#p6bff54dffd)\" style=\"fill: none; stroke: #0969da; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_6\">\n",
       "    <path d=\"M 43.861406 259.8575 \n",
       "L 43.861406 29.925 \n",
       "\" style=\"fill: none; stroke: #d1d2cb; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_7\">\n",
       "    <path d=\"M 43.861406 259.8575 \n",
       "L 778.816406 259.8575 \n",
       "\" style=\"fill: none; stroke: #d1d2cb; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"text_16\">\n",
       "    <text style=\"font-weight: 600; font-size: 11px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: start; fill: #171817\" x=\"43.861406\" y=\"17.925\" transform=\"rotate(-0 43.861406 17.925)\">Synthetic workload and three predeclared future blocks</text>\n",
       "   </g>\n",
       "  </g>\n",
       " </g>\n",
       " <defs>\n",
       "  <clipPath id=\"p6bff54dffd\">\n",
       "   <rect x=\"43.861406\" y=\"29.925\" width=\"734.955\" height=\"229.9325\"/>\n",
       "  </clipPath>\n",
       " </defs>\n",
       "</svg>\n"
      ],
      "text/plain": [
       "<Figure size 1100x400 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    },
    {
     "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>cases_per_hour</th>\n",
       "      <th>activity_index</th>\n",
       "      <th>upstream_volume</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>2026-01-01 00:00:00</td>\n",
       "      <td>75.830284</td>\n",
       "      <td>50.650221</td>\n",
       "      <td>185.971740</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2026-01-01 01:00:00</td>\n",
       "      <td>83.340179</td>\n",
       "      <td>53.952548</td>\n",
       "      <td>186.571939</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>2026-01-01 02:00:00</td>\n",
       "      <td>89.890890</td>\n",
       "      <td>54.182505</td>\n",
       "      <td>203.248645</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>2026-01-01 03:00:00</td>\n",
       "      <td>88.702698</td>\n",
       "      <td>57.334880</td>\n",
       "      <td>213.729518</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>2026-01-01 04:00:00</td>\n",
       "      <td>100.390547</td>\n",
       "      <td>60.360508</td>\n",
       "      <td>213.876172</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "            timestamp  cases_per_hour  activity_index  upstream_volume\n",
       "0 2026-01-01 00:00:00       75.830284       50.650221       185.971740\n",
       "1 2026-01-01 01:00:00       83.340179       53.952548       186.571939\n",
       "2 2026-01-01 02:00:00       89.890890       54.182505       203.248645\n",
       "3 2026-01-01 03:00:00       88.702698       57.334880       213.729518\n",
       "4 2026-01-01 04:00:00      100.390547       60.360508       213.876172"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ]
  },
  {
   "id": "cell-04",
   "metadata": {},
   "cell_type": "markdown",
   "source": [
    "## Draw the information boundary\n",
    "\n",
    "At each origin, the model receives only the preceding 512 observations. DARR's retrieval library ends **before that input window starts**, so its historical continuations cannot contain held-out future values. The supplied checkpoint and standardizer are frozen; we do not fit them on this fixture. Past auxiliary channels are available, but future auxiliary values are never provided.\n",
    "\n",
    "The model's native head is 72 points. We keep sequence length 512 and horizon 72, use three forecast origins, and fix DARR at 20% direct forecast / 80% historical retrieval before looking at errors.[2] This is a small demonstration, not hyperparameter optimization. Sequential forecast blocks emulate later decision times: once a block becomes history it is legitimately observable at the next origin.\n"
   ]
  },
  {
   "id": "cell-05",
   "metadata": {},
   "cell_type": "code",
   "execution_count": 3,
   "source": [
    "config = ForecastingConfig(\n",
    "    target_column=TARGET, seq_len=512, forecast_horizon=HORIZON, model_horizon=72,\n",
    "    ckpt=str(weights/'run8_best_model_cr.pt'),\n",
    "    standardizer_pkl=str(weights/'standardizer.pkl'),\n",
    "    model_name=str(RUNTIME/'backbone'), local_files_only=True,\n",
    "    device=DEVICE, num_workers=0, batch_size=4, use_cross_channel=True,\n",
    "    alpha=.2, k=4, context_stride=72, seed=42,\n",
    ")\n",
    "rows, timings = [], []\n",
    "for origin in origins:\n",
    "    history = df.iloc[origin-512:origin].copy()\n",
    "    context = df.iloc[:origin-512].copy()\n",
    "    future = df.iloc[origin:origin+HORIZON].copy()\n",
    "    assert context.timestamp.max() < history.timestamp.min() < future.timestamp.min()\n",
    "    assert history.timestamp.max() < future.timestamp.min()\n",
    "    started = time.perf_counter()\n",
    "    direct = perform_forecasting(df=history, config=config)\n",
    "    darr = perform_forecasting(df=history, config=config, context_df=context)\n",
    "    timings.append(time.perf_counter()-started)\n",
    "    assert direct.timestamp.tolist() == future.timestamp.tolist()\n",
    "    assert darr.timestamp.tolist() == future.timestamp.tolist()\n",
    "    predictions = {\n",
    "        'Persistence': np.repeat(history[TARGET].iloc[-1], HORIZON),\n",
    "        'Daily seasonal': np.tile(history[TARGET].iloc[-24:].to_numpy(), 3),\n",
    "        'NV-Tesseract direct': direct[f'{TARGET}_forecast'].to_numpy(),\n",
    "        'NV-Tesseract DARR': darr[f'{TARGET}_forecast'].to_numpy(),\n",
    "    }\n",
    "    for method, prediction in predictions.items():\n",
    "        assert len(prediction) == HORIZON and np.isfinite(prediction).all()\n",
    "        rows.extend({'origin': origin, 'timestamp': timestamp, 'method': method,\n",
    "                     'actual': float(actual), 'prediction': float(predicted)}\n",
    "                    for timestamp,actual,predicted in zip(future.timestamp, future[TARGET], prediction))\n",
    "results = pd.DataFrame(rows)\n",
    "print(f'Executed {len(origins)} origins, two model modes per origin, on {DEVICE}.')\n",
    "print('Seconds per origin (includes cold loading at the first origin):', np.round(timings,2).tolist())\n"
   ],
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Loading weights from local directory\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "UserWarning: Only reconstruction head is pre-trained; others need fine-tuning.\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Executed 3 origins, two model modes per origin, on mps.\n",
      "Seconds per origin (includes cold loading at the first origin): [6.87, 0.25, 0.27]\n"
     ]
    }
   ]
  },
  {
   "id": "cell-06",
   "metadata": {},
   "cell_type": "markdown",
   "source": [
    "## Read the forecast, not just a headline score\n",
    "\n",
    "MAE averages absolute errors; WAPE divides total absolute error by total actual volume. Report all origins, not the prettiest one. No claim about model superiority is required for this notebook to succeed: an honest baseline win is useful evidence.\n"
   ]
  },
  {
   "id": "cell-07",
   "metadata": {},
   "cell_type": "code",
   "execution_count": 4,
   "source": [
    "results['absolute_error'] = (results.prediction-results.actual).abs()\n",
    "metrics = results.groupby('method').apply(lambda group: pd.Series({\n",
    "    'MAE': group.absolute_error.mean(),\n",
    "    'WAPE_pct': 100*group.absolute_error.sum()/group.actual.abs().sum(),\n",
    "}), include_groups=False).sort_values('MAE')\n",
    "display(metrics.round(3))\n",
    "display(results.groupby(['origin','method']).absolute_error.mean().unstack().round(2))\n",
    "first = results[results.origin == origins[0]]\n",
    "fig, ax = plt.subplots(figsize=(11,5))\n",
    "actual = first[first.method=='Persistence']\n",
    "ax.plot(actual.timestamp, actual.actual, color='#171817', linewidth=2, label='Actual future (evaluation only)')\n",
    "for method in ['Daily seasonal', 'NV-Tesseract direct', 'NV-Tesseract DARR']:\n",
    "    subset = first[first.method==method]\n",
    "    ax.plot(subset.timestamp, subset.prediction, label=method)\n",
    "ax.set(title='First forecast block — every method faces the same unseen future', ylabel=TARGET.replace('_',' '))\n",
    "ax.legend(fontsize=9); 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>MAE</th>\n",
       "      <th>WAPE_pct</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>method</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>NV-Tesseract direct</th>\n",
       "      <td>7.711</td>\n",
       "      <td>8.423</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NV-Tesseract DARR</th>\n",
       "      <td>9.530</td>\n",
       "      <td>10.410</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Daily seasonal</th>\n",
       "      <td>12.694</td>\n",
       "      <td>13.865</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Persistence</th>\n",
       "      <td>19.214</td>\n",
       "      <td>20.987</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                        MAE  WAPE_pct\n",
       "method                               \n",
       "NV-Tesseract direct   7.711     8.423\n",
       "NV-Tesseract DARR     9.530    10.410\n",
       "Daily seasonal       12.694    13.865\n",
       "Persistence          19.214    20.987"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "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>method</th>\n",
       "      <th>Daily seasonal</th>\n",
       "      <th>NV-Tesseract DARR</th>\n",
       "      <th>NV-Tesseract direct</th>\n",
       "      <th>Persistence</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>origin</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>1280</th>\n",
       "      <td>15.89</td>\n",
       "      <td>12.41</td>\n",
       "      <td>9.59</td>\n",
       "      <td>14.86</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1352</th>\n",
       "      <td>12.34</td>\n",
       "      <td>8.88</td>\n",
       "      <td>6.73</td>\n",
       "      <td>28.59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1424</th>\n",
       "      <td>9.85</td>\n",
       "      <td>7.30</td>\n",
       "      <td>6.81</td>\n",
       "      <td>14.19</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "method  Daily seasonal  NV-Tesseract DARR  NV-Tesseract direct  Persistence\n",
       "origin                                                                     \n",
       "1280             15.89              12.41                 9.59        14.86\n",
       "1352             12.34               8.88                 6.73        28.59\n",
       "1424              9.85               7.30                 6.81        14.19"
      ]
     },
     "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.016406pt\" height=\"354.96pt\" viewBox=\"0 0 786.016406 354.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:22.452831</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 354.96 \n",
       "L 786.016406 354.96 \n",
       "L 786.016406 0 \n",
       "L 0 0 \n",
       "L 0 354.96 \n",
       "z\n",
       "\" style=\"fill: none\"/>\n",
       "  </g>\n",
       "  <g id=\"axes_1\">\n",
       "   <g id=\"patch_2\">\n",
       "    <path d=\"M 43.861406 331.8575 \n",
       "L 778.816406 331.8575 \n",
       "L 778.816406 29.925 \n",
       "L 43.861406 29.925 \n",
       "L 43.861406 331.8575 \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 id=\"text_1\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: middle; fill: #6f706a\" x=\"114.910193\" y=\"345.9495\" transform=\"rotate(-0 114.910193 345.9495)\">02-23 12</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_2\">\n",
       "     <g id=\"line2d_2\"/>\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: middle; fill: #6f706a\" x=\"227.835417\" y=\"345.9495\" transform=\"rotate(-0 227.835417 345.9495)\">02-24 00</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_3\">\n",
       "     <g id=\"line2d_3\"/>\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: middle; fill: #6f706a\" x=\"340.760641\" y=\"345.9495\" transform=\"rotate(-0 340.760641 345.9495)\">02-24 12</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_4\">\n",
       "     <g id=\"line2d_4\"/>\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: middle; fill: #6f706a\" x=\"453.685865\" y=\"345.9495\" transform=\"rotate(-0 453.685865 345.9495)\">02-25 00</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_5\">\n",
       "     <g id=\"line2d_5\"/>\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: middle; fill: #6f706a\" x=\"566.611089\" y=\"345.9495\" transform=\"rotate(-0 566.611089 345.9495)\">02-25 12</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_6\">\n",
       "     <g id=\"line2d_6\"/>\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: middle; fill: #6f706a\" x=\"679.536313\" y=\"345.9495\" transform=\"rotate(-0 679.536313 345.9495)\">02-26 00</text>\n",
       "     </g>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_2\">\n",
       "    <g id=\"ytick_1\">\n",
       "     <g id=\"line2d_7\">\n",
       "      <path d=\"M 43.861406 318.480994 \n",
       "L 778.816406 318.480994 \n",
       "\" clip-path=\"url(#p16f5f92e1e)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_8\"/>\n",
       "     <g id=\"text_7\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"37.861406\" y=\"322.526994\" transform=\"rotate(-0 37.861406 322.526994)\">60</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_2\">\n",
       "     <g id=\"line2d_9\">\n",
       "      <path d=\"M 43.861406 278.886496 \n",
       "L 778.816406 278.886496 \n",
       "\" clip-path=\"url(#p16f5f92e1e)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_10\"/>\n",
       "     <g id=\"text_8\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"37.861406\" y=\"282.932496\" transform=\"rotate(-0 37.861406 282.932496)\">70</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_3\">\n",
       "     <g id=\"line2d_11\">\n",
       "      <path d=\"M 43.861406 239.291998 \n",
       "L 778.816406 239.291998 \n",
       "\" clip-path=\"url(#p16f5f92e1e)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_12\"/>\n",
       "     <g id=\"text_9\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"37.861406\" y=\"243.337998\" transform=\"rotate(-0 37.861406 243.337998)\">80</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_4\">\n",
       "     <g id=\"line2d_13\">\n",
       "      <path d=\"M 43.861406 199.6975 \n",
       "L 778.816406 199.6975 \n",
       "\" clip-path=\"url(#p16f5f92e1e)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_14\"/>\n",
       "     <g id=\"text_10\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"37.861406\" y=\"203.7435\" transform=\"rotate(-0 37.861406 203.7435)\">90</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_5\">\n",
       "     <g id=\"line2d_15\">\n",
       "      <path d=\"M 43.861406 160.103001 \n",
       "L 778.816406 160.103001 \n",
       "\" clip-path=\"url(#p16f5f92e1e)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_16\"/>\n",
       "     <g id=\"text_11\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"37.861406\" y=\"164.149001\" transform=\"rotate(-0 37.861406 164.149001)\">100</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_6\">\n",
       "     <g id=\"line2d_17\">\n",
       "      <path d=\"M 43.861406 120.508503 \n",
       "L 778.816406 120.508503 \n",
       "\" clip-path=\"url(#p16f5f92e1e)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_18\"/>\n",
       "     <g id=\"text_12\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"37.861406\" y=\"124.554503\" transform=\"rotate(-0 37.861406 124.554503)\">110</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_7\">\n",
       "     <g id=\"line2d_19\">\n",
       "      <path d=\"M 43.861406 80.914005 \n",
       "L 778.816406 80.914005 \n",
       "\" clip-path=\"url(#p16f5f92e1e)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_20\"/>\n",
       "     <g id=\"text_13\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"37.861406\" y=\"84.960005\" transform=\"rotate(-0 37.861406 84.960005)\">120</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_8\">\n",
       "     <g id=\"line2d_21\">\n",
       "      <path d=\"M 43.861406 41.319506 \n",
       "L 778.816406 41.319506 \n",
       "\" clip-path=\"url(#p16f5f92e1e)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_22\"/>\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=\"37.861406\" y=\"45.365506\" transform=\"rotate(-0 37.861406 45.365506)\">130</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_15\">\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=\"180.89125\" transform=\"rotate(-90 15.768 180.89125)\">cases per hour</text>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"line2d_23\">\n",
       "    <path d=\"M 77.268452 130.59442 \n",
       "L 86.678887 152.255534 \n",
       "L 96.089322 186.893104 \n",
       "L 105.499758 159.23406 \n",
       "L 114.910193 208.167985 \n",
       "L 124.320628 237.683166 \n",
       "L 133.731064 238.395325 \n",
       "L 143.141499 248.885138 \n",
       "L 152.551934 292.72752 \n",
       "L 161.96237 239.856728 \n",
       "L 171.372805 283.314617 \n",
       "L 180.78324 290.443485 \n",
       "L 190.193676 297.447409 \n",
       "L 199.604111 284.592227 \n",
       "L 209.014546 292.431381 \n",
       "L 218.424982 269.011771 \n",
       "L 227.835417 227.521655 \n",
       "L 237.245852 229.516607 \n",
       "L 246.656288 199.071108 \n",
       "L 256.066723 183.823673 \n",
       "L 265.477158 129.223401 \n",
       "L 274.887594 122.235432 \n",
       "L 284.298029 120.683127 \n",
       "L 293.708465 105.895825 \n",
       "L 303.1189 108.428794 \n",
       "L 312.529335 110.512854 \n",
       "L 321.939771 78.031459 \n",
       "L 331.350206 168.987713 \n",
       "L 340.760641 150.7152 \n",
       "L 350.171077 164.898061 \n",
       "L 359.581512 169.057119 \n",
       "L 368.991947 227.428254 \n",
       "L 378.402383 230.767809 \n",
       "L 387.812818 228.229396 \n",
       "L 397.223253 276.186575 \n",
       "L 406.633689 242.254255 \n",
       "L 416.044124 216.568361 \n",
       "L 425.454559 262.219593 \n",
       "L 434.864995 270.041866 \n",
       "L 444.27543 211.75541 \n",
       "L 453.685865 209.059511 \n",
       "L 463.096301 150.061849 \n",
       "L 472.506736 168.402855 \n",
       "L 481.917171 150.500512 \n",
       "L 491.327607 100.807259 \n",
       "L 500.738042 81.726772 \n",
       "L 510.148477 71.447244 \n",
       "L 519.558913 43.649205 \n",
       "L 528.969348 67.667143 \n",
       "L 538.379783 78.563419 \n",
       "L 547.790219 95.406854 \n",
       "L 557.200654 100.911648 \n",
       "L 566.611089 122.200846 \n",
       "L 576.021525 142.091373 \n",
       "L 585.43196 170.417292 \n",
       "L 594.842395 210.94296 \n",
       "L 604.252831 184.091241 \n",
       "L 613.663266 200.046684 \n",
       "L 623.073701 245.770892 \n",
       "L 632.484137 211.356823 \n",
       "L 641.894572 272.549291 \n",
       "L 651.305007 232.084136 \n",
       "L 660.715443 213.068846 \n",
       "L 670.125878 208.118036 \n",
       "L 679.536313 173.545437 \n",
       "L 688.946749 146.530076 \n",
       "L 698.357184 126.205085 \n",
       "L 707.767619 123.447935 \n",
       "L 717.178055 80.494338 \n",
       "L 726.58849 96.790097 \n",
       "L 735.998925 87.849118 \n",
       "L 745.409361 82.218405 \n",
       "\" clip-path=\"url(#p16f5f92e1e)\" style=\"fill: none; stroke: #171817; stroke-width: 2; stroke-linecap: round\"/>\n",
       "   </g>\n",
       "   <g id=\"line2d_24\">\n",
       "    <path d=\"M 77.268452 183.974688 \n",
       "L 86.678887 180.924467 \n",
       "L 96.089322 180.447066 \n",
       "L 105.499758 193.523303 \n",
       "L 114.910193 217.474146 \n",
       "L 124.320628 200.467499 \n",
       "L 133.731064 267.908498 \n",
       "L 143.141499 253.575694 \n",
       "L 152.551934 275.548546 \n",
       "L 161.96237 316.145258 \n",
       "L 171.372805 282.96172 \n",
       "L 180.78324 300.738251 \n",
       "L 190.193676 318.133295 \n",
       "L 199.604111 312.037422 \n",
       "L 209.014546 309.418098 \n",
       "L 218.424982 286.801401 \n",
       "L 227.835417 287.300987 \n",
       "L 237.245852 240.749904 \n",
       "L 246.656288 221.597785 \n",
       "L 256.066723 222.251803 \n",
       "L 265.477158 220.04619 \n",
       "L 274.887594 160.960619 \n",
       "L 284.298029 162.815888 \n",
       "L 293.708465 171.34663 \n",
       "L 303.1189 183.974688 \n",
       "L 312.529335 180.924467 \n",
       "L 321.939771 180.447066 \n",
       "L 331.350206 193.523303 \n",
       "L 340.760641 217.474146 \n",
       "L 350.171077 200.467499 \n",
       "L 359.581512 267.908498 \n",
       "L 368.991947 253.575694 \n",
       "L 378.402383 275.548546 \n",
       "L 387.812818 316.145258 \n",
       "L 397.223253 282.96172 \n",
       "L 406.633689 300.738251 \n",
       "L 416.044124 318.133295 \n",
       "L 425.454559 312.037422 \n",
       "L 434.864995 309.418098 \n",
       "L 444.27543 286.801401 \n",
       "L 453.685865 287.300987 \n",
       "L 463.096301 240.749904 \n",
       "L 472.506736 221.597785 \n",
       "L 481.917171 222.251803 \n",
       "L 491.327607 220.04619 \n",
       "L 500.738042 160.960619 \n",
       "L 510.148477 162.815888 \n",
       "L 519.558913 171.34663 \n",
       "L 528.969348 183.974688 \n",
       "L 538.379783 180.924467 \n",
       "L 547.790219 180.447066 \n",
       "L 557.200654 193.523303 \n",
       "L 566.611089 217.474146 \n",
       "L 576.021525 200.467499 \n",
       "L 585.43196 267.908498 \n",
       "L 594.842395 253.575694 \n",
       "L 604.252831 275.548546 \n",
       "L 613.663266 316.145258 \n",
       "L 623.073701 282.96172 \n",
       "L 632.484137 300.738251 \n",
       "L 641.894572 318.133295 \n",
       "L 651.305007 312.037422 \n",
       "L 660.715443 309.418098 \n",
       "L 670.125878 286.801401 \n",
       "L 679.536313 287.300987 \n",
       "L 688.946749 240.749904 \n",
       "L 698.357184 221.597785 \n",
       "L 707.767619 222.251803 \n",
       "L 717.178055 220.04619 \n",
       "L 726.58849 160.960619 \n",
       "L 735.998925 162.815888 \n",
       "L 745.409361 171.34663 \n",
       "\" clip-path=\"url(#p16f5f92e1e)\" style=\"fill: none; stroke: #0969da; stroke-width: 1.8; stroke-linecap: round\"/>\n",
       "   </g>\n",
       "   <g id=\"line2d_25\">\n",
       "    <path d=\"M 77.268452 165.866364 \n",
       "L 86.678887 162.557176 \n",
       "L 96.089322 167.748728 \n",
       "L 105.499758 181.75449 \n",
       "L 114.910193 195.303656 \n",
       "L 124.320628 207.984969 \n",
       "L 133.731064 213.625385 \n",
       "L 143.141499 223.134807 \n",
       "L 152.551934 230.729935 \n",
       "L 161.96237 238.756739 \n",
       "L 171.372805 246.34507 \n",
       "L 180.78324 258.420437 \n",
       "L 190.193676 265.079232 \n",
       "L 199.604111 256.441377 \n",
       "L 209.014546 263.050388 \n",
       "L 218.424982 248.124152 \n",
       "L 227.835417 239.509195 \n",
       "L 237.245852 227.745999 \n",
       "L 246.656288 218.458456 \n",
       "L 256.066723 203.420328 \n",
       "L 265.477158 181.373565 \n",
       "L 274.887594 162.972116 \n",
       "L 284.298029 145.886627 \n",
       "L 293.708465 146.171793 \n",
       "L 303.1189 147.434103 \n",
       "L 312.529335 144.935884 \n",
       "L 321.939771 152.33037 \n",
       "L 331.350206 168.858215 \n",
       "L 340.760641 176.242158 \n",
       "L 350.171077 188.869671 \n",
       "L 359.581512 207.08555 \n",
       "L 368.991947 211.779815 \n",
       "L 378.402383 227.665796 \n",
       "L 387.812818 232.648338 \n",
       "L 397.223253 242.244971 \n",
       "L 406.633689 256.416848 \n",
       "L 416.044124 268.51608 \n",
       "L 425.454559 251.405397 \n",
       "L 434.864995 260.323645 \n",
       "L 444.27543 251.236171 \n",
       "L 453.685865 236.493631 \n",
       "L 463.096301 221.851019 \n",
       "L 472.506736 205.916946 \n",
       "L 481.917171 194.380523 \n",
       "L 491.327607 170.735987 \n",
       "L 500.738042 152.340218 \n",
       "L 510.148477 137.380118 \n",
       "L 519.558913 139.046795 \n",
       "L 528.969348 146.540605 \n",
       "L 538.379783 150.421453 \n",
       "L 547.790219 148.566186 \n",
       "L 557.200654 164.544725 \n",
       "L 566.611089 175.895005 \n",
       "L 576.021525 186.996701 \n",
       "L 585.43196 199.958649 \n",
       "L 594.842395 204.113335 \n",
       "L 604.252831 218.73755 \n",
       "L 613.663266 233.421396 \n",
       "L 623.073701 239.248921 \n",
       "L 632.484137 260.084819 \n",
       "L 641.894572 267.193081 \n",
       "L 651.305007 253.491546 \n",
       "L 660.715443 255.308811 \n",
       "L 670.125878 255.321408 \n",
       "L 679.536313 232.993285 \n",
       "L 688.946749 217.506716 \n",
       "L 698.357184 206.949251 \n",
       "L 707.767619 194.487521 \n",
       "L 717.178055 176.842274 \n",
       "L 726.58849 164.59768 \n",
       "L 735.998925 138.687468 \n",
       "L 745.409361 142.309915 \n",
       "\" clip-path=\"url(#p16f5f92e1e)\" style=\"fill: none; stroke: #1a7f64; stroke-width: 1.8; stroke-linecap: round\"/>\n",
       "   </g>\n",
       "   <g id=\"line2d_26\">\n",
       "    <path d=\"M 77.268452 149.603264 \n",
       "L 86.678887 144.219799 \n",
       "L 96.089322 144.309366 \n",
       "L 105.499758 163.690588 \n",
       "L 114.910193 180.720403 \n",
       "L 124.320628 203.521677 \n",
       "L 133.731064 208.966162 \n",
       "L 143.141499 236.525259 \n",
       "L 152.551934 268.374615 \n",
       "L 161.96237 258.076608 \n",
       "L 171.372805 282.990069 \n",
       "L 180.78324 268.472942 \n",
       "L 190.193676 286.934234 \n",
       "L 199.604111 273.238347 \n",
       "L 209.014546 286.93665 \n",
       "L 218.424982 252.965681 \n",
       "L 227.835417 248.732062 \n",
       "L 237.245852 240.417163 \n",
       "L 246.656288 221.660254 \n",
       "L 256.066723 207.471007 \n",
       "L 265.477158 175.112643 \n",
       "L 274.887594 160.038688 \n",
       "L 284.298029 148.786071 \n",
       "L 293.708465 133.095235 \n",
       "L 303.1189 139.732279 \n",
       "L 312.529335 142.522309 \n",
       "L 321.939771 156.802996 \n",
       "L 331.350206 160.605666 \n",
       "L 340.760641 202.664247 \n",
       "L 350.171077 203.797297 \n",
       "L 359.581512 222.774907 \n",
       "L 368.991947 238.959738 \n",
       "L 378.402383 254.335321 \n",
       "L 387.812818 266.216269 \n",
       "L 397.223253 297.187805 \n",
       "L 406.633689 304.157865 \n",
       "L 416.044124 295.949903 \n",
       "L 425.454559 284.915722 \n",
       "L 434.864995 292.099112 \n",
       "L 444.27543 282.556431 \n",
       "L 453.685865 244.405975 \n",
       "L 463.096301 231.438499 \n",
       "L 472.506736 217.791187 \n",
       "L 481.917171 187.03416 \n",
       "L 491.327607 182.201934 \n",
       "L 500.738042 167.023369 \n",
       "L 510.148477 164.323903 \n",
       "L 519.558913 150.555879 \n",
       "L 528.969348 175.494656 \n",
       "L 538.379783 147.896258 \n",
       "L 547.790219 157.377708 \n",
       "L 557.200654 176.847198 \n",
       "L 566.611089 181.663413 \n",
       "L 576.021525 212.14476 \n",
       "L 585.43196 218.079343 \n",
       "L 594.842395 245.789179 \n",
       "L 604.252831 267.403089 \n",
       "L 613.663266 276.270707 \n",
       "L 623.073701 287.518007 \n",
       "L 632.484137 313.992901 \n",
       "L 641.894572 312.500767 \n",
       "L 651.305007 297.586976 \n",
       "L 660.715443 286.903723 \n",
       "L 670.125878 285.430016 \n",
       "L 679.536313 277.868178 \n",
       "L 688.946749 242.142384 \n",
       "L 698.357184 217.799011 \n",
       "L 707.767619 199.81223 \n",
       "L 717.178055 200.77995 \n",
       "L 726.58849 175.210517 \n",
       "L 735.998925 164.548652 \n",
       "L 745.409361 171.242972 \n",
       "\" clip-path=\"url(#p16f5f92e1e)\" style=\"fill: none; stroke: #b35900; stroke-width: 1.8; stroke-linecap: round\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_3\">\n",
       "    <path d=\"M 43.861406 331.8575 \n",
       "L 43.861406 29.925 \n",
       "\" style=\"fill: none; stroke: #d1d2cb; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_4\">\n",
       "    <path d=\"M 43.861406 331.8575 \n",
       "L 778.816406 331.8575 \n",
       "\" style=\"fill: none; stroke: #d1d2cb; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"text_16\">\n",
       "    <text style=\"font-weight: 600; font-size: 11px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: start; fill: #171817\" x=\"43.861406\" y=\"17.925\" transform=\"rotate(-0 43.861406 17.925)\">First forecast block — every method faces the same unseen future</text>\n",
       "   </g>\n",
       "   <g id=\"legend_1\">\n",
       "    <g id=\"line2d_27\">\n",
       "     <path d=\"M 51.961406 43.443 \n",
       "L 60.961406 43.443 \n",
       "L 69.961406 43.443 \n",
       "\" style=\"fill: none; stroke: #171817; stroke-width: 2; stroke-linecap: round\"/>\n",
       "    </g>\n",
       "    <g id=\"text_17\">\n",
       "     <text style=\"font-size: 9px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: start; fill: #484945\" x=\"77.161406\" y=\"46.593\" transform=\"rotate(-0 77.161406 46.593)\">Actual future (evaluation only)</text>\n",
       "    </g>\n",
       "    <g id=\"line2d_28\">\n",
       "     <path d=\"M 51.961406 58.428 \n",
       "L 60.961406 58.428 \n",
       "L 69.961406 58.428 \n",
       "\" style=\"fill: none; stroke: #0969da; stroke-width: 1.8; stroke-linecap: round\"/>\n",
       "    </g>\n",
       "    <g id=\"text_18\">\n",
       "     <text style=\"font-size: 9px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: start; fill: #484945\" x=\"77.161406\" y=\"61.578\" transform=\"rotate(-0 77.161406 61.578)\">Daily seasonal</text>\n",
       "    </g>\n",
       "    <g id=\"line2d_29\">\n",
       "     <path d=\"M 51.961406 73.413 \n",
       "L 60.961406 73.413 \n",
       "L 69.961406 73.413 \n",
       "\" style=\"fill: none; stroke: #1a7f64; stroke-width: 1.8; stroke-linecap: round\"/>\n",
       "    </g>\n",
       "    <g id=\"text_19\">\n",
       "     <text style=\"font-size: 9px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: start; fill: #484945\" x=\"77.161406\" y=\"76.563\" transform=\"rotate(-0 77.161406 76.563)\">NV-Tesseract direct</text>\n",
       "    </g>\n",
       "    <g id=\"line2d_30\">\n",
       "     <path d=\"M 51.961406 88.398 \n",
       "L 60.961406 88.398 \n",
       "L 69.961406 88.398 \n",
       "\" style=\"fill: none; stroke: #b35900; stroke-width: 1.8; stroke-linecap: round\"/>\n",
       "    </g>\n",
       "    <g id=\"text_20\">\n",
       "     <text style=\"font-size: 9px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: start; fill: #484945\" x=\"77.161406\" y=\"91.548\" transform=\"rotate(-0 77.161406 91.548)\">NV-Tesseract DARR</text>\n",
       "    </g>\n",
       "   </g>\n",
       "  </g>\n",
       " </g>\n",
       " <defs>\n",
       "  <clipPath id=\"p16f5f92e1e\">\n",
       "   <rect x=\"43.861406\" y=\"29.925\" width=\"734.955\" height=\"301.9325\"/>\n",
       "  </clipPath>\n",
       " </defs>\n",
       "</svg>\n"
      ],
      "text/plain": [
       "<Figure size 1100x500 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ]
  },
  {
   "id": "cell-08",
   "metadata": {},
   "cell_type": "markdown",
   "source": [
    "## Turn error into an operating decision\n",
    "\n",
    "The business decision is case-handling slots, not a low error score. For illustration, count each unit of underprediction as four cost units and overprediction as one. These are **assumptions**, not measured dollars, service-level guarantees, or an inventory/queueing optimization. We clip negative predictions to zero only for this nonnegative capacity decision, not to improve the reported forecast MAE.\n",
    "\n",
    "Compare a declared 10% planning buffer with no buffer. This teaches the separation between a statistical forecast and a decision policy. Do not select a buffer on these test results and then describe its savings as out-of-sample.\n"
   ]
  },
  {
   "id": "cell-09",
   "metadata": {},
   "cell_type": "code",
   "execution_count": 5,
   "source": [
    "policies = []\n",
    "for buffer in [0., .10]:\n",
    "    planned = results.prediction.clip(lower=0)*(1+buffer)\n",
    "    shortage = (results.actual-planned).clip(lower=0)\n",
    "    excess = (planned-results.actual).clip(lower=0)\n",
    "    scored = results.assign(cost=4*shortage+excess, shortage=shortage)\n",
    "    table = scored.groupby('method')[['cost','shortage']].sum()\n",
    "    table['buffer_pct'] = int(buffer*100)\n",
    "    policies.append(table.reset_index())\n",
    "policy_table = pd.concat(policies, ignore_index=True)\n",
    "display(policy_table.round(2))\n",
    "fig, ax = plt.subplots(figsize=(11,4))\n",
    "policy_table.pivot(index='method',columns='buffer_pct',values='cost').plot.barh(ax=ax)\n",
    "ax.set(title='Toy asymmetric cost: forecast choice and planning buffer both matter', xlabel='Assumed cost units')\n",
    "ax.legend(title='Buffer %'); plt.tight_layout(); plt.show()\n",
    "best = metrics.index[0]\n",
    "lowest_cost = policy_table.sort_values('cost').iloc[0]\n",
    "display(Markdown(f\"**Decision insight:** the lowest assumed cost is {lowest_cost['method']} with a {int(lowest_cost['buffer_pct'])}% buffer. The MAE winner is {best}. These answer different questions: how close is the forecast, and what does the proposed action cost? This is exploratory policy comparison, not validated savings.\"))\n",
    "display(Markdown(f\"**Observed:** {best} has the lowest aggregate MAE on these three synthetic blocks. \"\n",
    "                 \"Use the origin-level table to check consistency. \"\n",
    "                 \"DARR retrieval is worth investigating only if it adds value beyond simple seasonality and its compute cost. \"\n",
    "                 \"Carry the declared loss function into a separate real-data validation, rather than promising savings from this toy run.\"))\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>method</th>\n",
       "      <th>cost</th>\n",
       "      <th>shortage</th>\n",
       "      <th>buffer_pct</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>Daily seasonal</td>\n",
       "      <td>8063.93</td>\n",
       "      <td>1774.04</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>NV-Tesseract DARR</td>\n",
       "      <td>7585.56</td>\n",
       "      <td>1842.34</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>NV-Tesseract direct</td>\n",
       "      <td>4535.18</td>\n",
       "      <td>956.53</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>Persistence</td>\n",
       "      <td>6817.55</td>\n",
       "      <td>889.11</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>Daily seasonal</td>\n",
       "      <td>5640.84</td>\n",
       "      <td>910.05</td>\n",
       "      <td>10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>NV-Tesseract DARR</td>\n",
       "      <td>3771.31</td>\n",
       "      <td>716.51</td>\n",
       "      <td>10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>NV-Tesseract direct</td>\n",
       "      <td>2820.47</td>\n",
       "      <td>223.04</td>\n",
       "      <td>10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>Persistence</td>\n",
       "      <td>6536.16</td>\n",
       "      <td>389.90</td>\n",
       "      <td>10</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                method     cost  shortage  buffer_pct\n",
       "0       Daily seasonal  8063.93   1774.04           0\n",
       "1    NV-Tesseract DARR  7585.56   1842.34           0\n",
       "2  NV-Tesseract direct  4535.18    956.53           0\n",
       "3          Persistence  6817.55    889.11           0\n",
       "4       Daily seasonal  5640.84    910.05          10\n",
       "5    NV-Tesseract DARR  3771.31    716.51          10\n",
       "6  NV-Tesseract direct  2820.47    223.04          10\n",
       "7          Persistence  6536.16    389.90          10"
      ]
     },
     "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=\"787.210625pt\" height=\"282.96pt\" viewBox=\"0 0 787.210625 282.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:22.501844</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 282.96 \n",
       "L 787.210625 282.96 \n",
       "L 787.210625 0 \n",
       "L 0 0 \n",
       "L 0 282.96 \n",
       "z\n",
       "\" style=\"fill: none\"/>\n",
       "  </g>\n",
       "  <g id=\"axes_1\">\n",
       "   <g id=\"patch_2\">\n",
       "    <path d=\"M 105.558125 243.3725 \n",
       "L 780.010625 243.3725 \n",
       "L 780.010625 29.925 \n",
       "L 105.558125 29.925 \n",
       "L 105.558125 243.3725 \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",
       "      <path d=\"M 105.558125 243.3725 \n",
       "L 105.558125 29.925 \n",
       "\" clip-path=\"url(#p2c15d383cd)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_2\"/>\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: middle; fill: #6f706a\" x=\"105.558125\" y=\"257.4645\" transform=\"rotate(-0 105.558125 257.4645)\">0</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_2\">\n",
       "     <g id=\"line2d_3\">\n",
       "      <path d=\"M 185.213522 243.3725 \n",
       "L 185.213522 29.925 \n",
       "\" clip-path=\"url(#p2c15d383cd)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_4\"/>\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: middle; fill: #6f706a\" x=\"185.213522\" y=\"257.4645\" transform=\"rotate(-0 185.213522 257.4645)\">1000</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_3\">\n",
       "     <g id=\"line2d_5\">\n",
       "      <path d=\"M 264.868918 243.3725 \n",
       "L 264.868918 29.925 \n",
       "\" clip-path=\"url(#p2c15d383cd)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_6\"/>\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: middle; fill: #6f706a\" x=\"264.868918\" y=\"257.4645\" transform=\"rotate(-0 264.868918 257.4645)\">2000</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_4\">\n",
       "     <g id=\"line2d_7\">\n",
       "      <path d=\"M 344.524315 243.3725 \n",
       "L 344.524315 29.925 \n",
       "\" clip-path=\"url(#p2c15d383cd)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_8\"/>\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: middle; fill: #6f706a\" x=\"344.524315\" y=\"257.4645\" transform=\"rotate(-0 344.524315 257.4645)\">3000</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_5\">\n",
       "     <g id=\"line2d_9\">\n",
       "      <path d=\"M 424.179712 243.3725 \n",
       "L 424.179712 29.925 \n",
       "\" clip-path=\"url(#p2c15d383cd)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_10\"/>\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: middle; fill: #6f706a\" x=\"424.179712\" y=\"257.4645\" transform=\"rotate(-0 424.179712 257.4645)\">4000</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_6\">\n",
       "     <g id=\"line2d_11\">\n",
       "      <path d=\"M 503.835109 243.3725 \n",
       "L 503.835109 29.925 \n",
       "\" clip-path=\"url(#p2c15d383cd)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_12\"/>\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: middle; fill: #6f706a\" x=\"503.835109\" y=\"257.4645\" transform=\"rotate(-0 503.835109 257.4645)\">5000</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_7\">\n",
       "     <g id=\"line2d_13\">\n",
       "      <path d=\"M 583.490505 243.3725 \n",
       "L 583.490505 29.925 \n",
       "\" clip-path=\"url(#p2c15d383cd)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_14\"/>\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: middle; fill: #6f706a\" x=\"583.490505\" y=\"257.4645\" transform=\"rotate(-0 583.490505 257.4645)\">6000</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_8\">\n",
       "     <g id=\"line2d_15\">\n",
       "      <path d=\"M 663.145902 243.3725 \n",
       "L 663.145902 29.925 \n",
       "\" clip-path=\"url(#p2c15d383cd)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_16\"/>\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: middle; fill: #6f706a\" x=\"663.145902\" y=\"257.4645\" transform=\"rotate(-0 663.145902 257.4645)\">7000</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"xtick_9\">\n",
       "     <g id=\"line2d_17\">\n",
       "      <path d=\"M 742.801299 243.3725 \n",
       "L 742.801299 29.925 \n",
       "\" clip-path=\"url(#p2c15d383cd)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_18\"/>\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: middle; fill: #6f706a\" x=\"742.801299\" y=\"257.4645\" transform=\"rotate(-0 742.801299 257.4645)\">8000</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_10\">\n",
       "     <text style=\"font-size: 9px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: middle; fill: #484945\" x=\"442.784375\" y=\"273.843\" transform=\"rotate(-0 442.784375 273.843)\">Assumed cost units</text>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"matplotlib.axis_2\">\n",
       "    <g id=\"ytick_1\">\n",
       "     <g id=\"line2d_19\">\n",
       "      <path d=\"M 105.558125 216.691563 \n",
       "L 780.010625 216.691563 \n",
       "\" clip-path=\"url(#p2c15d383cd)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_20\"/>\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=\"99.558125\" y=\"220.737563\" transform=\"rotate(-0 99.558125 220.737563)\">Daily seasonal</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_2\">\n",
       "     <g id=\"line2d_21\">\n",
       "      <path d=\"M 105.558125 163.329688 \n",
       "L 780.010625 163.329688 \n",
       "\" clip-path=\"url(#p2c15d383cd)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_22\"/>\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=\"99.558125\" y=\"167.375688\" transform=\"rotate(-0 99.558125 167.375688)\">NV-Tesseract DARR</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_3\">\n",
       "     <g id=\"line2d_23\">\n",
       "      <path d=\"M 105.558125 109.967813 \n",
       "L 780.010625 109.967813 \n",
       "\" clip-path=\"url(#p2c15d383cd)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_24\"/>\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=\"99.558125\" y=\"114.013813\" transform=\"rotate(-0 99.558125 114.013813)\">NV-Tesseract direct</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"ytick_4\">\n",
       "     <g id=\"line2d_25\">\n",
       "      <path d=\"M 105.558125 56.605938 \n",
       "L 780.010625 56.605938 \n",
       "\" clip-path=\"url(#p2c15d383cd)\" style=\"fill: none; stroke: #e3e4de; stroke-width: 0.8; stroke-linecap: round\"/>\n",
       "     </g>\n",
       "     <g id=\"line2d_26\"/>\n",
       "     <g id=\"text_14\">\n",
       "      <text style=\"font-size: 8.5px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #6f706a\" x=\"99.558125\" y=\"60.651938\" transform=\"rotate(-0 99.558125 60.651938)\">Persistence</text>\n",
       "     </g>\n",
       "    </g>\n",
       "    <g id=\"text_15\">\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=\"136.64875\" transform=\"rotate(-90 15.768 136.64875)\">method</text>\n",
       "    </g>\n",
       "   </g>\n",
       "   <g id=\"patch_3\">\n",
       "    <path d=\"M 105.558125 230.032031 \n",
       "L 747.893839 230.032031 \n",
       "L 747.893839 216.691563 \n",
       "L 105.558125 216.691563 \n",
       "z\n",
       "\" clip-path=\"url(#p2c15d383cd)\" style=\"fill: #0969da\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_4\">\n",
       "    <path d=\"M 105.558125 176.670156 \n",
       "L 709.788747 176.670156 \n",
       "L 709.788747 163.329688 \n",
       "L 105.558125 163.329688 \n",
       "z\n",
       "\" clip-path=\"url(#p2c15d383cd)\" style=\"fill: #0969da\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_5\">\n",
       "    <path d=\"M 105.558125 123.308281 \n",
       "L 466.809631 123.308281 \n",
       "L 466.809631 109.967813 \n",
       "L 105.558125 109.967813 \n",
       "z\n",
       "\" clip-path=\"url(#p2c15d383cd)\" style=\"fill: #0969da\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_6\">\n",
       "    <path d=\"M 105.558125 69.946406 \n",
       "L 648.612543 69.946406 \n",
       "L 648.612543 56.605938 \n",
       "L 105.558125 56.605938 \n",
       "z\n",
       "\" clip-path=\"url(#p2c15d383cd)\" style=\"fill: #0969da\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_7\">\n",
       "    <path d=\"M 105.558125 216.691563 \n",
       "L 554.881634 216.691563 \n",
       "L 554.881634 203.351094 \n",
       "L 105.558125 203.351094 \n",
       "z\n",
       "\" clip-path=\"url(#p2c15d383cd)\" style=\"fill: #1a7f64\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_8\">\n",
       "    <path d=\"M 105.558125 163.329688 \n",
       "L 405.963157 163.329688 \n",
       "L 405.963157 149.989219 \n",
       "L 105.558125 149.989219 \n",
       "z\n",
       "\" clip-path=\"url(#p2c15d383cd)\" style=\"fill: #1a7f64\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_9\">\n",
       "    <path d=\"M 105.558125 109.967813 \n",
       "L 330.223802 109.967813 \n",
       "L 330.223802 96.627344 \n",
       "L 105.558125 96.627344 \n",
       "z\n",
       "\" clip-path=\"url(#p2c15d383cd)\" style=\"fill: #1a7f64\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_10\">\n",
       "    <path d=\"M 105.558125 56.605938 \n",
       "L 626.198794 56.605938 \n",
       "L 626.198794 43.265469 \n",
       "L 105.558125 43.265469 \n",
       "z\n",
       "\" clip-path=\"url(#p2c15d383cd)\" style=\"fill: #1a7f64\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_11\">\n",
       "    <path d=\"M 105.558125 243.3725 \n",
       "L 105.558125 29.925 \n",
       "\" style=\"fill: none; stroke: #d1d2cb; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"patch_12\">\n",
       "    <path d=\"M 105.558125 243.3725 \n",
       "L 780.010625 243.3725 \n",
       "\" style=\"fill: none; stroke: #d1d2cb; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square\"/>\n",
       "   </g>\n",
       "   <g id=\"text_16\">\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=\"105.558125\" y=\"17.925\" transform=\"rotate(-0 105.558125 17.925)\">Toy asymmetric cost: forecast choice and planning buffer both matter</text>\n",
       "   </g>\n",
       "   <g id=\"legend_1\">\n",
       "    <g id=\"text_17\">\n",
       "     <text style=\"font-size: 9px; font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: start; fill: #484945\" x=\"736.667188\" y=\"46.143\" transform=\"rotate(-0 736.667188 46.143)\">Buffer %</text>\n",
       "    </g>\n",
       "    <g id=\"patch_13\">\n",
       "     <path d=\"M 737.888438 60.402 \n",
       "L 754.888438 60.402 \n",
       "L 754.888438 54.452 \n",
       "L 737.888438 54.452 \n",
       "z\n",
       "\" style=\"fill: #0969da\"/>\n",
       "    </g>\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: start; fill: #484945\" x=\"761.688437\" y=\"60.402\" transform=\"rotate(-0 761.688437 60.402)\">0</text>\n",
       "    </g>\n",
       "    <g id=\"patch_14\">\n",
       "     <path d=\"M 737.888438 74.5545 \n",
       "L 754.888438 74.5545 \n",
       "L 754.888438 68.6045 \n",
       "L 737.888438 68.6045 \n",
       "z\n",
       "\" style=\"fill: #1a7f64\"/>\n",
       "    </g>\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: start; fill: #484945\" x=\"761.688437\" y=\"74.5545\" transform=\"rotate(-0 761.688437 74.5545)\">10</text>\n",
       "    </g>\n",
       "   </g>\n",
       "  </g>\n",
       " </g>\n",
       " <defs>\n",
       "  <clipPath id=\"p2c15d383cd\">\n",
       "   <rect x=\"105.558125\" y=\"29.925\" width=\"674.4525\" height=\"213.4475\"/>\n",
       "  </clipPath>\n",
       " </defs>\n",
       "</svg>\n"
      ],
      "text/plain": [
       "<Figure size 1100x400 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    },
    {
     "data": {
      "text/markdown": [
       "**Decision insight:** the lowest assumed cost is NV-Tesseract direct with a 10% buffer. The MAE winner is NV-Tesseract direct. These answer different questions: how close is the forecast, and what does the proposed action cost? This is exploratory policy comparison, not validated savings."
      ],
      "text/plain": [
       "<IPython.core.display.Markdown object>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/markdown": [
       "**Observed:** NV-Tesseract direct has the lowest aggregate MAE on these three synthetic blocks. Use the origin-level table to check consistency. DARR retrieval is worth investigating only if it adds value beyond simple seasonality and its compute cost. Carry the declared loss function into a separate real-data validation, rather than promising savings from this toy run."
      ],
      "text/plain": [
       "<IPython.core.display.Markdown object>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ]
  },
  {
   "id": "cell-10",
   "metadata": {},
   "cell_type": "markdown",
   "source": [
    "## What breaks when the world changes?\n",
    "\n",
    "A forecast is conditional on the patterns it can observe. Reuse the **already frozen predictions** against a counterfactual 40% workload surge; no model sees the surge beforehand. This is a stress test, not a second independent accuracy benchmark. It makes the operational limitation visible without cherry-picking a nicer model run.\n"
   ]
  },
  {
   "id": "cell-11",
   "metadata": {},
   "cell_type": "code",
   "execution_count": 6,
   "source": [
    "shock = results.copy()\n",
    "shock['actual'] *= 1.4\n",
    "stress = shock.groupby('method').apply(lambda group: (group.prediction-group.actual).abs().mean(), include_groups=False)\n",
    "display(pd.DataFrame({'original_MAE': metrics.MAE, 'unannounced_surge_MAE': stress}).round(2))\n",
    "assert np.array_equal(shock.prediction.to_numpy(), results.prediction.to_numpy())\n",
    "print('Predictions remained frozen; only the synthetic counterfactual outcomes changed.')\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>original_MAE</th>\n",
       "      <th>unannounced_surge_MAE</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>method</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>Daily seasonal</th>\n",
       "      <td>12.69</td>\n",
       "      <td>40.37</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NV-Tesseract DARR</th>\n",
       "      <td>9.53</td>\n",
       "      <td>44.15</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NV-Tesseract direct</th>\n",
       "      <td>7.71</td>\n",
       "      <td>37.77</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Persistence</th>\n",
       "      <td>19.21</td>\n",
       "      <td>30.54</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                     original_MAE  unannounced_surge_MAE\n",
       "method                                                  \n",
       "Daily seasonal              12.69                  40.37\n",
       "NV-Tesseract DARR            9.53                  44.15\n",
       "NV-Tesseract direct          7.71                  37.77\n",
       "Persistence                 19.21                  30.54"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Predictions remained frozen; only the synthetic counterfactual outcomes changed.\n"
     ]
    }
   ]
  },
  {
   "id": "cell-12",
   "metadata": {},
   "cell_type": "markdown",
   "source": [
    "## What to carry into a real pilot\n",
    "\n",
    "- Use the actual forecast decision time to decide which inputs are legal. A timestamp split alone is insufficient if retrieval includes future continuations.\n",
    "- Keep persistence and seasonal baselines. Complexity needs a measured benefit.\n",
    "- Backtest across many origins, peak periods, and segments; reserve an untouched final interval for policy selection validation.\n",
    "- Use domain owners to set shortage/excess costs and escalation rules. The model must not automatically order stock, schedule staff, move funds, or change customer decisions.\n",
    "- These plots do not measure realized margin, staffing savings, fraud reduction, or production reliability. Record those separately in a human-reviewed pilot.\n",
    "\n",
    "The receipt below comes from the actual run.\n"
   ]
  },
  {
   "id": "cell-13",
   "metadata": {
    "tags": [
     "vit-result"
    ]
   },
   "cell_type": "code",
   "execution_count": 7,
   "source": [
    "display(JSON({'case_id': 'FIN-01 / FIN-09', 'model': 'nvidia/nv-tesseract-forecasting',\n",
    "              'device': DEVICE, 'origins': origins, 'horizon': HORIZON,\n",
    "              'seconds': [round(value,3) for value in timings],\n",
    "              'protocol': 'rolling-origin-disjoint-retrieval',\n",
    "              'metrics': metrics.to_dict(orient='index'),\n",
    "              'decision_policies': policy_table.to_dict(orient='records')}))\n"
   ],
   "outputs": [
    {
     "data": {
      "application/json": {
       "case_id": "FIN-01 / FIN-09",
       "decision_policies": [
        {
         "buffer_pct": 0,
         "cost": 8063.93214702967,
         "method": "Daily seasonal",
         "shortage": 1774.040738074709
        },
        {
         "buffer_pct": 0,
         "cost": 7585.557872810879,
         "method": "NV-Tesseract DARR",
         "shortage": 1842.3379617692215
        },
        {
         "buffer_pct": 0,
         "cost": 4535.179299787493,
         "method": "NV-Tesseract direct",
         "shortage": 956.5270970180599
        },
        {
         "buffer_pct": 0,
         "cost": 6817.547087837367,
         "method": "Persistence",
         "shortage": 889.1144867830174
        },
        {
         "buffer_pct": 10,
         "cost": 5640.842016508132,
         "method": "Daily seasonal",
         "shortage": 910.0498302884487
        },
        {
         "buffer_pct": 10,
         "cost": 3771.3079647029786,
         "method": "NV-Tesseract DARR",
         "shortage": 716.512306319516
        },
        {
         "buffer_pct": 10,
         "cost": 2820.470256364792,
         "method": "NV-Tesseract direct",
         "shortage": 223.03609949074584
        },
        {
         "buffer_pct": 10,
         "cost": 6536.163155627828,
         "method": "Persistence",
         "shortage": 389.89989471383376
        }
       ],
       "device": "mps",
       "horizon": 72,
       "metrics": {
        "Daily seasonal": {
         "MAE": 12.693564503729366,
         "WAPE_pct": 13.865090422943485
        },
        "NV-Tesseract DARR": {
         "MAE": 9.530296238440807,
         "WAPE_pct": 10.40987494604827
        },
        "NV-Tesseract direct": {
         "MAE": 7.711101892283858,
         "WAPE_pct": 8.422781872312909
        },
        "Persistence": {
         "MAE": 19.213905682816275,
         "WAPE_pct": 20.98721281889625
        }
       },
       "model": "nvidia/nv-tesseract-forecasting",
       "origins": [
        1280,
        1352,
        1424
       ],
       "protocol": "rolling-origin-disjoint-retrieval",
       "seconds": [
        6.867,
        0.245,
        0.273
       ]
      },
      "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 source article frames forecasting as one task in a purpose-built model family.[1] This notebook uses NVIDIA's later public forecasting release: a MOMENT-based backbone with a trained forecasting head and optional DARR retrieval from historical windows.[2][3]\n",
    "Neither the synthetic fixture nor the MAE/cost results here reproduce NVIDIA's benchmarks. The model card labels the model for research and development.[3] No classification checkpoint is assumed. These are original teaching extensions of the enterprise casebooks, not completed enterprise implementations.\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",
    "[3] https://huggingface.co/nvidia/nv-tesseract-forecasting\n"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "name": "python",
   "version": "3.12.12"
  },
  "mementropy": {
   "contentKind": "notebook",
   "world": "meridian",
   "capabilities": [
    "workload-forecasting",
    "retrieval-augmented-forecasting",
    "decision-cost-analysis"
   ],
   "implementations": [
    "NV-Tesseract",
    "PyTorch",
    "NumPy",
    "pandas",
    "Matplotlib",
    "IPython",
    "MOMENT"
   ],
   "evidenceStatus": "executed-example",
   "updatedDate": "2026-10-29"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
