46573ccc8e
- Implement dibujar.py for drawing functionality with base64 and PIL image rendering. - Create dibujar_retropaint.py for retro painting features using the Paint widget. - Develop draw_data.py to visualize data with Scatter and Bar widgets, including lazy installation of dependencies. - Add layout configuration for graphical representations in layouts/Graficos_plotly.grid.json. - Enhance shell interaction with mejora_shell_mowidget.py, allowing local library imports and script execution. - Introduce primera_prueba_shell_mowidget.py for testing shell commands and user input handling. - Create prueba_de_embeddings.py for embedding visualizations using Sentence Transformers and dimensionality reduction techniques. - Implement pygwalker_visualizaciones.py for interactive data exploration and visualization using Pygwalker. - Add a sample bash script for user input and ping functionality in scripts/mi_script.sh.
170 lines
31 KiB
JSON
170 lines
31 KiB
JSON
{
|
|
"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 & 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='"<span class=\"markdown prose dark:prose-invert\"><span class=\"paragraph\">Use sample dataset (tiny demo)</span></span>"' 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='"Label,Text\ntech,Transformers accelerate NLP research.\ntech,Embeddings capture semantic meaning.\nfinance,Markets react to macroeconomic signals.\nfinance,Portfolio optimization reduces risk.\nsports,The team improved defense and strategy.\nsports,Training intensity boosts performance.\n"' data-label='"<span class=\"markdown prose dark:prose-invert\"><span class=\"paragraph\">CSV data (columns: Label,Text)</span></span>"' data-placeholder='""' 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='["sentence-transformers/all-MiniLM-L6-v2"]' data-label='"<span class=\"markdown prose dark:prose-invert\"><span class=\"paragraph\">Model A</span></span>"' data-options='["sentence-transformers/all-MiniLM-L6-v2", "thenlper/gte-small", "BAAI/bge-small-en-v1.5", "sentence-transformers/paraphrase-MiniLM-L6-v2"]' 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='["BAAI/bge-small-en-v1.5"]' data-label='"<span class=\"markdown prose dark:prose-invert\"><span class=\"paragraph\">Model B</span></span>"' data-options='["sentence-transformers/all-MiniLM-L6-v2", "thenlper/gte-small", "BAAI/bge-small-en-v1.5", "sentence-transformers/paraphrase-MiniLM-L6-v2"]' 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='"PCA"' data-label='"<span class=\"markdown prose dark:prose-invert\"><span class=\"paragraph\">Dimensionality reduction</span></span>"' data-options='["PCA", "TSNE"]' 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='"<span class=\"markdown prose dark:prose-invert\"><span class=\"paragraph\">k for neighborhood agreement</span></span>"' data-start='3' data-stop='20' data-steps='[]' data-debounce='false' data-disabled='false' data-orientation='"horizontal"' 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='"[{\"Label\":\"tech\",\"Text\":\"Transformers accelerate NLP research.\"},{\"Label\":\"tech\",\"Text\":\"Embeddings capture semantic meaning.\"},{\"Label\":\"finance\",\"Text\":\"Markets react to macroeconomic signals.\"},{\"Label\":\"finance\",\"Text\":\"Portfolio optimization reduces risk.\"},{\"Label\":\"sports\",\"Text\":\"The team improved defense and strategy.\"},{\"Label\":\"sports\",\"Text\":\"Training intensity boosts performance.\"}]"' data-total-rows='6' data-total-columns='2' data-max-columns='50' data-banner-text='""' data-pagination='true' data-page-size='10' data-field-types='[["Label", ["string", "object"]], ["Text", ["string", "object"]]]' 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='"[{\"x\":0.6063024402,\"y\":-0.1273596883,\"Label\":\"tech\",\"Text\":\"Transformers accelerate NLP research.\",\"Model\":\"A\"},{\"x\":0.6871186495,\"y\":0.0221407283,\"Label\":\"tech\",\"Text\":\"Embeddings capture semantic meaning.\",\"Model\":\"A\"},{\"x\":-0.1769428402,\"y\":0.772620976,\"Label\":\"finance\",\"Text\":\"Markets react to macroeconomic signals.\",\"Model\":\"A\"},{\"x\":-0.4850009978,\"y\":0.0980860591,\"Label\":\"finance\",\"Text\":\"Portfolio optimization reduces risk.\",\"Model\":\"A\"},{\"x\":-0.2829100192,\"y\":-0.3127965629,\"Label\":\"sports\",\"Text\":\"The team improved defense and strategy.\",\"Model\":\"A\"},{\"x\":-0.3485672176,\"y\":-0.4526914656,\"Label\":\"sports\",\"Text\":\"Training intensity boosts performance.\",\"Model\":\"A\"},{\"x\":0.4130681753,\"y\":0.0884118006,\"Label\":\"tech\",\"Text\":\"Transformers accelerate NLP research.\",\"Model\":\"B\"},{\"x\":0.4825381935,\"y\":0.0434194207,\"Label\":\"tech\",\"Text\":\"Embeddings capture semantic meaning.\",\"Model\":\"B\"},{\"x\":-0.1192430183,\"y\":-0.4815807343,\"Label\":\"finance\",\"Text\":\"Markets react to macroeconomic signals.\",\"Model\":\"B\"},{\"x\":-0.2154194713,\"y\":-0.2653786242,\"Label\":\"finance\",\"Text\":\"Portfolio optimization reduces risk.\",\"Model\":\"B\"}]"' data-total-rows='12' data-total-columns='5' data-max-columns='50' data-banner-text='""' data-pagination='true' data-page-size='10' data-field-types='[["x", ["number", "float32"]], ["y", ["number", "float32"]], ["Label", ["string", "object"]], ["Text", ["string", "object"]], ["Model", ["string", "object"]]]' 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='{"transforms": []}' data-label='null' data-columns='[["Point", "integer", "int64"], ["Overlap@4", "number", "float64"]]' data-dataframe-name='"df"' 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='"[{\"Label\":\"finance\",\"CentroidShift(A_vs_B)\":0.8252208233},{\"Label\":\"sports\",\"CentroidShift(A_vs_B)\":0.6912083626},{\"Label\":\"tech\",\"CentroidShift(A_vs_B)\":0.2315433472}]"' data-total-rows='3' data-total-columns='2' data-max-columns='50' data-banner-text='""' data-pagination='true' data-page-size='10' data-field-types='[["Label", ["string", "object"]], ["CentroidShift(A_vs_B)", ["number", "float64"]]]' 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='"[{\"Spearman_rho\":0.6964285714,\"p_value\":0.0039211905}]"' data-total-rows='1' data-total-columns='2' data-max-columns='50' data-banner-text='""' data-pagination='true' data-page-size='10' data-field-types='[["Spearman_rho", ["number", "float64"]], ["p_value", ["number", "float64"]]]' 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='"[{\"Label\":\"finance\",\"Size_A\":2,\"MeanLocalDensity_A\":1.0329130813,\"Size_B\":2,\"MeanLocalDensity_B\":0.733437039},{\"Label\":\"sports\",\"Size_A\":2,\"MeanLocalDensity_A\":0.9294815138,\"Size_B\":2,\"MeanLocalDensity_B\":0.7347690389},{\"Label\":\"tech\",\"Size_A\":2,\"MeanLocalDensity_A\":1.0886453837,\"Size_B\":2,\"MeanLocalDensity_B\":0.7670684904}]"' data-total-rows='3' data-total-columns='5' data-max-columns='50' data-banner-text='""' data-pagination='true' data-page-size='10' data-field-types='[["Label", ["string", "object"]], ["Size_A", ["integer", "int64"]], ["MeanLocalDensity_A", ["number", "float64"]], ["Size_B", ["integer", "int64"]], ["MeanLocalDensity_B", ["number", "float64"]]]' 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='""' data-label='null' data-tabs='["<span class=\"markdown prose dark:prose-invert\"><span class=\"paragraph\">Scatter A/B</span></span>", "<span class=\"markdown prose dark:prose-invert\"><span class=\"paragraph\">Overlap@k (head)</span></span>", "<span class=\"markdown prose dark:prose-invert\"><span class=\"paragraph\">Centroid shift</span></span>", "<span class=\"markdown prose dark:prose-invert\"><span class=\"paragraph\">Label summary</span></span>"]'><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='{"config": {"view": {"continuousWidth": 300, "continuousHeight": 300}}, "hconcat": [{"data": {"url": "./@file/3330-23984-uV505i4s.arrow", "format": {"type": "arrow"}}, "mark": {"type": "circle", "size": 80}, "encoding": {"color": {"field": "Label", "scale": {"domain": ["finance", "sports", "tech"]}, "type": "nominal"}, "tooltip": [{"field": "Label", "type": "nominal"}, {"field": "Text", "type": "nominal"}], "x": {"field": "x", "type": "quantitative"}, "y": {"field": "y", "type": "quantitative"}}, "height": 320, "title": "A", "width": 360}, {"data": {"url": "./@file/3330-23984-S5opwdBB.arrow", "format": {"type": "arrow"}}, "mark": {"type": "circle", "size": 80}, "encoding": {"color": {"field": "Label", "scale": {"domain": ["finance", "sports", "tech"]}, "type": "nominal"}, "tooltip": [{"field": "Label", "type": "nominal"}, {"field": "Text", "type": "nominal"}], "x": {"field": "x", "type": "quantitative"}, "y": {"field": "y", "type": "quantitative"}}, "height": 320, "title": "B", "width": 360}], "$schema": "https://vega.github.io/schema/vega-lite/v5.20.1.json"}' 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='"[{\"_marimo_row_id\":0,\"Point\":0,\"Overlap@10\":1.0},{\"_marimo_row_id\":1,\"Point\":1,\"Overlap@10\":1.0},{\"_marimo_row_id\":2,\"Point\":2,\"Overlap@10\":1.0},{\"_marimo_row_id\":3,\"Point\":3,\"Overlap@10\":0.75},{\"_marimo_row_id\":4,\"Point\":4,\"Overlap@10\":1.0},{\"_marimo_row_id\":5,\"Point\":5,\"Overlap@10\":1.0}]"' data-total-rows='6' data-total-columns='2' data-max-columns='50' data-banner-text='""' data-pagination='false' data-page-size='10' data-field-types='[["Point", ["integer", "int64"]], ["Overlap@10", ["number", "float64"]]]' data-selection='"multi"' 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='"[{\"_marimo_row_id\":0,\"Label\":\"finance\",\"CentroidShift(A_vs_B)\":0.8252208233},{\"_marimo_row_id\":1,\"Label\":\"sports\",\"CentroidShift(A_vs_B)\":0.6912083626},{\"_marimo_row_id\":2,\"Label\":\"tech\",\"CentroidShift(A_vs_B)\":0.2315433472}]"' data-total-rows='3' data-total-columns='2' data-max-columns='50' data-banner-text='""' data-pagination='false' data-page-size='10' data-field-types='[["Label", ["string", "object"]], ["CentroidShift(A_vs_B)", ["number", "float64"]]]' data-selection='"multi"' 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='"[{\"_marimo_row_id\":0,\"Label\":\"finance\",\"Size_A\":2,\"MeanLocalDensity_A\":1.0329130813,\"Size_B\":2,\"MeanLocalDensity_B\":0.733437039},{\"_marimo_row_id\":1,\"Label\":\"sports\",\"Size_A\":2,\"MeanLocalDensity_A\":0.9294815138,\"Size_B\":2,\"MeanLocalDensity_B\":0.7347690389},{\"_marimo_row_id\":2,\"Label\":\"tech\",\"Size_A\":2,\"MeanLocalDensity_A\":1.0886453837,\"Size_B\":2,\"MeanLocalDensity_B\":0.7670684904}]"' data-total-rows='3' data-total-columns='5' data-max-columns='50' data-banner-text='""' data-pagination='false' data-page-size='10' data-field-types='[["Label", ["string", "object"]], ["Size_A", ["integer", "int64"]], ["MeanLocalDensity_A", ["number", "float64"]], ["Size_B", ["integer", "int64"]], ["MeanLocalDensity_B", ["number", "float64"]]]' data-selection='"multi"' 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='"<span class=\"markdown prose dark:prose-invert\"><span class=\"paragraph\">click here</span></span>"' data-kind='"neutral"' data-disabled='false' data-full-width='false'></marimo-button></marimo-ui-element></div>"
|
|
}
|
|
}
|
|
],
|
|
"console": []
|
|
},
|
|
{
|
|
"id": "mxDr",
|
|
"code_hash": null,
|
|
"outputs": [],
|
|
"console": []
|
|
}
|
|
]
|
|
} |