{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Crawling from paperswithcode.com\n", "\n", "[API Documentation](https://paperswithcode.com/api/v1/docs/)" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/mnt/nvme01/.venv/lib/python3.11/site-packages/umap/distances.py:1063: NumbaDeprecationWarning: The 'nopython' keyword argument was not supplied to the 'numba.jit' decorator. The implicit default value for this argument is currently False, but it will be changed to True in Numba 0.59.0. See https://numba.readthedocs.io/en/stable/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit for details.\n", " @numba.jit()\n", "/mnt/nvme01/.venv/lib/python3.11/site-packages/umap/distances.py:1071: NumbaDeprecationWarning: The 'nopython' keyword argument was not supplied to the 'numba.jit' decorator. The implicit default value for this argument is currently False, but it will be changed to True in Numba 0.59.0. See https://numba.readthedocs.io/en/stable/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit for details.\n", " @numba.jit()\n", "/mnt/nvme01/.venv/lib/python3.11/site-packages/umap/distances.py:1086: NumbaDeprecationWarning: The 'nopython' keyword argument was not supplied to the 'numba.jit' decorator. The implicit default value for this argument is currently False, but it will be changed to True in Numba 0.59.0. See https://numba.readthedocs.io/en/stable/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit for details.\n", " @numba.jit()\n", "/mnt/nvme01/.venv/lib/python3.11/site-packages/umap/umap_.py:660: NumbaDeprecationWarning: The 'nopython' keyword argument was not supplied to the 'numba.jit' decorator. The implicit default value for this argument is currently False, but it will be changed to True in Numba 0.59.0. See https://numba.readthedocs.io/en/stable/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit for details.\n", " @numba.jit()\n", "2023-07-31 14:09:33.776661: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.\n", "To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.\n", "2023-07-31 14:09:34.665770: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT\n" ] } ], "source": [ "import pandas as pd\n", "import requests\n", "from tqdm.notebook import trange, tqdm\n", "import plotly.express as px\n", "import uuid\n", "from sentence_transformers import SentenceTransformer\n", "from umap import UMAP\n", "from sklearn.model_selection import train_test_split\n", "import plotly.express as px" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# RUN ONLY IF YOU DONT HAVE THE CORRESPONDING JSON FILES AT HAND - it takes around 2 hours to run\n", "\n", "ITEMS_PER_PAGE = 100\n", "\n", "# Get all areas\n", "print(\"Getting all areas...\")\n", "areas = requests.get(\"https://paperswithcode.com/api/v1/areas\").json()\n", "areas = pd.DataFrame(areas[\"results\"])\n", "print(\"Done.\")\n", "\n", "# Get all tasks from all areas and write them to the datafile\n", "print(\"Getting all tasks...\")\n", "# Make a new column tasks\n", "areas[\"tasks\"] = areas.id.apply(lambda x: [])\n", "page = 1\n", "for area_id in tqdm(areas.id):\n", " # Make a first request to get the count\n", " count = requests.get(f\"https://paperswithcode.com/api/v1/areas/{area_id}/tasks?items_per_page=1\").json()[\"count\"]\n", " print(f\"Getting tasks from area {area_id}. Got {count} tasks...\")\n", " for page in trange(1, int(count / ITEMS_PER_PAGE) + 2):\n", " try:\n", " response = requests.get(f\"https://paperswithcode.com/api/v1/areas/{area_id}/tasks?items_per_page={ITEMS_PER_PAGE}&page={page}\").json()\n", " # Append the results to a list in a new tasks column\n", " if response[\"results\"] is not None:\n", " areas.loc[areas.id == area_id, \"tasks\"] = areas.loc[areas.id == area_id, \"tasks\"].apply(lambda x: x + response[\"results\"])\n", " else:\n", " print(f\"Error getting tasks from area {area_id}.\")\n", " break\n", "\n", " page += 1\n", " except Exception as e:\n", " print(f\"Error getting tasks from area {area_id}.\")\n", " print(e)\n", " print(response)\n", "print(\"Done.\")\n", "\n", "# Write areas to json file\n", "areas.to_json(\"json_files/areas.json\", orient=\"records\")\n", "\n", "print(f\"Saved {len(areas)} areas with corresponding tasks to areas.json.\")" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# RUN ONLY IF YOU DONT HAVE THE CORRESPONDING JSON FILES AT HAND - it takes around 2 hours to run\n", "\n", "# Get areas.json\n", "areas = pd.read_json(\"json_files/areas.json\", orient=\"records\")\n", "\n", "# Get all papers from all tasks and write them to the dataframe\n", "print(\"Getting all papers...\")\n", "page = 1\n", "for area_id in tqdm(areas.id):\n", " print(f\"Getting papers from area {area_id} with {len(areas.loc[areas.id == area_id, 'tasks'].values[0])} tasks...\")\n", " for task_id in trange(len(areas.loc[areas.id == area_id, \"tasks\"].values[0])):\n", " count = requests.get(f\"https://paperswithcode.com/api/v1/tasks/{areas.loc[areas.id == area_id, 'tasks'].values[0][task_id]['id']}/papers?items_per_page=1\").json()[\"count\"]\n", " # for page in trange(1, int(count / ITEMS_PER_PAGE) + 2): # If you want to see the progress of each task\n", " for page in range(1, int(count / ITEMS_PER_PAGE) + 2):\n", " try:\n", " response = requests.get(f\"https://paperswithcode.com/api/v1/tasks/{areas.loc[areas.id == area_id, 'tasks'].values[0][task_id]['id']}/papers?items_per_page={ITEMS_PER_PAGE}&page={page}\").json()\n", " if response[\"results\"] is not None:\n", " # Write the papers in the corresponding tasks\n", " areas.loc[areas.id == area_id, 'tasks'].values[0][task_id][\"papers\"] = response[\"results\"] \n", " else:\n", " print(f\"Error getting papers from task {areas.loc[areas.id == area_id, 'tasks'].values[0][task_id]['id']}.\")\n", " break\n", " page += 1\n", " except Exception as e:\n", " print(f\"Error getting papers from task {areas.loc[areas.id == area_id, 'tasks'].values[0][task_id]['id']}.\")\n", " print(e)\n", " print(response)\n", " \n", "print(\"Done.\")\n", "\n", "# Write areas to json file\n", "areas.to_json(\"json_files/areas_tasks_papers.json\", orient=\"records\")\n", "print(f\"Saved {len(areas)} areas with corresponding tasks and papers to areas_tasks_papers.json.\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Exploring the Data\n", "\n", "Now we have a look at the gathered areas, tasks and papers from paperswithcode.com. We will use plotly express to visualize the data." ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "EXPLORING THE DATA\n" ] }, { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "alignmentgroup": "True", "hovertemplate": "name=%{x}
total_tasks=%{y}", "legendgroup": "", "marker": { "color": "rgb(255, 20, 0)", "pattern": { "shape": "" } }, "name": "", "offsetgroup": "", "orientation": "v", "showlegend": false, "textposition": "auto", "type": "bar", "x": [ "Computer Vision", "Natural Language Processing", "Medical", "Miscellaneous", "Methodology", "Time Series", "Graphs", "Speech", "Audio", "Reasoning", "Computer Code", "Playing Games", "Robots", "Knowledge Base", "Music", "Adversarial" ], "xaxis": "x", "y": [ 1234, 607, 245, 239, 174, 86, 80, 74, 57, 55, 52, 42, 41, 32, 22, 19 ], "yaxis": "y" } ], "layout": { "barmode": "relative", "legend": { "tracegroupgap": 0 }, "template": { "data": { "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "heatmapgl" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "histogram2d" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "histogram2dcontour" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "sequentialminus": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "title": { "text": "Total amount of tasks per area" }, "xaxis": { "anchor": "y", "domain": [ 0, 1 ], "title": { "text": "name" } }, "yaxis": { "anchor": "x", "domain": [ 0, 1 ], "title": { "text": "total_tasks" } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "alignmentgroup": "True", "hovertemplate": "name=%{x}
total_papers=%{y}", "legendgroup": "", "marker": { "color": "#636efa", "pattern": { "shape": "" } }, "name": "", "offsetgroup": "", "orientation": "v", "showlegend": false, "textposition": "auto", "type": "bar", "x": [ "Computer Vision", "Natural Language Processing", "Methodology", "Miscellaneous", "Medical", "Speech", "Graphs", "Time Series", "Reasoning", "Playing Games", "Audio", "Computer Code", "Robots", "Knowledge Base", "Music", "Adversarial" ], "xaxis": "x", "y": [ 29112, 14437, 5841, 5506, 4051, 2163, 1951, 1916, 1282, 1133, 1091, 1072, 1037, 951, 488, 487 ], "yaxis": "y" } ], "layout": { "barmode": "relative", "legend": { "tracegroupgap": 0 }, "template": { "data": { "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "heatmapgl" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "histogram2d" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "histogram2dcontour" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "sequentialminus": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "title": { "text": "Total amount of papers per area" }, "xaxis": { "anchor": "y", "domain": [ 0, 1 ], "title": { "text": "name" } }, "yaxis": { "anchor": "x", "domain": [ 0, 1 ], "title": { "text": "total_papers" } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ "There are in total 72518 papers over 3059 tasks in 16 areas.\n" ] } ], "source": [ "print(\"EXPLORING THE DATA\")\n", "\n", "# Get areas_tasks_papers.json\n", "working_df = pd.read_json(\"json_files/areas_tasks_papers.json\", orient=\"records\")\n", "\n", "## TASKS PER AREA\n", "\n", "# Get the total amount of tasks per area\n", "working_df[\"total_tasks\"] = working_df.tasks.apply(lambda x: len(x))\n", "\n", "# Sort the areas by the total amount of tasks\n", "working_df = working_df.sort_values(by=\"total_tasks\", ascending=False)\n", "\n", "# Plot the areas\n", "fig = px.bar(working_df, x=\"name\", y=\"total_tasks\", title=\"Total amount of tasks per area\")\n", "fig.update_traces(marker_color='rgb(255, 20, 0)')\n", "fig.show()\n", "\n", "## PAPERS PER AREA\n", "\n", "# Get the total amount of papers per area\n", "working_df[\"total_papers\"] = working_df.tasks.apply(lambda x: sum([len(task[\"papers\"]) for task in x]))\n", "\n", "# Sort the areas by the total amount of papers\n", "working_df = working_df.sort_values(by=\"total_papers\", ascending=False)\n", "\n", "# Plot the areas\n", "fig = px.bar(working_df, x=\"name\", y=\"total_papers\", title=\"Total amount of papers per area\")\n", "fig.show()\n", "\n", "print(f\"There are in total {working_df.total_papers.sum()} papers over {working_df.total_tasks.sum()} tasks in {len(working_df)} areas.\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Data Preprocessing and Embedding.\n", "\n", "Data wrangling, title + abstract embedding and CSV export for Neo4j." ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Building areas csv...\n", "Building tasks csv...\n" ] }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "08a40fa7c7d94edb9c19022496a5dabc", "version_major": 2, "version_minor": 0 }, "text/plain": [ " 0%| | 0/16 [00:00y=%{y}
title=%{customdata[0]}
areaID=%{customdata[1]}
taskID=%{customdata[2]}", "legendgroup": "", "marker": { "color": "#636efa", "symbol": "circle" }, "mode": "markers", "name": "", "orientation": "v", "showlegend": false, "type": "scatter", "x": [ 5.599849224090576, 11.068683624267578, 6.790736198425293, 13.857869148254395, 10.621246337890625, 14.928933143615723, 10.826600074768066, 7.527953624725342, 4.620416641235352, 8.73490047454834, 5.866784572601318, 10.401695251464844, 6.001705646514893, 13.274136543273926, 12.671876907348633, 8.505362510681152, 9.79869270324707, 9.648796081542969, 9.557820320129395, 14.890380859375, 10.876492500305176, 11.371524810791016, 10.373159408569336, 15.193033218383789, 6.835962295532227, 9.581080436706543, 11.017614364624023, 8.545969009399414, 14.540863990783691, 4.466393947601318, 9.730879783630371, 9.069456100463867, 4.758528232574463, 9.331472396850586, 7.404983997344971, 14.061844825744629, 14.403006553649902, 11.157601356506348, 9.38278865814209, 10.847780227661133, 12.556046485900879, 5.035825729370117, 6.968200206756592, 10.746052742004395, 6.92381477355957, 9.186338424682617, 9.002531051635742, 4.426483154296875, 9.796911239624023, 8.647500991821289, 6.432661533355713, 3.895545721054077, 12.635919570922852, 5.571763515472412, 12.30894660949707, 6.672203540802002, 9.061468124389648, 7.091365337371826, 13.745709419250488, 4.691133975982666, 8.001754760742188, 6.186124324798584, 5.782176494598389, 9.232184410095215, 9.173064231872559, 15.308751106262207, 9.063260078430176, 7.056605815887451, 10.176244735717773, 4.297308921813965, 8.199882507324219, 13.294084548950195, 11.334227561950684, 8.548623085021973, 7.209409236907959, 13.47847843170166, 11.392664909362793, 10.442651748657227, -7.294008731842041, 5.564581394195557, 8.230287551879883, 15.552332878112793, 11.055075645446777, 4.499425411224365, 12.755526542663574, 7.542876243591309, 10.62704086303711, 9.70119571685791, 10.49347972869873, 12.820121765136719, 12.809820175170898, 10.223665237426758, 14.744356155395508, 14.20549488067627, 12.938994407653809, 9.080607414245605, 9.807169914245605, 10.960389137268066, 9.1693754196167, 9.872074127197266, 7.21090030670166, 14.30085277557373, 10.177583694458008, 3.6501502990722656, 11.805438995361328, 14.428318977355957, 15.753579139709473, 11.038214683532715, 7.820473670959473, 4.292187213897705, 8.42219066619873, 7.1964826583862305, 10.503205299377441, 9.073151588439941, 8.310708999633789, 9.460481643676758, 7.47296667098999, 11.325481414794922, 11.350605964660645, 3.9809482097625732, 7.544058799743652, 13.52357292175293, 11.647194862365723, 15.097122192382812, 8.783377647399902, 6.089128494262695, 11.988430976867676, 8.996967315673828, -7.379645824432373, 14.647644996643066, 15.431940078735352, 7.873534679412842, 8.521806716918945, 8.0179443359375, 7.458347320556641, -7.265807628631592, 7.286233425140381, 14.636885643005371, 10.87425708770752, 9.690458297729492, 3.7276811599731445, 14.44255256652832, 10.963101387023926, 13.275999069213867, 7.108043670654297, 5.786373615264893, 12.744034767150879, 11.480525970458984, 11.316457748413086, 12.864176750183105, 12.47833251953125, 9.148468017578125, 8.786940574645996, -7.143136024475098, 9.557761192321777, 11.010205268859863, 8.77641773223877, 7.518625736236572, 7.042637825012207, 11.615616798400879, 11.764760971069336, 7.5651936531066895, 9.633727073669434, 8.578851699829102, 5.658863067626953, 7.636953353881836, 8.832145690917969, 10.748822212219238, 14.889742851257324, 9.389510154724121, 11.374841690063477, 7.260021686553955, 6.238800048828125, 8.881723403930664, 10.354610443115234, 7.47868537902832, 8.848122596740723, 7.949936866760254, 10.499284744262695, 10.697480201721191, 5.7708635330200195, 15.765318870544434, 6.560008525848389, 7.12256383895874, 5.972390174865723, 12.609753608703613, 10.939549446105957, 10.4799165725708, 5.106529712677002, 11.16919231414795, 6.0098700523376465, 13.158958435058594, 14.76653003692627, 10.384833335876465, 9.292482376098633, 11.133119583129883, 5.098991394042969, 9.219744682312012, 8.21726131439209, 6.952854156494141, -7.4445905685424805, 6.946630954742432, 5.8841094970703125, 9.616921424865723, 6.6085100173950195, 12.175833702087402, 8.744636535644531, 8.354684829711914, 12.471324920654297, 6.611507415771484, 6.585975646972656, 7.4131317138671875, 4.380434989929199, 5.070824146270752, 7.711704730987549, 12.515287399291992, 7.853438377380371, 9.143918991088867, 9.497920989990234, 11.457934379577637, 7.695193290710449, 7.7382588386535645, 11.961345672607422, 8.94597339630127, 10.047207832336426, 15.012343406677246, 10.594982147216797, 6.581500053405762, 11.270124435424805, 10.922436714172363, 10.74774169921875, 7.2021942138671875, 12.779732704162598, 7.199073314666748, 8.227133750915527, 12.594441413879395, 14.572431564331055, 11.125394821166992, 6.996664524078369, 9.578136444091797, 4.170379638671875, 10.355871200561523, 13.179944038391113, 7.938297271728516, 6.859766006469727, 15.509612083435059, 7.635678768157959, 4.253608703613281, 6.976859092712402, 15.857216835021973, 11.193918228149414, 6.976259231567383, 10.52593994140625, 13.225805282592773, 8.525535583496094, 9.074853897094727, 10.766607284545898, 11.678594589233398, 10.565838813781738, -7.1648030281066895, 5.572746276855469, 11.666080474853516, 12.53559398651123, 11.523234367370605, 5.601586818695068, 7.52180290222168, 11.829960823059082, 7.066512107849121, 13.944103240966797, 14.960331916809082, 10.750267028808594, 6.9623332023620605, 8.012557029724121, 13.27717113494873, 11.7438325881958, 7.155930995941162, 14.666484832763672, 10.683989524841309, 9.84778881072998, 6.566550254821777, 12.866443634033203, 11.260656356811523, 5.934572219848633, 12.834452629089355, 9.793269157409668, -7.373401165008545, 10.438088417053223, 7.141965866088867, 10.25118350982666, 5.399199485778809, 9.252182006835938, 6.363389015197754, 13.596352577209473, 10.780535697937012, 9.1314697265625, 9.068007469177246, 10.354519844055176, 10.426486015319824, 10.927926063537598, 12.831965446472168, 13.860261917114258, 8.23252010345459, 8.712102890014648, 5.758602619171143, 14.800044059753418, 7.876350402832031, 10.772493362426758, 13.064153671264648, 8.545801162719727, 9.784550666809082, 8.686984062194824, 6.319133758544922, 5.783853054046631, 5.091279029846191, 7.677828788757324, 14.573902130126953, 14.519079208374023, 6.20848274230957, 10.057945251464844, 5.617627143859863, 10.627786636352539, 11.274304389953613, 8.573851585388184, 12.447826385498047, 4.164243221282959, 12.887380599975586, 6.619194507598877, 9.3503999710083, 11.680246353149414, 7.127496242523193, 15.191133499145508, 9.463016510009766, 13.53357982635498, 9.469380378723145, 14.73985481262207, 12.614302635192871, 11.948740005493164, 14.812477111816406, 14.063065528869629, 9.133063316345215, 10.285940170288086, 6.521899700164795, 13.760943412780762, 8.063873291015625, 7.094965934753418, 7.267406940460205, 7.5599446296691895, 10.753185272216797, 11.143444061279297, 8.350001335144043, 9.229116439819336, 10.977988243103027, 7.048717021942139, 14.924219131469727, 9.887088775634766, 6.995727062225342, 7.157568454742432, 11.290245056152344, 8.20807933807373, 4.0591607093811035, 4.628355026245117, 7.58945894241333, 9.628180503845215, 4.237422466278076, 10.904523849487305, 5.8678178787231445, 7.777393817901611, 9.381101608276367, 9.884026527404785, 8.702454566955566, 14.681035995483398, 7.899035930633545, 10.017016410827637, 14.355539321899414, 5.919155597686768, 8.718767166137695, 14.388594627380371, 11.301886558532715, 7.517828941345215, 10.810062408447266, 11.850433349609375, 8.06434440612793, 10.586483001708984, 9.429643630981445, 9.129959106445312, 10.437275886535645, 5.920749187469482, 4.036898612976074, 15.400691986083984, 8.065765380859375, 14.327607154846191, 6.726963043212891, 7.791095733642578, 4.785290241241455, 14.732780456542969, 9.959418296813965, 14.367362022399902, 12.694307327270508, 4.466373443603516, 5.519748687744141, 4.564481258392334, 7.061201095581055, 4.61274528503418, 7.803004741668701, 8.42251205444336, 12.424490928649902, 10.509469985961914, 4.576940059661865, 7.867064476013184, 8.001042366027832, 9.356389045715332, 6.334643363952637, 9.477259635925293, 14.279175758361816, 4.969344139099121, 9.45655632019043, 12.52093505859375, 11.55932903289795, 10.91670036315918, 9.693373680114746, 7.75745964050293, 7.967552185058594, 9.279297828674316, 15.449807167053223, 15.281161308288574, 7.981328010559082, 7.069960594177246, 5.182056427001953, 10.804051399230957, 10.484764099121094, 9.71953010559082, 14.186064720153809, 11.391231536865234, 11.636006355285645, 11.567138671875, 7.678689002990723, 11.596405982971191, 6.851314067840576, 7.1827497482299805, 10.921427726745605, 7.696506023406982, 7.853899002075195, 14.755681037902832, 6.853796482086182, 12.899742126464844, 9.471860885620117, 12.403790473937988, 9.847272872924805, 7.413369655609131, 12.458284378051758, 8.056812286376953, 7.943106174468994, 8.213116645812988, 11.287572860717773, 14.489715576171875, 9.158666610717773, 13.442456245422363, 9.929677963256836, 7.880404949188232, 11.309432029724121, 9.861546516418457, 9.085232734680176, 8.227468490600586, 7.022350311279297, 4.142155170440674, 9.163252830505371, 8.724325180053711, 6.6469502449035645, 9.31001091003418, 8.599237442016602, 7.155426502227783, 14.643656730651855, 10.699371337890625, 9.448142051696777, 5.506717205047607, 14.681193351745605, 6.953610420227051, 9.960715293884277, 7.266829967498779, 8.907095909118652, 9.16716480255127, 7.119724273681641, 13.181083679199219, 9.416007995605469, 8.907069206237793, 9.678053855895996, 12.140385627746582, 6.642809867858887, 7.683936595916748, 12.067597389221191, 9.64319133758545, 7.880381107330322, 8.015373229980469, 9.495361328125, 9.960394859313965, 5.794227123260498, 9.343363761901855, 12.689620018005371, 7.919923782348633, 14.679570198059082, 11.374286651611328, 11.521666526794434, 6.991746425628662, 11.792950630187988, 6.4196014404296875, 6.353351593017578, 12.270013809204102, 10.610873222351074, 14.324746131896973, 7.052743434906006, 10.013647079467773, 12.7738618850708, 7.132145404815674, 8.423966407775879, 4.1078338623046875, 14.527359008789062, 7.543024063110352, 9.247359275817871, 10.644657135009766, 14.62857437133789, 7.986981391906738, 7.626209735870361, 10.645732879638672, 14.739346504211426, 10.01307487487793, 15.162205696105957, 8.20262622833252, 11.720328330993652, 8.504948616027832, 9.048590660095215, 15.231179237365723, 8.990392684936523, 8.800299644470215, 10.920714378356934, 9.372204780578613, 12.893837928771973, 9.537548065185547, 9.553086280822754, 12.823145866394043, 5.654978275299072, 15.50525188446045, 7.310359477996826, 11.640252113342285, 8.725122451782227, 8.675874710083008, 7.966064929962158, 6.188792705535889, 14.095568656921387, 11.22420597076416, 9.406478881835938, 9.397933006286621, 10.29333209991455, 14.271072387695312, 7.913965225219727, 13.499804496765137, 5.194112777709961, 9.010186195373535, 8.13775634765625, 4.208624839782715, 4.087181568145752, 10.577397346496582, 6.202621936798096, 5.2361931800842285, 10.559646606445312, 9.105487823486328, 10.09813117980957, 14.58775520324707, 4.02855920791626, 6.53314208984375, 10.919387817382812, 14.581631660461426, 14.94023323059082, 9.294780731201172, 5.399946212768555, 13.119057655334473, 8.516469955444336, 11.888192176818848, 8.372199058532715, 8.21114444732666, 11.320913314819336, 11.952794075012207, 8.042593955993652, 9.981464385986328, 8.857515335083008, 8.908026695251465, 9.732722282409668, 7.3555588722229, 8.899652481079102, 9.762425422668457, 7.258851528167725, 9.894759178161621, 11.840574264526367, 13.839347839355469, 15.488753318786621, 14.327991485595703, 10.160544395446777, 7.424502849578857, 8.012614250183105, 7.030370712280273, 8.22033977508545, 15.285037994384766, 10.916180610656738, 14.561566352844238, 12.512178421020508, 14.447023391723633, 8.309303283691406, 8.359991073608398, 10.80453109741211, 13.372685432434082, 7.670616626739502, 5.912252902984619, 12.39795207977295, 9.799954414367676, 9.52997875213623, 8.9428129196167, 15.697820663452148, 8.138569831848145, 8.396364212036133, 3.887775182723999, 10.010981559753418, 9.662165641784668, 7.0052289962768555, 7.950762748718262, 14.7271728515625, 10.814191818237305, 10.345733642578125, 7.8752665519714355, 11.056466102600098, -7.417853355407715, 15.198606491088867, 9.103132247924805, 10.391983032226562, 8.565573692321777, 9.861762046813965, 7.916439056396484, 11.47730541229248, 4.874289512634277, 8.132966041564941, 13.144678115844727, 10.962444305419922, 7.945828437805176, 7.552624702453613, 10.221307754516602, 10.480956077575684, 9.677705764770508, 9.1648588180542, 10.752206802368164, 14.929625511169434, 12.999309539794922, 13.014703750610352, 8.185026168823242, 7.586719036102295, 9.393548011779785, 8.334735870361328, 7.444820404052734, 7.017577648162842, 5.057693958282471, 11.571885108947754, 9.69139575958252, 8.486466407775879, 16.063385009765625, -7.213517665863037, 8.315632820129395, 12.575874328613281, 10.232356071472168, 5.237006187438965, 8.241955757141113, 7.5567402839660645, 9.940741539001465, 7.065115928649902, 14.076140403747559, 6.192483901977539, 7.014260768890381, 11.398509979248047, 11.249367713928223, 5.449256420135498, 10.901021003723145, -7.3230366706848145, 10.795811653137207, 13.642889976501465, 7.7479047775268555, 3.7916176319122314, 8.399974822998047, 8.88386058807373, 4.660819053649902, 10.471577644348145, 9.408486366271973, 10.337142944335938, 15.078195571899414, 13.960573196411133, 13.305747985839844, 6.998685359954834, 11.995943069458008, 8.833276748657227, 14.896368026733398, 8.256325721740723, 10.927149772644043, 7.496574401855469, 12.954313278198242, 6.010283470153809, 12.75489330291748, 14.97694206237793, 9.35136890411377, 9.414580345153809, 14.61380386352539, 4.348985195159912, 10.040645599365234, 8.663995742797852, 9.516234397888184, 13.19989013671875, 4.53241491317749, 9.745216369628906, 4.516161918640137, 9.112686157226562, 7.162048816680908, 14.654603958129883, 12.407842636108398, 11.172013282775879, 8.575189590454102, 9.515731811523438, 15.203411102294922, 11.827305793762207, 8.469704627990723, 8.498052597045898, 12.090119361877441, 11.00588321685791, 6.322977542877197, 12.351665496826172, 11.625764846801758, 7.552072048187256, 9.001288414001465, 9.642447471618652, 14.516636848449707, 9.34703540802002, 7.199306964874268, 11.507486343383789, 10.610638618469238, 9.129173278808594, 3.7275750637054443, 12.150935173034668, 7.921504020690918, 8.14765739440918, 13.10676097869873, 8.24503231048584, 7.909165859222412, 8.579451560974121, 13.104079246520996, 9.485889434814453, 11.5596342086792, 7.25331974029541, 8.906719207763672, 9.312911987304688, 6.329204082489014, 13.581450462341309, 10.701156616210938, 6.47033166885376, 10.55048656463623, 11.00069808959961, -7.249998569488525, 15.04142951965332, 10.158209800720215, 10.177331924438477, 8.761971473693848, 9.238838195800781, 11.058826446533203, 9.521685600280762, 9.378549575805664, 9.603663444519043, 9.87692642211914, 10.354251861572266, 11.272281646728516, 10.822872161865234, 9.504691123962402, -7.2034831047058105, 9.754591941833496, 10.315911293029785, 15.476926803588867, 12.863560676574707, 14.381579399108887, 10.323317527770996, 10.423310279846191, 10.910591125488281, 10.687256813049316, 10.880169868469238, 15.191695213317871, 6.96617317199707, 9.384124755859375, 10.429052352905273, 4.647504806518555, 14.5599365234375, 10.919062614440918, 9.601685523986816, 14.754451751708984, 8.751916885375977, 4.83065128326416, 10.23220443725586, 7.112652778625488, 10.975387573242188, 5.574103355407715, 7.6434783935546875, 14.292842864990234, 11.982329368591309, 4.997137546539307, 11.501630783081055, 10.2711763381958, 7.979042053222656, 9.821967124938965, 8.195631980895996, 3.4454593658447266, 13.449735641479492, 12.812910079956055, 11.04175853729248, 10.905529022216797, 10.413700103759766, 6.547861099243164, 8.221046447753906, 7.918297290802002, 11.657644271850586, 4.738232612609863, 11.265583992004395, 10.067453384399414, 14.131413459777832, 5.729547500610352, 3.510091781616211, 13.207737922668457, 8.26047134399414, 8.450334548950195, 14.134645462036133, 10.822091102600098, 8.207978248596191, 8.424788475036621, 9.32280158996582, 13.019808769226074, 12.6690034866333, 15.679920196533203, 14.324653625488281, 11.612677574157715, 6.553342819213867, 14.573345184326172, 4.758172035217285, 9.40311336517334, 9.215988159179688, 10.38088321685791, 11.87903118133545, 12.020356178283691, 12.515457153320312, 9.697980880737305, 7.163846492767334, 9.490523338317871, 5.549267768859863, 8.642224311828613, 12.46097183227539, 8.79185962677002, 7.751322269439697, 7.356597900390625, 14.631145477294922, 6.094210147857666, 7.827875137329102, 8.064159393310547, 15.45610237121582, 5.1537017822265625, 14.06370735168457, 8.742385864257812, 5.780654430389404, 8.997416496276855, 9.705841064453125, 9.035737991333008, 8.782017707824707, 10.381969451904297, 5.00227689743042, 9.05777645111084, 14.589186668395996, 11.369647979736328, 12.227093696594238, 9.642533302307129, 11.57256031036377, 6.566445827484131, 11.588811874389648, 7.870059013366699, 4.317961692810059, 8.329459190368652, 10.283004760742188, 11.95043659210205, 8.579537391662598, 5.49254035949707, 10.70378303527832, 11.131038665771484, 8.647150993347168, 15.252618789672852, 8.822958946228027, 7.566667556762695, 15.27840805053711, 11.862375259399414, 4.980977535247803, 7.791979789733887, 7.434358596801758, 10.787787437438965, 5.968226432800293, 4.420980453491211, 14.500219345092773, 6.97326135635376, -7.287500858306885, 7.079774379730225, 8.379842758178711, 10.856901168823242, 12.662747383117676, 9.045022010803223, 15.13215446472168, 9.505839347839355, 9.747598648071289, 9.891374588012695, 8.221360206604004, 9.413247108459473, 8.675217628479004, 4.440208435058594, 7.720499515533447, 14.192205429077148, 14.217724800109863, 8.935999870300293, 8.019296646118164, 8.55659294128418, 14.371739387512207, 10.507990837097168, 8.942110061645508, 15.819196701049805, 7.014904975891113, 13.516203880310059, 8.985371589660645, 10.304871559143066, 6.647022724151611, 11.085267066955566, 11.609463691711426, 7.6595845222473145, 8.027946472167969, 9.135470390319824, 8.876163482666016, 11.313506126403809, 15.895161628723145, 9.725367546081543, 7.980055809020996, 4.01867151260376, 8.490418434143066, 12.917275428771973, 13.582799911499023, 8.576009750366211, 14.186646461486816, 7.197645664215088, 9.22923469543457, 9.18089771270752, 7.353052139282227, 13.199227333068848, 8.150846481323242, 5.9862060546875, 15.259134292602539, 10.241764068603516, 10.286813735961914, 10.03745174407959, 6.6661763191223145, 11.039430618286133, 15.526710510253906, 10.249577522277832, 15.255053520202637, 11.445643424987793, 5.466084003448486, 8.22064208984375, 14.393120765686035, 6.4093499183654785, 11.353228569030762, 12.684429168701172, 12.07292366027832, 11.499053001403809, 10.803276062011719, 5.667477607727051, 12.355392456054688, 13.37167739868164, 6.388312816619873, 5.604480743408203, 15.005529403686523, 8.26118278503418, 13.393728256225586, 11.382596015930176, 5.766387462615967, 11.646907806396484, 11.1683931350708, 4.088036060333252, 7.2515106201171875, 6.4544596672058105, 9.359107971191406, 8.55988883972168, 12.514610290527344, 8.644259452819824, 15.341039657592773, 8.465780258178711, 9.321964263916016, 11.093205451965332, 8.632831573486328, 8.668980598449707, 10.39034366607666, 4.376539707183838, 15.727368354797363 ], "xaxis": "x", "y": [ 4.126174449920654, -2.533808708190918, 0.9825596809387207, 4.886707305908203, 2.2033448219299316, -3.0348830223083496, -0.7795295119285583, 4.548065662384033, 2.394618511199951, 5.659236907958984, 0.7998443841934204, 9.508073806762695, 2.718507766723633, -0.36413490772247314, -0.2317209392786026, -1.5267624855041504, 3.2990260124206543, 2.7960922718048096, 3.985593795776367, 5.947326183319092, -2.0819175243377686, -0.4429171681404114, 9.46713924407959, -2.0208754539489746, 6.059092998504639, 1.974305272102356, 9.902726173400879, 4.1631340980529785, 6.725465774536133, 0.5192986130714417, -0.4048725366592407, 6.343607425689697, 5.496603012084961, -0.23569414019584656, -2.6434547901153564, 5.8332200050354, 7.163525581359863, 6.972282886505127, 3.8765013217926025, 1.8965524435043335, 9.614302635192871, 2.2367210388183594, -0.7838699817657471, 7.711524486541748, 0.20636305212974548, 0.04475310444831848, 10.006030082702637, 1.0603411197662354, -4.989251136779785, -0.7554355263710022, 0.8080543875694275, 2.0627174377441406, 1.094822645187378, 4.202932357788086, 7.8241167068481445, -2.219566822052002, 9.736250877380371, -0.8283817172050476, -2.3208060264587402, 5.106047630310059, 0.5959362387657166, 5.065540790557861, -0.8737516403198242, 7.175995349884033, 3.2370235919952393, -1.9004192352294922, 2.3216493129730225, -1.0324230194091797, 1.9558099508285522, 1.88939368724823, -2.852332592010498, 3.028852939605713, -1.6301425695419312, 3.3467648029327393, 2.106745958328247, 3.5158638954162598, 7.705741882324219, -2.004106044769287, 3.632223129272461, 7.9494500160217285, 0.5417092442512512, 5.738641738891602, 8.354939460754395, 2.3975071907043457, 7.726679801940918, -2.696737289428711, -0.9156713485717773, -1.7621225118637085, 0.20223908126354218, -0.02125396952033043, 7.921030044555664, 3.12904953956604, 0.815386950969696, 3.1997601985931396, -2.6838901042938232, -0.32593968510627747, -0.30722007155418396, -1.8983032703399658, -0.02045994997024536, 3.2292404174804688, 6.386640548706055, 1.4248937368392944, 9.720492362976074, 1.4179788827896118, -1.8460917472839355, 9.686529159545898, 5.818224906921387, 9.910065650939941, 9.774889945983887, 2.164916515350342, -2.4956612586975098, 3.1349425315856934, -2.1574974060058594, 9.176627159118652, 6.284003734588623, 3.6106793880462646, 7.85239839553833, -1.215232491493225, 7.439302444458008, 1.7398675680160522, 2.0813941955566406, 1.7722920179367065, 8.876633644104004, -3.044065475463867, 7.174227237701416, 2.8376734256744385, 2.2465567588806152, -3.576079845428467, 3.7125189304351807, -3.2374346256256104, 6.209712028503418, 1.5441735982894897, 10.348647117614746, 5.485426425933838, 4.439906597137451, 3.6932621002197266, -0.6455467343330383, -2.189363718032837, -2.3818745613098145, 7.890426158905029, 1.8770866394042969, 6.698329448699951, 8.717576026916504, -0.4048531651496887, 7.756633758544922, -0.7535569071769714, 6.175040245056152, 8.974837303161621, -0.4792816936969757, 7.981298923492432, 0.3700394332408905, -3.15118145942688, 10.35095500946045, 3.8487985134124756, 10.595133781433105, -1.614920973777771, 7.830065727233887, -1.8605643510818481, 5.507956027984619, 10.278844833374023, -0.4353397488594055, -2.323021411895752, 5.6991376876831055, -2.064683675765991, -0.5981153845787048, -1.22920823097229, 5.891857624053955, 6.865193843841553, 6.107551574707031, 2.547260046005249, -1.5568381547927856, 6.066234111785889, 1.1701035499572754, 5.616302967071533, 10.108430862426758, -1.8831449747085571, -3.658491849899292, -3.5882396697998047, 7.737028121948242, 2.0321624279022217, 7.338244438171387, 5.346141338348389, -2.0689947605133057, -1.1635595560073853, 7.2681732177734375, 8.204733848571777, 10.83447551727295, 9.377573013305664, 5.67194938659668, 0.7632348537445068, -0.8924053907394409, 0.4359027147293091, 6.252399921417236, 9.602071762084961, 8.2388916015625, 0.6512063145637512, 2.780911445617676, -6.47070837020874, 10.116795539855957, 4.236480236053467, 3.6369826793670654, 5.992105484008789, 6.859067916870117, 1.1064866781234741, 3.403987407684326, 7.777220249176025, 4.334474086761475, -2.9504592418670654, 8.03454303741455, 0.6265912055969238, 0.3760640621185303, -2.257479429244995, 0.9211674928665161, 0.9824506640434265, -2.7205801010131836, 7.332326889038086, 5.351152420043945, -1.5391432046890259, 8.938844680786133, 8.069330215454102, 5.279510974884033, -2.1356828212738037, 2.17992901802063, 10.635104179382324, 8.603972434997559, 5.942212104797363, 8.26716423034668, 2.0792582035064697, -0.07982894778251648, 1.761495590209961, 2.502939462661743, 2.1229426860809326, -0.3126075267791748, 5.973312854766846, -0.21894672513008118, 9.496477127075195, -1.9103533029556274, -0.42279669642448425, -0.9810464978218079, 0.24340395629405975, 2.4909822940826416, 9.298208236694336, 1.068213939666748, 7.668320655822754, 3.9063565731048584, 6.225228786468506, 7.648550987243652, 2.539766311645508, 5.923220634460449, 5.1790876388549805, -1.2751120328903198, 4.638597011566162, 1.6839485168457031, -0.46099555492401123, 3.239650249481201, 9.160219192504883, -1.4246138334274292, 9.271889686584473, 9.619956970214844, 3.7107908725738525, 4.9381022453308105, 8.821560859680176, 3.4110279083251953, 7.657670974731445, -0.11921820044517517, -1.3207460641860962, -2.4065184593200684, -1.0493128299713135, 3.157130241394043, -1.9420068264007568, 9.462780952453613, 1.2477383613586426, -3.1193437576293945, -0.3311324119567871, -0.012814158573746681, -0.964701235294342, 0.9253235459327698, 9.429229736328125, 3.2611300945281982, 2.685302972793579, 7.955621719360352, 6.802211284637451, -0.9830020070075989, 7.983392238616943, 9.572829246520996, 3.6720595359802246, 10.529435157775879, -0.7796465158462524, 8.496562004089355, 5.1214189529418945, 8.106517791748047, 1.8842649459838867, -2.512986898422241, 1.8131250143051147, 9.140451431274414, 6.3157057762146, 9.59737777709961, 0.897409200668335, -3.229332208633423, -0.062403514981269836, -3.088029623031616, 0.4354982078075409, -2.11586332321167, 3.5755622386932373, -2.4887442588806152, 1.4772660732269287, 9.803232192993164, 5.238861083984375, 4.664829730987549, 2.421674966812134, -2.038649320602417, 3.4372246265411377, 4.727225303649902, 2.81113338470459, -2.078678607940674, -2.6445536613464355, -2.4648501873016357, 7.782863616943359, -2.0357937812805176, 2.230302333831787, 10.449225425720215, 9.802224159240723, 0.5433752536773682, 9.473484992980957, 1.5676871538162231, -0.3275938332080841, 3.5012874603271484, -1.5936752557754517, 9.468636512756348, 2.6982502937316895, 5.150817394256592, 7.268890857696533, 1.0014959573745728, -3.1406025886535645, 1.0344021320343018, -0.39362549781799316, 9.133220672607422, 0.8606293797492981, 3.1151304244995117, 3.2735660076141357, 9.652315139770508, 2.9653947353363037, -3.091541051864624, -3.083310127258301, 6.36529016494751, 3.4886274337768555, 3.739657163619995, -1.4257851839065552, 9.123190879821777, -2.138300657272339, 8.834654808044434, 9.90151596069336, -0.9976739883422852, -2.5939557552337646, 0.8136979937553406, 5.352860450744629, -0.7018065452575684, -1.6645078659057617, -2.869777202606201, 1.5172829627990723, 1.8902912139892578, 4.2512335777282715, -3.041076183319092, 1.6014856100082397, -3.1726009845733643, 4.422704219818115, 3.644230842590332, 7.22774076461792, -1.5238770246505737, 7.859821319580078, -2.264152765274048, -2.4875283241271973, 6.223222255706787, 5.9030232429504395, 6.968176364898682, 3.315135955810547, 9.666810035705566, 6.922852993011475, 1.9540423154830933, -4.043544292449951, 2.7256736755371094, 6.001269340515137, 10.052136421203613, 6.942612648010254, 9.538833618164062, 9.21379566192627, -0.8923181295394897, 1.436249017715454, 5.602859020233154, -3.082893133163452, -2.092195749282837, 0.6799643039703369, 7.772904396057129, 1.7817612886428833, 6.678366661071777, 0.09280504286289215, 6.127752780914307, -0.3731805086135864, 2.09000301361084, 7.931460857391357, 4.156678676605225, 4.421534061431885, 0.7217903733253479, -2.687835454940796, 3.2987732887268066, 7.819214344024658, -2.6640737056732178, 6.065827369689941, 0.0860719308257103, 6.119062423706055, -0.004121270030736923, -2.1965157985687256, 2.6461987495422363, 6.0721001625061035, 1.7312811613082886, 2.3252408504486084, 7.787801265716553, 4.405973434448242, 8.235418319702148, 9.329890251159668, 5.227025032043457, 0.48895934224128723, 7.7220025062561035, 6.098127365112305, 4.998706817626953, -3.651167154312134, -0.8853989839553833, 5.679713249206543, 9.303461074829102, 8.866049766540527, 1.5130341053009033, 3.221101760864258, -2.46476674079895, -0.5044199228286743, 8.883318901062012, -1.002183437347412, 9.055815696716309, 0.394118994474411, -0.7394098043441772, 1.3728008270263672, 5.184157371520996, -2.6714186668395996, 0.9824119210243225, 2.490302324295044, 7.927119731903076, 7.5633134841918945, 0.9979224801063538, 3.3922841548919678, -2.142005443572998, 8.384528160095215, 0.5300745964050293, -3.634932279586792, 10.043889045715332, -2.2264842987060547, -2.4153785705566406, 8.320799827575684, -2.418820381164551, 1.7223104238510132, 0.19102603197097778, -2.736599922180176, 2.5643649101257324, 9.239348411560059, 3.457362651824951, 3.916487455368042, 1.8440216779708862, -0.24157829582691193, 0.3097228407859802, 4.949954032897949, 3.98052978515625, 6.969568729400635, 6.058928489685059, 0.9946673512458801, -2.5032215118408203, 8.078584671020508, 7.558452606201172, 0.9653854966163635, 0.31090864539146423, 10.088488578796387, -1.9391705989837646, 0.31437185406684875, 6.486791133880615, -1.7976369857788086, -0.43361109495162964, 1.3021571636199951, 5.303138732910156, -2.8785977363586426, 0.8312212228775024, -0.21076808869838715, 6.514804363250732, 9.02849006652832, -1.1186565160751343, 5.347923755645752, -1.2895967960357666, 2.4275732040405273, 8.746295928955078, 6.840498924255371, -3.052455186843872, -0.2617032527923584, 0.9191197752952576, 0.9183653593063354, 0.9615949392318726, 4.531466484069824, -0.9270896315574646, -0.45712488889694214, 4.730812072753906, 0.877469539642334, -0.5684561133384705, 10.025845527648926, -2.743135690689087, 4.394947052001953, -1.9585403203964233, 7.837454795837402, 5.426761627197266, 3.172776460647583, 2.231337785720825, 7.1347270011901855, -2.332383871078491, -3.2388176918029785, 7.090683460235596, -2.0757319927215576, 3.506277322769165, -1.868905782699585, 8.843655586242676, -2.226040840148926, 1.127840518951416, 5.254172325134277, 0.4277021586894989, 10.035844802856445, -1.996851921081543, -1.563181757926941, 4.871703624725342, 0.5606868267059326, -1.4879510402679443, -2.284127950668335, 3.8534295558929443, 7.869866371154785, 3.9572956562042236, 4.44377326965332, 8.208946228027344, 4.04446268081665, 5.86918306350708, 6.320670127868652, 10.278436660766602, 8.598854064941406, -3.6544981002807617, -1.1080280542373657, 0.8990471363067627, 0.14299939572811127, 9.004302978515625, 8.96382999420166, 8.510960578918457, 9.316666603088379, 6.313569068908691, -2.335557222366333, -2.5542221069335938, 5.448667526245117, 0.5332000255584717, -3.63703989982605, 2.3768067359924316, 2.055743932723999, 8.296758651733398, 2.809185028076172, 5.897984504699707, 9.478950500488281, 7.915650844573975, 0.7659195065498352, 0.882739782333374, 1.7116193771362305, -2.2412307262420654, -0.8363595604896545, 5.155244827270508, 6.508439064025879, 3.855907917022705, 5.117935657501221, 3.421414613723755, 0.6164054274559021, 2.207007884979248, 0.554556131362915, 10.156888008117676, -1.4568536281585693, 2.2958860397338867, 5.388043403625488, 8.963281631469727, -0.9611779451370239, 10.625113487243652, -1.759468674659729, -2.2989447116851807, 5.275594234466553, 2.2152695655822754, 5.996743202209473, 2.693922758102417, 8.439921379089355, 6.807491779327393, -1.7832316160202026, 5.013213157653809, 8.384496688842773, 4.465641021728516, -0.43323829770088196, -1.2561959028244019, 3.4473588466644287, 4.910487651824951, 9.875699996948242, -2.656867265701294, 3.3019936084747314, 6.8845014572143555, 4.342864990234375, 0.6446174383163452, 9.92039680480957, 0.2617430090904236, -3.010953187942505, 5.956698417663574, 9.518388748168945, 9.628557205200195, 0.712555468082428, 0.4784051477909088, 5.3193254470825195, 0.8211416006088257, -3.599618434906006, 1.480825662612915, 0.7779089212417603, -0.2765635848045349, 5.187817573547363, 3.564326047897339, 1.0541502237319946, -0.7737213969230652, 9.87490463256836, 5.738592147827148, 0.9119856953620911, 3.6773390769958496, -2.5521717071533203, -6.345076084136963, 6.922613143920898, 3.007598876953125, -1.7909693717956543, 6.4517364501953125, -0.5528777241706848, 1.3525300025939941, 4.575297832489014, 3.4640626907348633, 6.968693733215332, 3.581557512283325, 8.041665077209473, 2.1849350929260254, 9.87310791015625, 1.9554895162582397, 1.1649394035339355, 7.976846694946289, 5.246989727020264, 5.609080791473389, 1.127640962600708, 10.142399787902832, 2.5070066452026367, 8.40684986114502, 4.040724277496338, -0.11973284929990768, -0.7214995622634888, 5.869029521942139, 10.20050048828125, -0.8251104950904846, 0.6189032793045044, 7.577278137207031, 3.6255335807800293, -3.5398099422454834, 9.555704116821289, 5.55294942855835, 1.1922353506088257, 10.3785400390625, 4.585978031158447, 0.8601009249687195, 7.77139139175415, -2.3590550422668457, -1.0083290338516235, 3.7373201847076416, 7.669262409210205, 10.212360382080078, 2.0662713050842285, -3.1564838886260986, 3.8184146881103516, 1.5701165199279785, 1.8731462955474854, 7.854860305786133, 1.5787612199783325, 9.930487632751465, 2.4516842365264893, 2.264647960662842, 8.330638885498047, -1.3137879371643066, 10.259321212768555, -2.4218318462371826, 3.006913423538208, 5.134044170379639, 5.648447036743164, -0.6641638278961182, 5.699516773223877, 5.866588592529297, 10.419074058532715, 9.983525276184082, 1.5137207508087158, 0.994962215423584, 2.5889101028442383, 7.967925548553467, 6.492598056793213, 0.3187369108200073, 0.6215787529945374, -2.0127675533294678, 3.063335418701172, 0.6808129549026489, 3.45025897026062, 0.059627994894981384, -0.4321385622024536, 3.311743974685669, 0.1370559185743332, 3.234903335571289, 8.23231029510498, 2.1786768436431885, 0.8837879300117493, 9.571134567260742, 9.354822158813477, -2.5651438236236572, 9.679492950439453, 5.129062652587891, 9.236105918884277, 8.7819242477417, 0.4178776741027832, 9.236530303955078, 10.593372344970703, 1.0382344722747803, 0.9808393716812134, 2.703558921813965, -2.274656057357788, 6.625453948974609, 4.04237174987793, -2.607473134994507, -1.3305844068527222, 3.542888879776001, -0.6756829619407654, -1.3948496580123901, -0.4710143804550171, 1.9696604013442993, 9.01282024383545, -3.717244863510132, 0.10782019048929214, 5.893034934997559, -2.1238863468170166, 10.057793617248535, 0.494861364364624, 7.712787628173828, 3.13370418548584, 0.033370330929756165, 2.8260738849639893, 7.152968883514404, 9.534595489501953, 6.724236488342285, 1.8647009134292603, 9.793149948120117, 7.623467922210693, 7.99493408203125, -1.989983081817627, 3.669483184814453, -2.2441916465759277, 5.680863380432129, 9.194952964782715, 8.660676956176758, -3.019449234008789, 6.92095947265625, 1.2740129232406616, 1.0193181037902832, 4.404982089996338, 8.73806381225586, 9.6187105178833, -2.769606113433838, 0.6888476014137268, 3.3622353076934814, 3.695701837539673, 7.930352210998535, 9.478090286254883, -2.778426170349121, 1.0189911127090454, 6.394554138183594, 0.6943582892417908, 1.0558546781539917, 7.036771774291992, 8.173421859741211, 9.70950984954834, 5.7816243171691895, 6.16331672668457, 5.450090408325195, 9.131461143493652, 5.0618414878845215, 3.906963586807251, -2.130563735961914, 1.082955241203308, 1.0724077224731445, 7.961122512817383, 4.006330490112305, 10.515986442565918, 3.918391466140747, -2.3409600257873535, 5.159966468811035, -2.276855230331421, -2.092604398727417, 2.2038843631744385, 3.9480481147766113, 9.752184867858887, 7.8318586349487305, 4.0665178298950195, 2.204354763031006, -2.4120066165924072, 1.4243119955062866, 5.693144798278809, 0.5424520969390869, 10.025375366210938, 6.6412153244018555, 8.92280101776123, 4.061559677124023, -0.8083351254463196, 3.7010858058929443, 8.254738807678223, 5.2194647789001465, 9.0396146774292, 5.707523822784424, 6.5220046043396, 4.834125518798828, 1.4715774059295654, 0.6951729655265808, -1.898010015487671, 8.779491424560547, 0.048441071063280106, 8.004610061645508, 10.119155883789062, 3.3884437084198, 1.3059922456741333, 6.195337772369385, 8.114728927612305, 5.235088348388672, -1.9573429822921753, 8.976456642150879, -2.32308030128479, 5.464269638061523, 3.5068204402923584, -2.99514102935791, -1.8126875162124634, 6.942087173461914, 9.061873435974121, -0.7995086312294006, 9.502326965332031, -0.8338647484779358, 5.974717617034912, 9.045074462890625, 7.947251796722412, 8.908021926879883, 1.0605998039245605, 0.13781601190567017, 5.263655662536621, 3.378730297088623, 0.8378008604049683, 1.4617098569869995, 5.257971286773682, -0.8436663746833801, 6.193839073181152, 4.800164222717285, 0.0138698760420084, 7.675741195678711, 4.623106479644775, 6.15219259262085, -0.6979508996009827, -1.5670366287231445, 5.808671951293945, 1.3462852239608765, 3.9218759536743164, -2.508068799972534, -2.39713978767395, -0.7034783959388733, 7.840612888336182, 0.4497077465057373, 2.4432485103607178, 3.0224015712738037, -2.391327142715454, -2.151845932006836, 0.8304154872894287, -0.20324167609214783, 3.016594886779785, 2.2600815296173096, 3.054499864578247, 7.952006816864014, -1.229663372039795, -1.7457941770553589, 7.822626113891602, -2.5111420154571533, 10.774117469787598, 4.4221696853637695, 4.8929572105407715, 2.5478391647338867, 1.8696259260177612, -2.4641411304473877, 4.4486775398254395, -0.6375570893287659, 4.426397800445557, 4.2673540115356445, 7.162752628326416, 5.837663650512695, 3.6192221641540527, -0.8574716448783875, 6.444100856781006, 1.9385665655136108, -0.18653395771980286, -2.221907377243042, -2.4620988368988037, 1.7830580472946167, -3.020920515060425, 8.129739761352539, 4.045428276062012, 9.126927375793457, 9.719094276428223, 7.98645544052124, 0.11806896328926086, 6.800258636474609, 3.212298631668091, -0.9968603253364563, -3.193833351135254, 0.688491702079773, 5.172881126403809, 1.4574848413467407, 5.239869117736816, -3.974520206451416, 6.035726070404053, 5.050252437591553, -0.7897384762763977, 9.465620040893555, -2.1782500743865967, 1.5047528743743896, 0.6404974460601807, 4.515707492828369, 0.35835838317871094, -3.1236929893493652, 10.619806289672852, 10.124588012695312, 5.208682537078857, 1.4944113492965698, 0.7293256521224976, 2.1535942554473877, 8.764745712280273, 8.066884994506836, 1.6349762678146362, 0.7519879937171936, -3.2104828357696533, 6.141395568847656, 9.103246688842773, 9.128061294555664, 6.250070095062256, 0.8964056372642517, 4.317930698394775, 8.04868221282959, 4.888879299163818, -1.759351134300232, 0.47717028856277466, 3.055036783218384, -2.2181155681610107, 8.03691577911377, 5.605590343475342, 7.304266452789307, -2.217008352279663, 9.838674545288086, 7.863165855407715, 4.164764881134033, 6.511799335479736, 1.488447904586792, -0.302983820438385, -0.4779759347438812, 2.26259708404541, 6.667970657348633, 6.806011199951172, 2.4964075088500977, 7.9227471351623535, 5.072886943817139, 4.494134426116943, 7.654757976531982, 5.820611953735352, 0.23761463165283203, -3.069051742553711, -2.2996182441711426, 3.461786985397339, 10.010966300964355, 0.5861569046974182, 2.255612850189209, 3.380784511566162, 2.1297760009765625, 3.8581902980804443, -2.853766679763794, 8.369741439819336, -1.3123915195465088, 5.904638290405273, 0.5607909560203552, -3.088826894760132, 7.972159385681152, -0.5333139300346375, 7.820485591888428, 10.055524826049805, 4.27802848815918, 5.586975574493408 ], "yaxis": "y" } ], "layout": { "legend": { "tracegroupgap": 0 }, "margin": { "t": 60 }, "template": { "data": { "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "heatmapgl" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "histogram2d" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "histogram2dcontour" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "sequentialminus": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "xaxis": { "anchor": "y", "domain": [ 0, 1 ], "title": { "text": "x" } }, "yaxis": { "anchor": "x", "domain": [ 0, 1 ], "title": { "text": "y" } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "# Load the papers csv into a new dataframe called \"papers_csv\"\n", "papers_csv = pd.read_csv(\"papers.csv\")\n", "\n", "# Sample 1000 papers from the papers csv\n", "papers_csv_sample = papers_csv.sample(1000)\n", "\n", "# Convert the umap_embedding column from a string to a list of two values\n", "papers_csv_sample[\"umap_embedding\"] = papers_csv_sample[\"umap_embedding\"].apply(lambda x: eval(x))\n", "\n", "# Create a interactive plotly scatter plot from the papers csv sample. In the umap_embedding column are the 2D embeddings as a list with two values. The hover data should be title, areaID and taskID.\n", "fig = px.scatter(papers_csv_sample, x=papers_csv_sample[\"umap_embedding\"].apply(lambda x: x[0]), y=papers_csv_sample[\"umap_embedding\"].apply(lambda x: x[1]), hover_data=[\"title\", \"areaID\", \"taskID\"])\n", "fig.show()" ] } ], "metadata": { "kernelspec": { "display_name": ".venv", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.11.2" }, "orig_nbformat": 4 }, "nbformat": 4, "nbformat_minor": 2 }