{
  "version": "1",
  "metadata": {
    "marimo_version": "0.15.2"
  },
  "cells": [
    {
      "id": "Hbol",
      "code_hash": "12b017b8afe19b8d8ca2f437effc496a",
      "outputs": [
        {
          "type": "data",
          "data": {
            "text/plain": ""
          }
        }
      ],
      "console": []
    },
    {
      "id": "sMiS",
      "code_hash": "7b3e9ad21e0cb6ed0dc45471f7d8ff51",
      "outputs": [
        {
          "type": "data",
          "data": {
            "text/html": "<div style='display: flex;flex: 1;flex-direction: column;justify-content: flex-start;align-items: normal;flex-wrap: nowrap;gap: 0.5rem'><span class=\"markdown prose dark:prose-invert\"><h3 id=\"data-models\">Data &amp; Models</h3></span><marimo-ui-element object-id='sMiS-0' random-id='6808b77c-148b-3276-7b9f-de4274b9f99c'><marimo-checkbox data-initial-value='true' data-label='&quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;Use sample dataset (tiny demo)&lt;/span&gt;&lt;/span&gt;&quot;' data-disabled='false'></marimo-checkbox></marimo-ui-element><marimo-ui-element object-id='sMiS-1' random-id='7e6ac351-f427-756b-98c0-69811c93ba7c'><marimo-text-area data-initial-value='&quot;Label,Text&#92;ntech,Transformers accelerate NLP research.&#92;ntech,Embeddings capture semantic meaning.&#92;nfinance,Markets react to macroeconomic signals.&#92;nfinance,Portfolio optimization reduces risk.&#92;nsports,The team improved defense and strategy.&#92;nsports,Training intensity boosts performance.&#92;n&quot;' data-label='&quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;CSV data (columns: Label,Text)&lt;/span&gt;&lt;/span&gt;&quot;' data-placeholder='&quot;&quot;' data-disabled='false' data-debounce='true' data-full-width='true'></marimo-text-area></marimo-ui-element><div style='display: flex;flex: 1;flex-direction: row;justify-content: space-between;align-items: normal;flex-wrap: nowrap;gap: 0.5rem'><marimo-ui-element object-id='sMiS-2' random-id='b0b1ab73-d96d-ad52-76f6-22378584e802'><marimo-dropdown data-initial-value='[&quot;sentence-transformers/all-MiniLM-L6-v2&quot;]' data-label='&quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;Model A&lt;/span&gt;&lt;/span&gt;&quot;' data-options='[&quot;sentence-transformers/all-MiniLM-L6-v2&quot;, &quot;thenlper/gte-small&quot;, &quot;BAAI/bge-small-en-v1.5&quot;, &quot;sentence-transformers/paraphrase-MiniLM-L6-v2&quot;]' data-allow-select-none='false' data-searchable='false' data-full-width='false'></marimo-dropdown></marimo-ui-element><marimo-ui-element object-id='sMiS-3' random-id='019bdbe9-55da-0f50-4228-12df83434873'><marimo-dropdown data-initial-value='[&quot;BAAI/bge-small-en-v1.5&quot;]' data-label='&quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;Model B&lt;/span&gt;&lt;/span&gt;&quot;' data-options='[&quot;sentence-transformers/all-MiniLM-L6-v2&quot;, &quot;thenlper/gte-small&quot;, &quot;BAAI/bge-small-en-v1.5&quot;, &quot;sentence-transformers/paraphrase-MiniLM-L6-v2&quot;]' data-allow-select-none='false' data-searchable='false' data-full-width='false'></marimo-dropdown></marimo-ui-element></div><div style='display: flex;flex: 1;flex-direction: row;justify-content: space-between;align-items: normal;flex-wrap: nowrap;gap: 0.5rem'><marimo-ui-element object-id='sMiS-4' random-id='20e4baf9-ae0e-dff2-e8f5-979618435b46'><marimo-radio data-initial-value='&quot;PCA&quot;' data-label='&quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;Dimensionality reduction&lt;/span&gt;&lt;/span&gt;&quot;' data-options='[&quot;PCA&quot;, &quot;TSNE&quot;]' data-inline='false' data-disabled='false'></marimo-radio></marimo-ui-element><marimo-ui-element object-id='sMiS-5' random-id='f7493c5e-b1a3-8b6b-0122-d79d6329ba4a'><marimo-slider data-initial-value='10' data-label='&quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;k for neighborhood agreement&lt;/span&gt;&lt;/span&gt;&quot;' data-start='3' data-stop='20' data-steps='[]' data-debounce='false' data-disabled='false' data-orientation='&quot;horizontal&quot;' data-show-value='false' data-include-input='false' data-full-width='false'></marimo-slider></marimo-ui-element></div></div>"
          }
        }
      ],
      "console": []
    },
    {
      "id": "Biek",
      "code_hash": "5d3007cddc376f2ad80a0bb3af7dcfa7",
      "outputs": [
        {
          "type": "data",
          "data": {
            "text/html": "<marimo-ui-element object-id='Biek-0' random-id='a442a163-d956-1ae8-68ba-0aa6a4ecb683'><marimo-table data-initial-value='[]' data-label='null' data-data='&quot;[{&#92;&quot;Label&#92;&quot;:&#92;&quot;tech&#92;&quot;,&#92;&quot;Text&#92;&quot;:&#92;&quot;Transformers accelerate NLP research.&#92;&quot;},{&#92;&quot;Label&#92;&quot;:&#92;&quot;tech&#92;&quot;,&#92;&quot;Text&#92;&quot;:&#92;&quot;Embeddings capture semantic meaning.&#92;&quot;},{&#92;&quot;Label&#92;&quot;:&#92;&quot;finance&#92;&quot;,&#92;&quot;Text&#92;&quot;:&#92;&quot;Markets react to macroeconomic signals.&#92;&quot;},{&#92;&quot;Label&#92;&quot;:&#92;&quot;finance&#92;&quot;,&#92;&quot;Text&#92;&quot;:&#92;&quot;Portfolio optimization reduces risk.&#92;&quot;},{&#92;&quot;Label&#92;&quot;:&#92;&quot;sports&#92;&quot;,&#92;&quot;Text&#92;&quot;:&#92;&quot;The team improved defense and strategy.&#92;&quot;},{&#92;&quot;Label&#92;&quot;:&#92;&quot;sports&#92;&quot;,&#92;&quot;Text&#92;&quot;:&#92;&quot;Training intensity boosts performance.&#92;&quot;}]&quot;' data-total-rows='6' data-total-columns='2' data-max-columns='50' data-banner-text='&quot;&quot;' data-pagination='true' data-page-size='10' data-field-types='[[&quot;Label&quot;, [&quot;string&quot;, &quot;object&quot;]], [&quot;Text&quot;, [&quot;string&quot;, &quot;object&quot;]]]' data-show-filters='true' data-show-download='true' data-show-column-summaries='false' data-show-data-types='true' data-show-page-size-selector='true' data-show-column-explorer='true' data-show-chart-builder='true' data-row-headers='[]' data-has-stable-row-id='false' data-lazy='false' data-preload='false'></marimo-table></marimo-ui-element>"
          }
        }
      ],
      "console": []
    },
    {
      "id": "soFR",
      "code_hash": "2aa2be62ab55c3ee03e38ae77e9844a7",
      "outputs": [
        {
          "type": "data",
          "data": {
            "text/html": "<div style='display: flex;flex: 1;flex-direction: row;justify-content: space-between;align-items: normal;flex-wrap: nowrap;gap: 0.5rem'><span class=\"markdown prose dark:prose-invert\"><span class=\"paragraph\"><strong>Model A:</strong> <code>sentence-transformers/all-MiniLM-L6-v2</code></span></span><span class=\"markdown prose dark:prose-invert\"><span class=\"paragraph\"><strong>Model B:</strong> <code>BAAI/bge-small-en-v1.5</code></span></span></div>"
          }
        }
      ],
      "console": []
    },
    {
      "id": "UFBe",
      "code_hash": "bff196e318d857d757bd04bf9316f8e8",
      "outputs": [
        {
          "type": "data",
          "data": {
            "application/json": "{\"A_shape\": [6, 384], \"B_shape\": [6, 384]}"
          }
        }
      ],
      "console": []
    },
    {
      "id": "REyN",
      "code_hash": "efc89988da6af1873d4bdfdd78de94d8",
      "outputs": [
        {
          "type": "data",
          "data": {
            "text/html": "<marimo-ui-element object-id='REyN-0' random-id='486edc98-60a0-012c-46e8-eeb7fa1761de'><marimo-table data-initial-value='[]' data-label='null' data-data='&quot;[{&#92;&quot;x&#92;&quot;:0.6063024402,&#92;&quot;y&#92;&quot;:-0.1273596883,&#92;&quot;Label&#92;&quot;:&#92;&quot;tech&#92;&quot;,&#92;&quot;Text&#92;&quot;:&#92;&quot;Transformers accelerate NLP research.&#92;&quot;,&#92;&quot;Model&#92;&quot;:&#92;&quot;A&#92;&quot;},{&#92;&quot;x&#92;&quot;:0.6871186495,&#92;&quot;y&#92;&quot;:0.0221407283,&#92;&quot;Label&#92;&quot;:&#92;&quot;tech&#92;&quot;,&#92;&quot;Text&#92;&quot;:&#92;&quot;Embeddings capture semantic meaning.&#92;&quot;,&#92;&quot;Model&#92;&quot;:&#92;&quot;A&#92;&quot;},{&#92;&quot;x&#92;&quot;:-0.1769428402,&#92;&quot;y&#92;&quot;:0.772620976,&#92;&quot;Label&#92;&quot;:&#92;&quot;finance&#92;&quot;,&#92;&quot;Text&#92;&quot;:&#92;&quot;Markets react to macroeconomic signals.&#92;&quot;,&#92;&quot;Model&#92;&quot;:&#92;&quot;A&#92;&quot;},{&#92;&quot;x&#92;&quot;:-0.4850009978,&#92;&quot;y&#92;&quot;:0.0980860591,&#92;&quot;Label&#92;&quot;:&#92;&quot;finance&#92;&quot;,&#92;&quot;Text&#92;&quot;:&#92;&quot;Portfolio optimization reduces risk.&#92;&quot;,&#92;&quot;Model&#92;&quot;:&#92;&quot;A&#92;&quot;},{&#92;&quot;x&#92;&quot;:-0.2829100192,&#92;&quot;y&#92;&quot;:-0.3127965629,&#92;&quot;Label&#92;&quot;:&#92;&quot;sports&#92;&quot;,&#92;&quot;Text&#92;&quot;:&#92;&quot;The team improved defense and strategy.&#92;&quot;,&#92;&quot;Model&#92;&quot;:&#92;&quot;A&#92;&quot;},{&#92;&quot;x&#92;&quot;:-0.3485672176,&#92;&quot;y&#92;&quot;:-0.4526914656,&#92;&quot;Label&#92;&quot;:&#92;&quot;sports&#92;&quot;,&#92;&quot;Text&#92;&quot;:&#92;&quot;Training intensity boosts performance.&#92;&quot;,&#92;&quot;Model&#92;&quot;:&#92;&quot;A&#92;&quot;},{&#92;&quot;x&#92;&quot;:0.4130681753,&#92;&quot;y&#92;&quot;:0.0884118006,&#92;&quot;Label&#92;&quot;:&#92;&quot;tech&#92;&quot;,&#92;&quot;Text&#92;&quot;:&#92;&quot;Transformers accelerate NLP research.&#92;&quot;,&#92;&quot;Model&#92;&quot;:&#92;&quot;B&#92;&quot;},{&#92;&quot;x&#92;&quot;:0.4825381935,&#92;&quot;y&#92;&quot;:0.0434194207,&#92;&quot;Label&#92;&quot;:&#92;&quot;tech&#92;&quot;,&#92;&quot;Text&#92;&quot;:&#92;&quot;Embeddings capture semantic meaning.&#92;&quot;,&#92;&quot;Model&#92;&quot;:&#92;&quot;B&#92;&quot;},{&#92;&quot;x&#92;&quot;:-0.1192430183,&#92;&quot;y&#92;&quot;:-0.4815807343,&#92;&quot;Label&#92;&quot;:&#92;&quot;finance&#92;&quot;,&#92;&quot;Text&#92;&quot;:&#92;&quot;Markets react to macroeconomic signals.&#92;&quot;,&#92;&quot;Model&#92;&quot;:&#92;&quot;B&#92;&quot;},{&#92;&quot;x&#92;&quot;:-0.2154194713,&#92;&quot;y&#92;&quot;:-0.2653786242,&#92;&quot;Label&#92;&quot;:&#92;&quot;finance&#92;&quot;,&#92;&quot;Text&#92;&quot;:&#92;&quot;Portfolio optimization reduces risk.&#92;&quot;,&#92;&quot;Model&#92;&quot;:&#92;&quot;B&#92;&quot;}]&quot;' data-total-rows='12' data-total-columns='5' data-max-columns='50' data-banner-text='&quot;&quot;' data-pagination='true' data-page-size='10' data-field-types='[[&quot;x&quot;, [&quot;number&quot;, &quot;float32&quot;]], [&quot;y&quot;, [&quot;number&quot;, &quot;float32&quot;]], [&quot;Label&quot;, [&quot;string&quot;, &quot;object&quot;]], [&quot;Text&quot;, [&quot;string&quot;, &quot;object&quot;]], [&quot;Model&quot;, [&quot;string&quot;, &quot;object&quot;]]]' data-show-filters='true' data-show-download='true' data-show-column-summaries='true' data-show-data-types='true' data-show-page-size-selector='true' data-show-column-explorer='true' data-show-chart-builder='true' data-row-headers='[]' data-has-stable-row-id='false' data-lazy='false' data-preload='false'></marimo-table></marimo-ui-element>"
          }
        }
      ],
      "console": []
    },
    {
      "id": "MMYg",
      "code_hash": "6277980b0963c9566a7a5a45a57f9683",
      "outputs": [
        {
          "type": "data",
          "data": {
            "application/vnd.vegalite.v5+json": "{\n  \"$schema\": \"https://vega.github.io/schema/vega-lite/v5.20.1.json\",\n  \"config\": {\n    \"view\": {\n      \"continuousHeight\": 300,\n      \"continuousWidth\": 300\n    }\n  },\n  \"data\": {\n    \"name\": \"data-76101e6e694d17c7a04949110b3d02bb\"\n  },\n  \"datasets\": {\n    \"data-76101e6e694d17c7a04949110b3d02bb\": [\n      {\n        \"Label\": \"tech\",\n        \"Model\": \"A\",\n        \"Text\": \"Transformers accelerate NLP research.\",\n        \"x\": 0.6063024401664734,\n        \"y\": -0.12735968828201294\n      },\n      {\n        \"Label\": \"tech\",\n        \"Model\": \"A\",\n        \"Text\": \"Embeddings capture semantic meaning.\",\n        \"x\": 0.687118649482727,\n        \"y\": 0.022140728309750557\n      },\n      {\n        \"Label\": \"finance\",\n        \"Model\": \"A\",\n        \"Text\": \"Markets react to macroeconomic signals.\",\n        \"x\": -0.176942840218544,\n        \"y\": 0.7726209759712219\n      },\n      {\n        \"Label\": \"finance\",\n        \"Model\": \"A\",\n        \"Text\": \"Portfolio optimization reduces risk.\",\n        \"x\": -0.48500099778175354,\n        \"y\": 0.09808605909347534\n      },\n      {\n        \"Label\": \"sports\",\n        \"Model\": \"A\",\n        \"Text\": \"The team improved defense and strategy.\",\n        \"x\": -0.282910019159317,\n        \"y\": -0.31279656291007996\n      },\n      {\n        \"Label\": \"sports\",\n        \"Model\": \"A\",\n        \"Text\": \"Training intensity boosts performance.\",\n        \"x\": -0.3485672175884247,\n        \"y\": -0.4526914656162262\n      },\n      {\n        \"Label\": \"tech\",\n        \"Model\": \"B\",\n        \"Text\": \"Transformers accelerate NLP research.\",\n        \"x\": 0.41306817531585693,\n        \"y\": 0.08841180056333542\n      },\n      {\n        \"Label\": \"tech\",\n        \"Model\": \"B\",\n        \"Text\": \"Embeddings capture semantic meaning.\",\n        \"x\": 0.4825381934642792,\n        \"y\": 0.04341942071914673\n      },\n      {\n        \"Label\": \"finance\",\n        \"Model\": \"B\",\n        \"Text\": \"Markets react to macroeconomic signals.\",\n        \"x\": -0.11924301832914352,\n        \"y\": -0.4815807342529297\n      },\n      {\n        \"Label\": \"finance\",\n        \"Model\": \"B\",\n        \"Text\": \"Portfolio optimization reduces risk.\",\n        \"x\": -0.2154194712638855,\n        \"y\": -0.2653786242008209\n      },\n      {\n        \"Label\": \"sports\",\n        \"Model\": \"B\",\n        \"Text\": \"The team improved defense and strategy.\",\n        \"x\": -0.3985911011695862,\n        \"y\": 0.30560973286628723\n      },\n      {\n        \"Label\": \"sports\",\n        \"Model\": \"B\",\n        \"Text\": \"Training intensity boosts performance.\",\n        \"x\": -0.16235291957855225,\n        \"y\": 0.30951839685440063\n      }\n    ]\n  },\n  \"hconcat\": [\n    {\n      \"encoding\": {\n        \"color\": {\n          \"field\": \"Label\",\n          \"legend\": {\n            \"title\": \"Label\"\n          },\n          \"scale\": {\n            \"domain\": [\n              \"finance\",\n              \"sports\",\n              \"tech\"\n            ],\n            \"scheme\": \"category10\"\n          },\n          \"type\": \"nominal\"\n        },\n        \"tooltip\": [\n          {\n            \"field\": \"Model\",\n            \"type\": \"nominal\"\n          },\n          {\n            \"field\": \"Label\",\n            \"type\": \"nominal\"\n          },\n          {\n            \"field\": \"Text\",\n            \"type\": \"nominal\"\n          }\n        ],\n        \"x\": {\n          \"field\": \"x\",\n          \"title\": \"PCA 1\",\n          \"type\": \"quantitative\"\n        },\n        \"y\": {\n          \"field\": \"y\",\n          \"title\": \"PCA 2\",\n          \"type\": \"quantitative\"\n        }\n      },\n      \"height\": 300,\n      \"mark\": {\n        \"size\": 80,\n        \"type\": \"circle\"\n      },\n      \"title\": \"Model A\",\n      \"transform\": [\n        {\n          \"filter\": \"(datum.Model === 'A')\"\n        }\n      ],\n      \"width\": 350\n    },\n    {\n      \"encoding\": {\n        \"color\": {\n          \"field\": \"Label\",\n          \"legend\": {\n            \"title\": \"Label\"\n          },\n          \"scale\": {\n            \"domain\": [\n              \"finance\",\n              \"sports\",\n              \"tech\"\n            ],\n            \"scheme\": \"category10\"\n          },\n          \"type\": \"nominal\"\n        },\n        \"tooltip\": [\n          {\n            \"field\": \"Model\",\n            \"type\": \"nominal\"\n          },\n          {\n            \"field\": \"Label\",\n            \"type\": \"nominal\"\n          },\n          {\n            \"field\": \"Text\",\n            \"type\": \"nominal\"\n          }\n        ],\n        \"x\": {\n          \"field\": \"x\",\n          \"title\": \"PCA 1\",\n          \"type\": \"quantitative\"\n        },\n        \"y\": {\n          \"field\": \"y\",\n          \"title\": \"PCA 2\",\n          \"type\": \"quantitative\"\n        }\n      },\n      \"height\": 300,\n      \"mark\": {\n        \"size\": 80,\n        \"type\": \"circle\"\n      },\n      \"title\": \"Model B\",\n      \"transform\": [\n        {\n          \"filter\": \"(datum.Model === 'B')\"\n        }\n      ],\n      \"width\": 350\n    }\n  ],\n  \"resolve\": {\n    \"scale\": {\n      \"color\": \"shared\"\n    }\n  },\n  \"usermeta\": {\n    \"embedOptions\": {}\n  }\n}"
          }
        }
      ],
      "console": []
    },
    {
      "id": "mKms",
      "code_hash": "d104aec7c8d147af28fd2e1182ca8739",
      "outputs": [
        {
          "type": "data",
          "data": {
            "text/html": "<div style='display: flex;flex: 1;flex-direction: column;justify-content: flex-start;align-items: normal;flex-wrap: nowrap;gap: 0.5rem'><span class=\"markdown prose dark:prose-invert\"><span class=\"paragraph\">Using <strong>k = 4</strong> (requested 10, max valid 4 for n=6).</span></span><marimo-ui-element object-id='mKms-0' random-id='9cfd8194-75dc-369d-b218-e50f3ee053d0'><marimo-dataframe data-initial-value='{&quot;transforms&quot;: []}' data-label='null' data-columns='[[&quot;Point&quot;, &quot;integer&quot;, &quot;int64&quot;], [&quot;Overlap@4&quot;, &quot;number&quot;, &quot;float64&quot;]]' data-dataframe-name='&quot;df&quot;' data-total='6' data-page-size='5'></marimo-dataframe></marimo-ui-element><span class=\"markdown prose dark:prose-invert\"><span class=\"paragraph\"><strong>Mean Overlap@4:</strong> 0.958</span></span></div>"
          }
        }
      ],
      "console": []
    },
    {
      "id": "QujE",
      "code_hash": "c8fb0065db1422767171d7dbfdabb009",
      "outputs": [
        {
          "type": "data",
          "data": {
            "text/html": "<marimo-ui-element object-id='QujE-0' random-id='4154fed6-e90d-8aa9-61b6-3408bafca7d3'><marimo-table data-initial-value='[]' data-label='null' data-data='&quot;[{&#92;&quot;Label&#92;&quot;:&#92;&quot;finance&#92;&quot;,&#92;&quot;CentroidShift(A_vs_B)&#92;&quot;:0.8252208233},{&#92;&quot;Label&#92;&quot;:&#92;&quot;sports&#92;&quot;,&#92;&quot;CentroidShift(A_vs_B)&#92;&quot;:0.6912083626},{&#92;&quot;Label&#92;&quot;:&#92;&quot;tech&#92;&quot;,&#92;&quot;CentroidShift(A_vs_B)&#92;&quot;:0.2315433472}]&quot;' data-total-rows='3' data-total-columns='2' data-max-columns='50' data-banner-text='&quot;&quot;' data-pagination='true' data-page-size='10' data-field-types='[[&quot;Label&quot;, [&quot;string&quot;, &quot;object&quot;]], [&quot;CentroidShift(A_vs_B)&quot;, [&quot;number&quot;, &quot;float64&quot;]]]' data-show-filters='true' data-show-download='true' data-show-column-summaries='false' data-show-data-types='true' data-show-page-size-selector='false' data-show-column-explorer='true' data-show-chart-builder='true' data-row-headers='[]' data-has-stable-row-id='false' data-lazy='false' data-preload='false'></marimo-table></marimo-ui-element>"
          }
        }
      ],
      "console": []
    },
    {
      "id": "qKaQ",
      "code_hash": "58e428d87ab3e6f9b7671b98dc9ea902",
      "outputs": [
        {
          "type": "data",
          "data": {
            "text/html": "<marimo-ui-element object-id='qKaQ-0' random-id='946059c4-1378-de92-dc69-03ee087c1901'><marimo-table data-initial-value='[]' data-label='null' data-data='&quot;[{&#92;&quot;Spearman_rho&#92;&quot;:0.6964285714,&#92;&quot;p_value&#92;&quot;:0.0039211905}]&quot;' data-total-rows='1' data-total-columns='2' data-max-columns='50' data-banner-text='&quot;&quot;' data-pagination='true' data-page-size='10' data-field-types='[[&quot;Spearman_rho&quot;, [&quot;number&quot;, &quot;float64&quot;]], [&quot;p_value&quot;, [&quot;number&quot;, &quot;float64&quot;]]]' data-show-filters='true' data-show-download='true' data-show-column-summaries='false' data-show-data-types='true' data-show-page-size-selector='false' data-show-column-explorer='true' data-show-chart-builder='true' data-row-headers='[]' data-has-stable-row-id='false' data-lazy='false' data-preload='false'></marimo-table></marimo-ui-element>"
          }
        }
      ],
      "console": []
    },
    {
      "id": "jciF",
      "code_hash": "67173c73eb5ec3a24338c3c780cc3996",
      "outputs": [
        {
          "type": "data",
          "data": {
            "text/html": "<marimo-ui-element object-id='jciF-0' random-id='981df3cf-9cf2-510b-eb81-13632f355759'><marimo-table data-initial-value='[]' data-label='null' data-data='&quot;[{&#92;&quot;Label&#92;&quot;:&#92;&quot;finance&#92;&quot;,&#92;&quot;Size_A&#92;&quot;:2,&#92;&quot;MeanLocalDensity_A&#92;&quot;:1.0329130813,&#92;&quot;Size_B&#92;&quot;:2,&#92;&quot;MeanLocalDensity_B&#92;&quot;:0.733437039},{&#92;&quot;Label&#92;&quot;:&#92;&quot;sports&#92;&quot;,&#92;&quot;Size_A&#92;&quot;:2,&#92;&quot;MeanLocalDensity_A&#92;&quot;:0.9294815138,&#92;&quot;Size_B&#92;&quot;:2,&#92;&quot;MeanLocalDensity_B&#92;&quot;:0.7347690389},{&#92;&quot;Label&#92;&quot;:&#92;&quot;tech&#92;&quot;,&#92;&quot;Size_A&#92;&quot;:2,&#92;&quot;MeanLocalDensity_A&#92;&quot;:1.0886453837,&#92;&quot;Size_B&#92;&quot;:2,&#92;&quot;MeanLocalDensity_B&#92;&quot;:0.7670684904}]&quot;' data-total-rows='3' data-total-columns='5' data-max-columns='50' data-banner-text='&quot;&quot;' data-pagination='true' data-page-size='10' data-field-types='[[&quot;Label&quot;, [&quot;string&quot;, &quot;object&quot;]], [&quot;Size_A&quot;, [&quot;integer&quot;, &quot;int64&quot;]], [&quot;MeanLocalDensity_A&quot;, [&quot;number&quot;, &quot;float64&quot;]], [&quot;Size_B&quot;, [&quot;integer&quot;, &quot;int64&quot;]], [&quot;MeanLocalDensity_B&quot;, [&quot;number&quot;, &quot;float64&quot;]]]' data-show-filters='true' data-show-download='true' data-show-column-summaries='false' data-show-data-types='true' data-show-page-size-selector='false' data-show-column-explorer='true' data-show-chart-builder='true' data-row-headers='[]' data-has-stable-row-id='false' data-lazy='false' data-preload='false'></marimo-table></marimo-ui-element>"
          }
        }
      ],
      "console": []
    },
    {
      "id": "UgHZ",
      "code_hash": "9fe1de422f05a10eb5e557883c1e933c",
      "outputs": [
        {
          "type": "data",
          "data": {
            "text/html": "<div style='display: flex;flex: 1;flex-direction: column;justify-content: flex-start;align-items: normal;flex-wrap: nowrap;gap: 0.5rem'><span class=\"markdown prose dark:prose-invert\"><h3 id=\"summary\">Summary</h3>\n<ul>\n<li>Neighborhood agreement (mean Overlap@10): <strong>0.958</strong></li>\n<li>Centroid shift (A vs B): min=0.232, max=0.825</li>\n<li>Global structure similarity (Spearman on pairwise distances): <strong>rho=0.696</strong> (p=3.92e-03)</li>\n</ul></span><marimo-ui-element object-id='UgHZ-5' random-id='c832bdab-01f7-0f0f-e623-313a85531f6d'><marimo-tabs data-initial-value='&quot;&quot;' data-label='null' data-tabs='[&quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;Scatter A/B&lt;/span&gt;&lt;/span&gt;&quot;, &quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;Overlap@k (head)&lt;/span&gt;&lt;/span&gt;&quot;, &quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;Centroid shift&lt;/span&gt;&lt;/span&gt;&quot;, &quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;Label summary&lt;/span&gt;&lt;/span&gt;&quot;]'><div data-kind='tab'><marimo-ui-element object-id='UgHZ-1' random-id='6b1b3ebc-a00b-0f82-e6b5-c833293342b8'><marimo-vega data-initial-value='{}' data-label='null' data-spec='{&quot;config&quot;: {&quot;view&quot;: {&quot;continuousWidth&quot;: 300, &quot;continuousHeight&quot;: 300}}, &quot;hconcat&quot;: [{&quot;data&quot;: {&quot;url&quot;: &quot;./@file/3330-23984-uV505i4s.arrow&quot;, &quot;format&quot;: {&quot;type&quot;: &quot;arrow&quot;}}, &quot;mark&quot;: {&quot;type&quot;: &quot;circle&quot;, &quot;size&quot;: 80}, &quot;encoding&quot;: {&quot;color&quot;: {&quot;field&quot;: &quot;Label&quot;, &quot;scale&quot;: {&quot;domain&quot;: [&quot;finance&quot;, &quot;sports&quot;, &quot;tech&quot;]}, &quot;type&quot;: &quot;nominal&quot;}, &quot;tooltip&quot;: [{&quot;field&quot;: &quot;Label&quot;, &quot;type&quot;: &quot;nominal&quot;}, {&quot;field&quot;: &quot;Text&quot;, &quot;type&quot;: &quot;nominal&quot;}], &quot;x&quot;: {&quot;field&quot;: &quot;x&quot;, &quot;type&quot;: &quot;quantitative&quot;}, &quot;y&quot;: {&quot;field&quot;: &quot;y&quot;, &quot;type&quot;: &quot;quantitative&quot;}}, &quot;height&quot;: 320, &quot;title&quot;: &quot;A&quot;, &quot;width&quot;: 360}, {&quot;data&quot;: {&quot;url&quot;: &quot;./@file/3330-23984-S5opwdBB.arrow&quot;, &quot;format&quot;: {&quot;type&quot;: &quot;arrow&quot;}}, &quot;mark&quot;: {&quot;type&quot;: &quot;circle&quot;, &quot;size&quot;: 80}, &quot;encoding&quot;: {&quot;color&quot;: {&quot;field&quot;: &quot;Label&quot;, &quot;scale&quot;: {&quot;domain&quot;: [&quot;finance&quot;, &quot;sports&quot;, &quot;tech&quot;]}, &quot;type&quot;: &quot;nominal&quot;}, &quot;tooltip&quot;: [{&quot;field&quot;: &quot;Label&quot;, &quot;type&quot;: &quot;nominal&quot;}, {&quot;field&quot;: &quot;Text&quot;, &quot;type&quot;: &quot;nominal&quot;}], &quot;x&quot;: {&quot;field&quot;: &quot;x&quot;, &quot;type&quot;: &quot;quantitative&quot;}, &quot;y&quot;: {&quot;field&quot;: &quot;y&quot;, &quot;type&quot;: &quot;quantitative&quot;}}, &quot;height&quot;: 320, &quot;title&quot;: &quot;B&quot;, &quot;width&quot;: 360}], &quot;&#36;schema&quot;: &quot;https://vega.github.io/schema/vega-lite/v5.20.1.json&quot;}' data-chart-selection='true' data-field-selection='true'></marimo-vega></marimo-ui-element></div><div data-kind='tab'><marimo-ui-element object-id='UgHZ-2' random-id='c4ee4a96-14f8-5216-b064-a28ffee089d5'><marimo-table data-initial-value='[]' data-label='null' data-data='&quot;[{&#92;&quot;_marimo_row_id&#92;&quot;:0,&#92;&quot;Point&#92;&quot;:0,&#92;&quot;Overlap@10&#92;&quot;:1.0},{&#92;&quot;_marimo_row_id&#92;&quot;:1,&#92;&quot;Point&#92;&quot;:1,&#92;&quot;Overlap@10&#92;&quot;:1.0},{&#92;&quot;_marimo_row_id&#92;&quot;:2,&#92;&quot;Point&#92;&quot;:2,&#92;&quot;Overlap@10&#92;&quot;:1.0},{&#92;&quot;_marimo_row_id&#92;&quot;:3,&#92;&quot;Point&#92;&quot;:3,&#92;&quot;Overlap@10&#92;&quot;:0.75},{&#92;&quot;_marimo_row_id&#92;&quot;:4,&#92;&quot;Point&#92;&quot;:4,&#92;&quot;Overlap@10&#92;&quot;:1.0},{&#92;&quot;_marimo_row_id&#92;&quot;:5,&#92;&quot;Point&#92;&quot;:5,&#92;&quot;Overlap@10&#92;&quot;:1.0}]&quot;' data-total-rows='6' data-total-columns='2' data-max-columns='50' data-banner-text='&quot;&quot;' data-pagination='false' data-page-size='10' data-field-types='[[&quot;Point&quot;, [&quot;integer&quot;, &quot;int64&quot;]], [&quot;Overlap@10&quot;, [&quot;number&quot;, &quot;float64&quot;]]]' data-selection='&quot;multi&quot;' data-show-filters='true' data-show-download='true' data-show-column-summaries='false' data-show-data-types='true' data-show-page-size-selector='true' data-show-column-explorer='true' data-show-chart-builder='true' data-row-headers='[]' data-has-stable-row-id='true' data-lazy='false' data-preload='false'></marimo-table></marimo-ui-element></div><div data-kind='tab'><marimo-ui-element object-id='UgHZ-3' random-id='e96b8b80-7ec2-d706-8350-5d4903e0808d'><marimo-table data-initial-value='[]' data-label='null' data-data='&quot;[{&#92;&quot;_marimo_row_id&#92;&quot;:0,&#92;&quot;Label&#92;&quot;:&#92;&quot;finance&#92;&quot;,&#92;&quot;CentroidShift(A_vs_B)&#92;&quot;:0.8252208233},{&#92;&quot;_marimo_row_id&#92;&quot;:1,&#92;&quot;Label&#92;&quot;:&#92;&quot;sports&#92;&quot;,&#92;&quot;CentroidShift(A_vs_B)&#92;&quot;:0.6912083626},{&#92;&quot;_marimo_row_id&#92;&quot;:2,&#92;&quot;Label&#92;&quot;:&#92;&quot;tech&#92;&quot;,&#92;&quot;CentroidShift(A_vs_B)&#92;&quot;:0.2315433472}]&quot;' data-total-rows='3' data-total-columns='2' data-max-columns='50' data-banner-text='&quot;&quot;' data-pagination='false' data-page-size='10' data-field-types='[[&quot;Label&quot;, [&quot;string&quot;, &quot;object&quot;]], [&quot;CentroidShift(A_vs_B)&quot;, [&quot;number&quot;, &quot;float64&quot;]]]' data-selection='&quot;multi&quot;' data-show-filters='true' data-show-download='true' data-show-column-summaries='false' data-show-data-types='true' data-show-page-size-selector='false' data-show-column-explorer='true' data-show-chart-builder='true' data-row-headers='[]' data-has-stable-row-id='true' data-lazy='false' data-preload='false'></marimo-table></marimo-ui-element></div><div data-kind='tab'><marimo-ui-element object-id='UgHZ-4' random-id='3cc6348b-bf33-391d-0092-fbd5a3e38450'><marimo-table data-initial-value='[]' data-label='null' data-data='&quot;[{&#92;&quot;_marimo_row_id&#92;&quot;:0,&#92;&quot;Label&#92;&quot;:&#92;&quot;finance&#92;&quot;,&#92;&quot;Size_A&#92;&quot;:2,&#92;&quot;MeanLocalDensity_A&#92;&quot;:1.0329130813,&#92;&quot;Size_B&#92;&quot;:2,&#92;&quot;MeanLocalDensity_B&#92;&quot;:0.733437039},{&#92;&quot;_marimo_row_id&#92;&quot;:1,&#92;&quot;Label&#92;&quot;:&#92;&quot;sports&#92;&quot;,&#92;&quot;Size_A&#92;&quot;:2,&#92;&quot;MeanLocalDensity_A&#92;&quot;:0.9294815138,&#92;&quot;Size_B&#92;&quot;:2,&#92;&quot;MeanLocalDensity_B&#92;&quot;:0.7347690389},{&#92;&quot;_marimo_row_id&#92;&quot;:2,&#92;&quot;Label&#92;&quot;:&#92;&quot;tech&#92;&quot;,&#92;&quot;Size_A&#92;&quot;:2,&#92;&quot;MeanLocalDensity_A&#92;&quot;:1.0886453837,&#92;&quot;Size_B&#92;&quot;:2,&#92;&quot;MeanLocalDensity_B&#92;&quot;:0.7670684904}]&quot;' data-total-rows='3' data-total-columns='5' data-max-columns='50' data-banner-text='&quot;&quot;' data-pagination='false' data-page-size='10' data-field-types='[[&quot;Label&quot;, [&quot;string&quot;, &quot;object&quot;]], [&quot;Size_A&quot;, [&quot;integer&quot;, &quot;int64&quot;]], [&quot;MeanLocalDensity_A&quot;, [&quot;number&quot;, &quot;float64&quot;]], [&quot;Size_B&quot;, [&quot;integer&quot;, &quot;int64&quot;]], [&quot;MeanLocalDensity_B&quot;, [&quot;number&quot;, &quot;float64&quot;]]]' data-selection='&quot;multi&quot;' data-show-filters='true' data-show-download='true' data-show-column-summaries='false' data-show-data-types='true' data-show-page-size-selector='false' data-show-column-explorer='true' data-show-chart-builder='true' data-row-headers='[]' data-has-stable-row-id='true' data-lazy='false' data-preload='false'></marimo-table></marimo-ui-element></div></marimo-tabs></marimo-ui-element><marimo-ui-element object-id='UgHZ-0' random-id='8026a908-a254-3a84-f05e-8b97cd7d5d24'><marimo-button data-initial-value='0' data-label='&quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;click here&lt;/span&gt;&lt;/span&gt;&quot;' data-kind='&quot;neutral&quot;' data-disabled='false' data-full-width='false'></marimo-button></marimo-ui-element></div>"
          }
        }
      ],
      "console": []
    },
    {
      "id": "mxDr",
      "code_hash": null,
      "outputs": [],
      "console": []
    }
  ]
}