{ "cells": [ { "cell_type": "markdown", "source": [ "## Autofaiss Index selection demo slider" ], "metadata": { "id": "HE9ihpV2p6CH" } }, { "cell_type": "code", "execution_count": 1, "source": [ "# Install autofaiss\n", "!pip install autofaiss &> /dev/null" ], "outputs": [], "metadata": { "id": "Ln9cJfKZp5dl" } }, { "cell_type": "code", "execution_count": 4, "source": [ "## Import automatic index selection function\n", "from autofaiss.external.optimize import get_optimal_index_keys_v2\n", "from autofaiss.external.metadata import IndexMetadata" ], "outputs": [], "metadata": { "id": "KXn8v2hbp-7K" } }, { "cell_type": "code", "execution_count": 7, "source": [ "#@title Demo\n", "import ipywidgets as widgets\n", "from IPython.display import display\n", "from ipywidgets import HBox, Label\n", "\n", "continuous_update = True\n", "\n", "output = widgets.Output()\n", "nb_vectors = widgets.FloatLogSlider(value = 10000, min=1, max=9, description=\"\", readout_format=\".0f\", continuous_update=continuous_update)\n", "dim_vectors = widgets.FloatLogSlider(base=2, value = 128, min=0, max=12, description=\"\", readout_format=\".0f\", continuous_update=continuous_update)\n", "max_index_memory_usage = widgets.FloatLogSlider(value = 100, min=0, max=5, description=\"\", readout_format=\".0f\", continuous_update=continuous_update)\n", "\n", "def get_text():\n", " _nb_vectors = round(nb_vectors.value)\n", " _dim_vectors = round(dim_vectors.value)\n", " m = round(max_index_memory_usage.value)\n", " _max_index_memory_usage = f\"{m}MB\"# if m < 1000 else f\"{m/1000}GB\"\n", "\n", " s = \"\"\n", " #s += f\"nb_vectors={_nb_vectors}, dim_vectors={_dim_vectors}, max_index_memory_usage={_max_index_memory_usage}\\n\"\n", " opti_keys = get_optimal_index_keys_v2(_nb_vectors, _dim_vectors, _max_index_memory_usage)\n", "\n", " if not opti_keys:\n", " s += 'Impossible to find index parameters for such a large dataset and low memory'\n", " else:\n", " index_metadada = IndexMetadata(opti_keys[0], _nb_vectors, _dim_vectors)\n", " \n", " s += f\"The optimal index would be: {opti_keys[0]}\"\n", " s+= \"\\n\\n\"\n", " s+= index_metadada.get_index_description(tunable_parameters_infos=True)\n", "\n", " return s\n", "\n", "text = widgets.Textarea(\n", " value=str(get_text()),\n", " placeholder='...',\n", " description='Result:',\n", " disabled=False,\n", " rows = 50,\n", " continuous_update=False,\n", " layout={'width': '100%'}\n", ")\n", "\n", "def update(b):\n", " # Display the message within the output widget.\n", " with output:\n", " text.value = get_text()\n", "\n", "nb_vectors.observe(update)\n", "dim_vectors.observe(update)\n", "max_index_memory_usage.observe(update)\n", "\n", "display(HBox([Label('Number of vectors in the dataset'), nb_vectors]))\n", "display(HBox([Label('Dimension of vectors in the dataset'), dim_vectors]))\n", "display(HBox([Label('Max size of index in MB'), max_index_memory_usage]))\n", "display(output)\n", "display(text)" ], "outputs": [ { "output_type": "display_data", "data": { "text/plain": [ "HBox(children=(Label(value='Number of vectors in the dataset'), FloatLogSlider(value=10000.0, max=9.0, min=1.0…" ], "application/vnd.jupyter.widget-view+json": { "model_id": "88c93b117953423db80241f05795b97c", "version_major": 2, "version_minor": 0 } }, "metadata": {} }, { "output_type": "display_data", "data": { "text/plain": [ "HBox(children=(Label(value='Dimension of vectors in the dataset'), FloatLogSlider(value=128.0, base=2.0, max=1…" ], "application/vnd.jupyter.widget-view+json": { "model_id": "f8f983f58ac94450a2c132378b792a44", "version_major": 2, "version_minor": 0 } }, "metadata": {} }, { "output_type": "display_data", "data": { "text/plain": [ "HBox(children=(Label(value='Max size of index in MB'), FloatLogSlider(value=100.0, max=5.0, readout_format='.0…" ], "application/vnd.jupyter.widget-view+json": { "model_id": "18bd4c8c2c41477da5e4cb2146c3d5cd", "version_major": 2, "version_minor": 0 } }, "metadata": {} }, { "output_type": "display_data", "data": { "text/plain": [ "Output()" ], "application/vnd.jupyter.widget-view+json": { "model_id": "51fa5779c6b64b969b35fdc06ea0c0c5", "version_major": 2, "version_minor": 0 } }, "metadata": {} }, { "output_type": "display_data", "data": { "text/plain": [ "Textarea(value='The optimal index would be: HNSW32\\n\\nAn HNSW index.\\nThe size of the index should be around 7…" ], "application/vnd.jupyter.widget-view+json": { "model_id": "c2b6b8a046614e82bcf511b55d3e661d", "version_major": 2, "version_minor": 0 } }, "metadata": {} } ], "metadata": { "cellView": "form", "colab": { "base_uri": "https://localhost:8080/", "height": 145, "referenced_widgets": [ "7415959ef0a549a69d819f0a431e81d5", "1487325e76924171862a58a3bc211295", "b770b5398c704798a22dbe62f6959e64", "d4e9c137afed4f308bebaed3816014d0", "2f2dfebb8f7441318b0b5fcc97e9ebf8", "c8ee7961a706418899b53763cc5ede2d", "6a79ec1040a94c9ba0b0a1408872f9d2", "cdd68857e90b48e0be42935b094291ff", "b45c7e853fb94c81b3930dbc3ac73bf5", "2226cc8a4a8943c9ab589e23abad66a1", "fac2fcc3c3a942ec999d1e47f67b8ad9", "2bb953fde246491dac141dc30b4ad81b", "38e9eea2ca334daf98e87d8cad907af2", "44efddee2b8348b097e8cc628dd94872", "64182b4c76fa43699754cf8360e77b8b", "5058e22adca845cea8eebb59ea656706", "d14cd8d4e6f44ac7a02e9ea41079b413", "561eb0d0d9964825a4b119c7ca57ce1b", "66b6fd86123b41a4b58f2b646a2a4821", "9a1f100b300c47efa3b067e101accd40", "fecdb4e01333420dbdfc4e6fe818038d", "7dfdc4e5cc1a4f86a3cd8200cbcddea2", "4136c942c80447ed904751b1282d0fff", "e5bcf2224c2748e3974d6cef7100860e", "1076767e135c48e5a44d602bae499441", "4e204452a8284e89b2e60f6389f095c2", "70b522750a2041b88409281b4d9e656a", "b3af14305cff4225bc8ab1502e3a30a7", "e500591fb6314db19809e35de527450c" ] }, "id": "adVkGiPXuNth", "outputId": "faadfe6b-4fe8-4a69-eb8d-c076dfdbe118" } } ], "metadata": { "colab": { "collapsed_sections": [], "name": "autofaiss_index_selection_demo.ipynb", "provenance": [] }, "kernelspec": { "display_name": "Python Criteo (MOAB #43056)", "language": "python", "name": "python-kernel-43056" }, "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.6.8" }, "widgets": { "application/vnd.jupyter.widget-state+json": { "1076767e135c48e5a44d602bae499441": { "model_module": "@jupyter-widgets/output", "model_name": "OutputModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/output", "_model_module_version": "1.0.0", "_model_name": "OutputModel", "_view_count": null, "_view_module": "@jupyter-widgets/output", "_view_module_version": "1.0.0", "_view_name": "OutputView", "layout": "IPY_MODEL_4e204452a8284e89b2e60f6389f095c2", "msg_id": "", "outputs": [] } }, "1487325e76924171862a58a3bc211295": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "2226cc8a4a8943c9ab589e23abad66a1": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "2bb953fde246491dac141dc30b4ad81b": { "model_module": "@jupyter-widgets/controls", "model_name": "FloatLogSliderModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "FloatLogSliderModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "FloatLogSliderView", "base": 10, "continuous_update": true, "description": "", "description_tooltip": null, "disabled": false, "layout": "IPY_MODEL_5058e22adca845cea8eebb59ea656706", "max": 4, "min": 0, "orientation": "horizontal", "readout": true, "readout_format": ".0f", "step": 0.1, "style": "IPY_MODEL_64182b4c76fa43699754cf8360e77b8b", "value": 398.1071705534973 } }, "2f2dfebb8f7441318b0b5fcc97e9ebf8": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "DescriptionStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "" } }, "38e9eea2ca334daf98e87d8cad907af2": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "DescriptionStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "" } }, "4136c942c80447ed904751b1282d0fff": { "model_module": "@jupyter-widgets/controls", "model_name": "SliderStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "SliderStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "", "handle_color": null } }, "44efddee2b8348b097e8cc628dd94872": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "4e204452a8284e89b2e60f6389f095c2": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "5058e22adca845cea8eebb59ea656706": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "561eb0d0d9964825a4b119c7ca57ce1b": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "64182b4c76fa43699754cf8360e77b8b": { "model_module": "@jupyter-widgets/controls", "model_name": "SliderStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "SliderStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "", "handle_color": null } }, "66b6fd86123b41a4b58f2b646a2a4821": { "model_module": "@jupyter-widgets/controls", "model_name": "LabelModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "LabelModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "LabelView", "description": "", "description_tooltip": null, "layout": "IPY_MODEL_7dfdc4e5cc1a4f86a3cd8200cbcddea2", "placeholder": "​", "style": "IPY_MODEL_fecdb4e01333420dbdfc4e6fe818038d", "value": "Max size of index in MB" } }, "6a79ec1040a94c9ba0b0a1408872f9d2": { "model_module": "@jupyter-widgets/controls", "model_name": "SliderStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "SliderStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "", "handle_color": null } }, "70b522750a2041b88409281b4d9e656a": { "model_module": "@jupyter-widgets/controls", "model_name": "LabelModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "LabelModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "LabelView", "description": "String:", "description_tooltip": null, "layout": "IPY_MODEL_e500591fb6314db19809e35de527450c", "placeholder": "...", "style": "IPY_MODEL_b3af14305cff4225bc8ab1502e3a30a7", "value": "The optimal index would be: OPQ48_336,IVF1024_HNSW32,PQ48x8" } }, "7415959ef0a549a69d819f0a431e81d5": { "model_module": "@jupyter-widgets/controls", "model_name": "HBoxModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "HBoxModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "HBoxView", "box_style": "", "children": [ "IPY_MODEL_b770b5398c704798a22dbe62f6959e64", "IPY_MODEL_d4e9c137afed4f308bebaed3816014d0" ], "layout": "IPY_MODEL_1487325e76924171862a58a3bc211295" } }, "7dfdc4e5cc1a4f86a3cd8200cbcddea2": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "9a1f100b300c47efa3b067e101accd40": { "model_module": "@jupyter-widgets/controls", "model_name": "FloatLogSliderModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "FloatLogSliderModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "FloatLogSliderView", "base": 10, "continuous_update": true, "description": "", "description_tooltip": null, "disabled": false, "layout": "IPY_MODEL_e5bcf2224c2748e3974d6cef7100860e", "max": 4, "min": 0, "orientation": "horizontal", "readout": true, "readout_format": ".0f", "step": 0.1, "style": "IPY_MODEL_4136c942c80447ed904751b1282d0fff", "value": 630.957344480193 } }, "b3af14305cff4225bc8ab1502e3a30a7": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "DescriptionStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "" } }, "b45c7e853fb94c81b3930dbc3ac73bf5": { "model_module": "@jupyter-widgets/controls", "model_name": "HBoxModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "HBoxModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "HBoxView", "box_style": "", "children": [ "IPY_MODEL_fac2fcc3c3a942ec999d1e47f67b8ad9", "IPY_MODEL_2bb953fde246491dac141dc30b4ad81b" ], "layout": "IPY_MODEL_2226cc8a4a8943c9ab589e23abad66a1" } }, "b770b5398c704798a22dbe62f6959e64": { "model_module": "@jupyter-widgets/controls", "model_name": "LabelModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "LabelModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "LabelView", "description": "", "description_tooltip": null, "layout": "IPY_MODEL_c8ee7961a706418899b53763cc5ede2d", "placeholder": "​", "style": "IPY_MODEL_2f2dfebb8f7441318b0b5fcc97e9ebf8", "value": "Number of vectors in the dataset" } }, "c8ee7961a706418899b53763cc5ede2d": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "cdd68857e90b48e0be42935b094291ff": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "d14cd8d4e6f44ac7a02e9ea41079b413": { "model_module": "@jupyter-widgets/controls", "model_name": "HBoxModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "HBoxModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "HBoxView", "box_style": "", "children": [ "IPY_MODEL_66b6fd86123b41a4b58f2b646a2a4821", "IPY_MODEL_9a1f100b300c47efa3b067e101accd40" ], "layout": "IPY_MODEL_561eb0d0d9964825a4b119c7ca57ce1b" } }, "d4e9c137afed4f308bebaed3816014d0": { "model_module": "@jupyter-widgets/controls", "model_name": "FloatLogSliderModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "FloatLogSliderModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "FloatLogSliderView", "base": 10, "continuous_update": true, "description": "", "description_tooltip": null, "disabled": false, "layout": "IPY_MODEL_cdd68857e90b48e0be42935b094291ff", "max": 9, "min": 1, "orientation": "horizontal", "readout": true, "readout_format": ".0f", "step": 0.1, "style": "IPY_MODEL_6a79ec1040a94c9ba0b0a1408872f9d2", "value": 39810.71705534969 } }, "e500591fb6314db19809e35de527450c": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "e5bcf2224c2748e3974d6cef7100860e": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "fac2fcc3c3a942ec999d1e47f67b8ad9": { "model_module": "@jupyter-widgets/controls", "model_name": "LabelModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "LabelModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "LabelView", "description": "", "description_tooltip": null, "layout": "IPY_MODEL_44efddee2b8348b097e8cc628dd94872", "placeholder": "​", "style": "IPY_MODEL_38e9eea2ca334daf98e87d8cad907af2", "value": "Dimension of vectors in the dataset" } }, "fecdb4e01333420dbdfc4e6fe818038d": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "DescriptionStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "" } } } } }, "nbformat": 4, "nbformat_minor": 4 }