Skip to content

Instantly share code, notes, and snippets.

@pszemraj
Last active January 23, 2024 07:43
Show Gist options
  • Save pszemraj/f1168c3afc8f0a9166af27939546fd3e to your computer and use it in GitHub Desktop.
Save pszemraj/f1168c3afc8f0a9166af27939546fd3e to your computer and use it in GitHub Desktop.
semantic search inference - ml4hc.ipynb
Display the source blob
Display the rendered blob
Raw
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"name": "semantic search inference - ml4hc.ipynb",
"provenance": [],
"collapsed_sections": [
"sX1pA0zk0sqA"
],
"authorship_tag": "ABX9TyM8Zl/uTZo5TLYnDpcczobk",
"include_colab_link": true
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
"f4996bdac8f640d7bad4fe04e6254c10": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"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_6b8fbd064b96434b96399237b3a249e0",
"IPY_MODEL_8efeeba3146f4f6fb89d8f7d95cbc000",
"IPY_MODEL_22011ee574df43588b78c4a0ba5a0e11"
],
"layout": "IPY_MODEL_08908deb16334b06a32ba17da3bfcdbf"
}
},
"6b8fbd064b96434b96399237b3a249e0": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_59b9e112cb364de189a873ddf9ef6ebf",
"placeholder": "​",
"style": "IPY_MODEL_d6eab5f4b41d4d918be996f072ad8aac",
"value": "Downloading: 100%"
}
},
"8efeeba3146f4f6fb89d8f7d95cbc000": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_b006118684c841b6abf279b1edbc56f3",
"max": 1175,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_9c1ee78a29dc480e95bd48c3318880e8",
"value": 1175
}
},
"22011ee574df43588b78c4a0ba5a0e11": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_2d9fc239e7104310ab4a791486c0fc97",
"placeholder": "​",
"style": "IPY_MODEL_4a811e851be44cf7b556376b70283867",
"value": " 1.18k/1.18k [00:00<00:00, 28.1kB/s]"
}
},
"08908deb16334b06a32ba17da3bfcdbf": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"59b9e112cb364de189a873ddf9ef6ebf": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"d6eab5f4b41d4d918be996f072ad8aac": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"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": ""
}
},
"b006118684c841b6abf279b1edbc56f3": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"9c1ee78a29dc480e95bd48c3318880e8": {
"model_module": "@jupyter-widgets/controls",
"model_name": "ProgressStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"2d9fc239e7104310ab4a791486c0fc97": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"4a811e851be44cf7b556376b70283867": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"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": ""
}
},
"5b57cef12f96413f9847f452181d1f40": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"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_83b79a2efc8e46bda1355ef09b77791b",
"IPY_MODEL_ae92d508e0414f28a2ad0225e8a48572",
"IPY_MODEL_f9e406c32ec74ded91a9614011e4b79a"
],
"layout": "IPY_MODEL_3aa1a22ea08442eaaf3b0f9c64c96148"
}
},
"83b79a2efc8e46bda1355ef09b77791b": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_2a7deb821e1047409ae89678897f2e0e",
"placeholder": "​",
"style": "IPY_MODEL_df69d265510f4d6ebef463d898e86994",
"value": "Downloading: 100%"
}
},
"ae92d508e0414f28a2ad0225e8a48572": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_345176e29a154cb3a486f52a8b9b1a1b",
"max": 190,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_d755b6e1defd48948239cda748d32655",
"value": 190
}
},
"f9e406c32ec74ded91a9614011e4b79a": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_822a6943878e4e7fb2d16a80356e4a1b",
"placeholder": "​",
"style": "IPY_MODEL_13a1a2a4e6654d878218b8a4e8f59400",
"value": " 190/190 [00:00<00:00, 5.10kB/s]"
}
},
"3aa1a22ea08442eaaf3b0f9c64c96148": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"2a7deb821e1047409ae89678897f2e0e": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"df69d265510f4d6ebef463d898e86994": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"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": ""
}
},
"345176e29a154cb3a486f52a8b9b1a1b": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"d755b6e1defd48948239cda748d32655": {
"model_module": "@jupyter-widgets/controls",
"model_name": "ProgressStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"822a6943878e4e7fb2d16a80356e4a1b": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"13a1a2a4e6654d878218b8a4e8f59400": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"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": ""
}
},
"f153195872504808bf35e0b998a6c2e8": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"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_8e0a27866c0b4852993f8402b8c8221c",
"IPY_MODEL_027889e5c2464256bc4b2f6f3bbd20c8",
"IPY_MODEL_baf0e666267447d6901c524b2c7de451"
],
"layout": "IPY_MODEL_8729e50ab11b437989a906811c92e5f3"
}
},
"8e0a27866c0b4852993f8402b8c8221c": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_257c61fb0d30448c8f216dd138868379",
"placeholder": "​",
"style": "IPY_MODEL_26045cea50f6459d81b5dec39f3102a1",
"value": "Downloading: 100%"
}
},
"027889e5c2464256bc4b2f6f3bbd20c8": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_15d93738a88345c8b056a5b7d3ca5f4e",
"max": 5118,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_cbd67fcd52684016bc761f41081d3bfc",
"value": 5118
}
},
"baf0e666267447d6901c524b2c7de451": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_d615e5f403bd4febade1a8406d7d0e7b",
"placeholder": "​",
"style": "IPY_MODEL_3581faccb9f7458b8a5452d653ce4391",
"value": " 5.12k/5.12k [00:00<00:00, 7.19kB/s]"
}
},
"8729e50ab11b437989a906811c92e5f3": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"257c61fb0d30448c8f216dd138868379": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"26045cea50f6459d81b5dec39f3102a1": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"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": ""
}
},
"15d93738a88345c8b056a5b7d3ca5f4e": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"cbd67fcd52684016bc761f41081d3bfc": {
"model_module": "@jupyter-widgets/controls",
"model_name": "ProgressStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"d615e5f403bd4febade1a8406d7d0e7b": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"3581faccb9f7458b8a5452d653ce4391": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"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": ""
}
},
"7e1c4ca84a6448f1a73e76736da5982a": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"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_934d049601f640a889e70b2d2101d171",
"IPY_MODEL_c0d225abc0d54611bd4bdbcdac0e6da7",
"IPY_MODEL_0d96298aba824ad297d4a3e6e549feb8"
],
"layout": "IPY_MODEL_10563074675f49e3b0e8c0eba62a8a32"
}
},
"934d049601f640a889e70b2d2101d171": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_e3123f0ead894f79bc3f20d382c37650",
"placeholder": "​",
"style": "IPY_MODEL_5df6d149f9f74ad0bc9a43502c16cab6",
"value": "Downloading: 100%"
}
},
"c0d225abc0d54611bd4bdbcdac0e6da7": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_9dec079e23784828830de4af387e018f",
"max": 545,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_ff9ecba413ef4cec93edede7fd004156",
"value": 545
}
},
"0d96298aba824ad297d4a3e6e549feb8": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_4b7a8e7475614aeeb055a55150f113d4",
"placeholder": "​",
"style": "IPY_MODEL_8df1a3c521254241bde7db4cd73510ce",
"value": " 545/545 [00:00<00:00, 2.98kB/s]"
}
},
"10563074675f49e3b0e8c0eba62a8a32": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"e3123f0ead894f79bc3f20d382c37650": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"5df6d149f9f74ad0bc9a43502c16cab6": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"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": ""
}
},
"9dec079e23784828830de4af387e018f": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"ff9ecba413ef4cec93edede7fd004156": {
"model_module": "@jupyter-widgets/controls",
"model_name": "ProgressStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"4b7a8e7475614aeeb055a55150f113d4": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"8df1a3c521254241bde7db4cd73510ce": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"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": ""
}
},
"bd64a0165061473084988e67d1c9a98b": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"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_3a9040d862224954908795ef75a5df0d",
"IPY_MODEL_503896efb7a84254aae6215090f0281b",
"IPY_MODEL_b0b69f02896e4c97ac90473df3e72e49"
],
"layout": "IPY_MODEL_c30cdb3142b04621b7e06a15bfb08508"
}
},
"3a9040d862224954908795ef75a5df0d": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_0eb006a52133489babbba8dd4e49fc0c",
"placeholder": "​",
"style": "IPY_MODEL_1f3a6091d4944bfdbe7a640a9951fdcb",
"value": "Downloading: 100%"
}
},
"503896efb7a84254aae6215090f0281b": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_a1a60eb2d6a84d1880a5193a524f6c57",
"max": 122,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_a8d6797026a44308aad8670ece6e7f69",
"value": 122
}
},
"b0b69f02896e4c97ac90473df3e72e49": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_cf9682c2e2714b92ac102bbe5347c074",
"placeholder": "​",
"style": "IPY_MODEL_0d41c37ab4da4c44aa7e8e1977caf4ed",
"value": " 122/122 [00:00<00:00, 877B/s]"
}
},
"c30cdb3142b04621b7e06a15bfb08508": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"0eb006a52133489babbba8dd4e49fc0c": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"1f3a6091d4944bfdbe7a640a9951fdcb": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"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": ""
}
},
"a1a60eb2d6a84d1880a5193a524f6c57": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"a8d6797026a44308aad8670ece6e7f69": {
"model_module": "@jupyter-widgets/controls",
"model_name": "ProgressStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"cf9682c2e2714b92ac102bbe5347c074": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"0d41c37ab4da4c44aa7e8e1977caf4ed": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"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": ""
}
},
"686d82e696cd4745ba9d6447b926cff0": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"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_f1d15573a4f748d68651f06391d60b8b",
"IPY_MODEL_fef1a9075a604b86a130f520a57b72fc",
"IPY_MODEL_84158e5ccb1944598a82d40df91343ba"
],
"layout": "IPY_MODEL_319b2e0e5d254248b7b18d592f707e23"
}
},
"f1d15573a4f748d68651f06391d60b8b": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_611c6359599c46d4a89b9eb157247a1b",
"placeholder": "​",
"style": "IPY_MODEL_9304f3b6b7574026966ea3fd9e08411e",
"value": "Downloading: 100%"
}
},
"fef1a9075a604b86a130f520a57b72fc": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_c3e5738daf48495aaa3160f817ad2d14",
"max": 265486777,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_00afa9c7e98b48ad99e3ba4dc5b4a8d7",
"value": 265486777
}
},
"84158e5ccb1944598a82d40df91343ba": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_93a8b1c4c0db4ea597cab112939e75aa",
"placeholder": "​",
"style": "IPY_MODEL_38e9e57936b947969ae50ba6d8839f47",
"value": " 265M/265M [00:14<00:00, 18.6MB/s]"
}
},
"319b2e0e5d254248b7b18d592f707e23": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"611c6359599c46d4a89b9eb157247a1b": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"9304f3b6b7574026966ea3fd9e08411e": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"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": ""
}
},
"c3e5738daf48495aaa3160f817ad2d14": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"00afa9c7e98b48ad99e3ba4dc5b4a8d7": {
"model_module": "@jupyter-widgets/controls",
"model_name": "ProgressStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"93a8b1c4c0db4ea597cab112939e75aa": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"38e9e57936b947969ae50ba6d8839f47": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"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": ""
}
},
"158b57f6b61a49d197f7e7cc1326d8f9": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"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_c85794eb98d24d5aaee5a5b9688db266",
"IPY_MODEL_77db7ce1e52c41808d4a75492e548b86",
"IPY_MODEL_ada99098046c4decaee810a4500a3bb2"
],
"layout": "IPY_MODEL_0774ad0ef65646728c5b02e7bcfec4f4"
}
},
"c85794eb98d24d5aaee5a5b9688db266": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_ba8f97d43bac44ce96eac6effff4a568",
"placeholder": "​",
"style": "IPY_MODEL_815ab2663626411c8ab04317dbfc9129",
"value": "Downloading: 100%"
}
},
"77db7ce1e52c41808d4a75492e548b86": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_665d0164883a4f609f49d8d1464a7b52",
"max": 53,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_4bf4a311399c47c68e4025f0ec8bb9e7",
"value": 53
}
},
"ada99098046c4decaee810a4500a3bb2": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_d5df52ae8bf4430ab9f064cffa8dc537",
"placeholder": "​",
"style": "IPY_MODEL_638459acfb834f42aff7252b81c6caca",
"value": " 53.0/53.0 [00:00<00:00, 987B/s]"
}
},
"0774ad0ef65646728c5b02e7bcfec4f4": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"ba8f97d43bac44ce96eac6effff4a568": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"815ab2663626411c8ab04317dbfc9129": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"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": ""
}
},
"665d0164883a4f609f49d8d1464a7b52": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"4bf4a311399c47c68e4025f0ec8bb9e7": {
"model_module": "@jupyter-widgets/controls",
"model_name": "ProgressStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"d5df52ae8bf4430ab9f064cffa8dc537": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"638459acfb834f42aff7252b81c6caca": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"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": ""
}
},
"de36d685ca3a437aa56c4bfb1fbcced5": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"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_1541fc6b7db84ff7aaaad20105528475",
"IPY_MODEL_808ce7877e324575a2c5d40871eaf472",
"IPY_MODEL_03a3153e0c904b8b9323803e4979f7f3"
],
"layout": "IPY_MODEL_6482baf8c3624cbbb1743fdd59a3323c"
}
},
"1541fc6b7db84ff7aaaad20105528475": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_98384fd694ce4dc3b6864239baa2e23f",
"placeholder": "​",
"style": "IPY_MODEL_8b49bbd444aa4affb54ef05f50261885",
"value": "Downloading: 100%"
}
},
"808ce7877e324575a2c5d40871eaf472": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_ef0475c24c544b6c84d451d04633d78e",
"max": 112,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_44334110b58c4206b0f90d3fb6a330e1",
"value": 112
}
},
"03a3153e0c904b8b9323803e4979f7f3": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_fc7348c3a91c49299c7fb068f62032df",
"placeholder": "​",
"style": "IPY_MODEL_1f89fa27215e419f9632036845af519f",
"value": " 112/112 [00:00<00:00, 2.65kB/s]"
}
},
"6482baf8c3624cbbb1743fdd59a3323c": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"98384fd694ce4dc3b6864239baa2e23f": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"8b49bbd444aa4affb54ef05f50261885": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"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": ""
}
},
"ef0475c24c544b6c84d451d04633d78e": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"44334110b58c4206b0f90d3fb6a330e1": {
"model_module": "@jupyter-widgets/controls",
"model_name": "ProgressStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"fc7348c3a91c49299c7fb068f62032df": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"1f89fa27215e419f9632036845af519f": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"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": ""
}
},
"871109bc3522472b82b660ae37a39cb9": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"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_e80b4f9a3fa24be2a3ced5620c7288ef",
"IPY_MODEL_0dfefc2d68a2439ca20cdfccb741108f",
"IPY_MODEL_2cae26d0f67347c29af6f459b4d6a96a"
],
"layout": "IPY_MODEL_76aaf516da0b468685171734842336f0"
}
},
"e80b4f9a3fa24be2a3ced5620c7288ef": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_4cc12e0be0154ef3af893b3bcb973fb9",
"placeholder": "​",
"style": "IPY_MODEL_d96832e957d44002b37984916b46c431",
"value": "Downloading: 100%"
}
},
"0dfefc2d68a2439ca20cdfccb741108f": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_e4bde79ab4b34d11a0611382f5ca93f7",
"max": 466248,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_60d806e29bb0400fb1e4ae3efe6de646",
"value": 466248
}
},
"2cae26d0f67347c29af6f459b4d6a96a": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_bbfe90574fcc464ea5f9c07d5b5a3ec8",
"placeholder": "​",
"style": "IPY_MODEL_e9759ec7648e4461ad20c5758885d75b",
"value": " 466k/466k [00:00<00:00, 618kB/s]"
}
},
"76aaf516da0b468685171734842336f0": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"4cc12e0be0154ef3af893b3bcb973fb9": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"d96832e957d44002b37984916b46c431": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"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": ""
}
},
"e4bde79ab4b34d11a0611382f5ca93f7": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"60d806e29bb0400fb1e4ae3efe6de646": {
"model_module": "@jupyter-widgets/controls",
"model_name": "ProgressStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"bbfe90574fcc464ea5f9c07d5b5a3ec8": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"e9759ec7648e4461ad20c5758885d75b": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"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": ""
}
},
"6346c24fb69748d8b213199bb9701f1b": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"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_efd176a57fa342539edc2dbc577bfff8",
"IPY_MODEL_ec4f56632b3a45e385b767161a55b266",
"IPY_MODEL_ed4a322e2c4c45efa30607324fb79ac8"
],
"layout": "IPY_MODEL_8b7a21d64d914be39769745c8a24eb6e"
}
},
"efd176a57fa342539edc2dbc577bfff8": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_59c63f66a7954e4f821166c2269c3961",
"placeholder": "​",
"style": "IPY_MODEL_dcf944f88e304958a23b2ef6aec9a8b3",
"value": "Downloading: 100%"
}
},
"ec4f56632b3a45e385b767161a55b266": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_f72dc8bd5e234bdcaa52c2ba407fc909",
"max": 319,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_a1791269b30e406f9569e575c22e75b1",
"value": 319
}
},
"ed4a322e2c4c45efa30607324fb79ac8": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_7888b3037a9a45cdba0526cceffc8c98",
"placeholder": "​",
"style": "IPY_MODEL_66e110a8db8049da855a521458748519",
"value": " 319/319 [00:00<00:00, 6.30kB/s]"
}
},
"8b7a21d64d914be39769745c8a24eb6e": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"59c63f66a7954e4f821166c2269c3961": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"dcf944f88e304958a23b2ef6aec9a8b3": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"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": ""
}
},
"f72dc8bd5e234bdcaa52c2ba407fc909": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"a1791269b30e406f9569e575c22e75b1": {
"model_module": "@jupyter-widgets/controls",
"model_name": "ProgressStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"7888b3037a9a45cdba0526cceffc8c98": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"66e110a8db8049da855a521458748519": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"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": ""
}
},
"56ddd4fafa0d4a4e86e47ababdcf8ccd": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"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_eb69a3ce0a2e43d4a7021c05beb10307",
"IPY_MODEL_365b634b52dd4a3fb4da577449fe4da6",
"IPY_MODEL_5addaf81564945dabca604dc449dd307"
],
"layout": "IPY_MODEL_a5cedc84fb2548439783c43501aa1aaa"
}
},
"eb69a3ce0a2e43d4a7021c05beb10307": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_4748757e55e14923a5701d79c82cfcf9",
"placeholder": "​",
"style": "IPY_MODEL_12523713e76a40dba004fc9a00004f5f",
"value": "Downloading: 100%"
}
},
"365b634b52dd4a3fb4da577449fe4da6": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_bebba10cb3104798b096b4f2eb361233",
"max": 231508,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_7e95a78b1f3d4b6da9a0354d3dae7927",
"value": 231508
}
},
"5addaf81564945dabca604dc449dd307": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_42890a4de7f946289357c3ca016c3a34",
"placeholder": "​",
"style": "IPY_MODEL_4945e2e7157f4fc9986fa2b678450459",
"value": " 232k/232k [00:00<00:00, 337kB/s]"
}
},
"a5cedc84fb2548439783c43501aa1aaa": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"4748757e55e14923a5701d79c82cfcf9": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"12523713e76a40dba004fc9a00004f5f": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"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": ""
}
},
"bebba10cb3104798b096b4f2eb361233": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"7e95a78b1f3d4b6da9a0354d3dae7927": {
"model_module": "@jupyter-widgets/controls",
"model_name": "ProgressStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"42890a4de7f946289357c3ca016c3a34": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"4945e2e7157f4fc9986fa2b678450459": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"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": ""
}
},
"ccaf2cb3b81d427b8e27a0eef0a25bc7": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"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_53ab5a8ab24b4ae7946d49d58e1f0a7b",
"IPY_MODEL_b2d4b07170de455cac467af949d387a3",
"IPY_MODEL_c296f562b57942728fca12dc9438b1c5"
],
"layout": "IPY_MODEL_d0f2c805fee24decbc0e626f63abee92"
}
},
"53ab5a8ab24b4ae7946d49d58e1f0a7b": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_f54c8c3f8651475eb29be4017850b793",
"placeholder": "​",
"style": "IPY_MODEL_9629c94ede0644cb97c76383c83627a6",
"value": "Downloading: 100%"
}
},
"b2d4b07170de455cac467af949d387a3": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_4f412c2bfb154b95988f25898a020d56",
"max": 349,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_a9d04dec5cb94a398e3904fe0764ed32",
"value": 349
}
},
"c296f562b57942728fca12dc9438b1c5": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_2fff64934a0049e98a359952c520e966",
"placeholder": "​",
"style": "IPY_MODEL_ef21cee20a3b491690e517faf4726542",
"value": " 349/349 [00:00<00:00, 9.69kB/s]"
}
},
"d0f2c805fee24decbc0e626f63abee92": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"f54c8c3f8651475eb29be4017850b793": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"9629c94ede0644cb97c76383c83627a6": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"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": ""
}
},
"4f412c2bfb154b95988f25898a020d56": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"a9d04dec5cb94a398e3904fe0764ed32": {
"model_module": "@jupyter-widgets/controls",
"model_name": "ProgressStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"2fff64934a0049e98a359952c520e966": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"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
}
},
"ef21cee20a3b491690e517faf4726542": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"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": ""
}
}
}
}
},
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "view-in-github",
"colab_type": "text"
},
"source": [
"<a href=\"https://colab.research.google.com/gist/pszemraj/f1168c3afc8f0a9166af27939546fd3e/semantic-search-inference-ml4hc.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
"cell_type": "markdown",
"source": [
"# <center> asymmetric semantic search inference on pre-embedded data\n",
"\n",
"> this is a notebook to demo/use generated embeddings on course data as text (slides, lecture audio, etc) via **asymmetric search** sort of like google.\n",
"\n",
"\n",
"- this is largely based on SBERT docs found [here](https://www.sbert.net/examples/applications/semantic-search/README.html#python)\n",
"\n",
"by [Peter](https://peterszemraj.ch/)\n",
"\n",
"\n",
"---\n"
],
"metadata": {
"id": "Ej0_4M8vbaFx"
}
},
{
"cell_type": "markdown",
"source": [
"# setup\n"
],
"metadata": {
"id": "sX1pA0zk0sqA"
}
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"cellView": "form",
"id": "LrDWdEzv3LaX"
},
"outputs": [],
"source": [
"#@markdown add auto-Colab formatting with `IPython.display`\n",
"from IPython.display import HTML, display\n",
"# colab formatting\n",
"def set_css():\n",
" display(\n",
" HTML(\n",
" \"\"\"\n",
" <style>\n",
" pre {\n",
" white-space: pre-wrap;\n",
" }\n",
" </style>\n",
" \"\"\"\n",
" )\n",
" )\n",
"\n",
"get_ipython().events.register(\"pre_run_cell\", set_css)"
]
},
{
"cell_type": "markdown",
"source": [
"this notebook works perfectly fine without GPU, but if you want to use a GPU the below will tell you what it is\n"
],
"metadata": {
"id": "SzGHfgzizNoL"
}
},
{
"cell_type": "code",
"source": [
"!nvidia-smi"
],
"metadata": {
"id": "DJdHy1sSdbBj",
"outputId": "dbf2ddf5-f9d3-49a9-be20-6560f3cb5fb7",
"colab": {
"base_uri": "https://localhost:8080/",
"height": 0
}
},
"execution_count": 2,
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.HTML object>"
],
"text/html": [
"\n",
" <style>\n",
" pre {\n",
" white-space: pre-wrap;\n",
" }\n",
" </style>\n",
" "
]
},
"metadata": {}
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.\n",
"\n"
]
}
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"id": "vH8Re5UelYAc",
"cellView": "form",
"outputId": "e3cdbac4-06b2-4d86-c8b6-2ae2a3c6b28b",
"colab": {
"base_uri": "https://localhost:8080/",
"height": 0
}
},
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.HTML object>"
],
"text/html": [
"\n",
" <style>\n",
" pre {\n",
" white-space: pre-wrap;\n",
" }\n",
" </style>\n",
" "
]
},
"metadata": {}
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"\u001b[K |████████████████████████████████| 85 kB 2.7 MB/s \n",
"\u001b[K |████████████████████████████████| 35.3 MB 137 kB/s \n",
"\u001b[K |████████████████████████████████| 4.7 MB 48.2 MB/s \n",
"\u001b[K |████████████████████████████████| 1.3 MB 32.9 MB/s \n",
"\u001b[K |████████████████████████████████| 120 kB 42.2 MB/s \n",
"\u001b[K |████████████████████████████████| 6.6 MB 30.2 MB/s \n",
"\u001b[?25h Building wheel for sentence-transformers (setup.py) ... \u001b[?25l\u001b[?25hdone\n"
]
}
],
"source": [
"#@title installs\n",
"\n",
"!pip install -U sentence-transformers pyarrow -q\n",
"\n",
"import torch\n",
"from pathlib import Path\n",
"\n",
"from sentence_transformers import SentenceTransformer, util\n",
"import logging\n",
"logging.basicConfig(\n",
" level=logging.INFO, \n",
" format=\"%(asctime)s - %(levelname)s - %(message)s\",\n",
" filename=\"embed_coursedata.log\",\n",
"\n",
")"
]
},
{
"cell_type": "code",
"source": [
"hf_tag = \"sentence-transformers/msmarco-distilbert-cos-v5\" #@param {type:\"string\"}\n",
"\n",
"use_gpu = torch.cuda.is_available()\n",
"print(f\"using GPU = {use_gpu}\")\n",
"model = SentenceTransformer(\n",
" hf_tag,\n",
" device='cuda' if use_gpu else 'cpu',\n",
" )\n",
"# model = SentenceTransformer('sentence-transformers/msmarco-MiniLM-L12-cos-v5')\n",
"\n"
],
"metadata": {
"cellView": "form",
"id": "a-EsakIHY76n",
"outputId": "a4abdb51-c872-4a17-e98b-03caa62b0727",
"colab": {
"base_uri": "https://localhost:8080/",
"height": 0,
"referenced_widgets": [
"f4996bdac8f640d7bad4fe04e6254c10",
"6b8fbd064b96434b96399237b3a249e0",
"8efeeba3146f4f6fb89d8f7d95cbc000",
"22011ee574df43588b78c4a0ba5a0e11",
"08908deb16334b06a32ba17da3bfcdbf",
"59b9e112cb364de189a873ddf9ef6ebf",
"d6eab5f4b41d4d918be996f072ad8aac",
"b006118684c841b6abf279b1edbc56f3",
"9c1ee78a29dc480e95bd48c3318880e8",
"2d9fc239e7104310ab4a791486c0fc97",
"4a811e851be44cf7b556376b70283867",
"5b57cef12f96413f9847f452181d1f40",
"83b79a2efc8e46bda1355ef09b77791b",
"ae92d508e0414f28a2ad0225e8a48572",
"f9e406c32ec74ded91a9614011e4b79a",
"3aa1a22ea08442eaaf3b0f9c64c96148",
"2a7deb821e1047409ae89678897f2e0e",
"df69d265510f4d6ebef463d898e86994",
"345176e29a154cb3a486f52a8b9b1a1b",
"d755b6e1defd48948239cda748d32655",
"822a6943878e4e7fb2d16a80356e4a1b",
"13a1a2a4e6654d878218b8a4e8f59400",
"f153195872504808bf35e0b998a6c2e8",
"8e0a27866c0b4852993f8402b8c8221c",
"027889e5c2464256bc4b2f6f3bbd20c8",
"baf0e666267447d6901c524b2c7de451",
"8729e50ab11b437989a906811c92e5f3",
"257c61fb0d30448c8f216dd138868379",
"26045cea50f6459d81b5dec39f3102a1",
"15d93738a88345c8b056a5b7d3ca5f4e",
"cbd67fcd52684016bc761f41081d3bfc",
"d615e5f403bd4febade1a8406d7d0e7b",
"3581faccb9f7458b8a5452d653ce4391",
"7e1c4ca84a6448f1a73e76736da5982a",
"934d049601f640a889e70b2d2101d171",
"c0d225abc0d54611bd4bdbcdac0e6da7",
"0d96298aba824ad297d4a3e6e549feb8",
"10563074675f49e3b0e8c0eba62a8a32",
"e3123f0ead894f79bc3f20d382c37650",
"5df6d149f9f74ad0bc9a43502c16cab6",
"9dec079e23784828830de4af387e018f",
"ff9ecba413ef4cec93edede7fd004156",
"4b7a8e7475614aeeb055a55150f113d4",
"8df1a3c521254241bde7db4cd73510ce",
"bd64a0165061473084988e67d1c9a98b",
"3a9040d862224954908795ef75a5df0d",
"503896efb7a84254aae6215090f0281b",
"b0b69f02896e4c97ac90473df3e72e49",
"c30cdb3142b04621b7e06a15bfb08508",
"0eb006a52133489babbba8dd4e49fc0c",
"1f3a6091d4944bfdbe7a640a9951fdcb",
"a1a60eb2d6a84d1880a5193a524f6c57",
"a8d6797026a44308aad8670ece6e7f69",
"cf9682c2e2714b92ac102bbe5347c074",
"0d41c37ab4da4c44aa7e8e1977caf4ed",
"686d82e696cd4745ba9d6447b926cff0",
"f1d15573a4f748d68651f06391d60b8b",
"fef1a9075a604b86a130f520a57b72fc",
"84158e5ccb1944598a82d40df91343ba",
"319b2e0e5d254248b7b18d592f707e23",
"611c6359599c46d4a89b9eb157247a1b",
"9304f3b6b7574026966ea3fd9e08411e",
"c3e5738daf48495aaa3160f817ad2d14",
"00afa9c7e98b48ad99e3ba4dc5b4a8d7",
"93a8b1c4c0db4ea597cab112939e75aa",
"38e9e57936b947969ae50ba6d8839f47",
"158b57f6b61a49d197f7e7cc1326d8f9",
"c85794eb98d24d5aaee5a5b9688db266",
"77db7ce1e52c41808d4a75492e548b86",
"ada99098046c4decaee810a4500a3bb2",
"0774ad0ef65646728c5b02e7bcfec4f4",
"ba8f97d43bac44ce96eac6effff4a568",
"815ab2663626411c8ab04317dbfc9129",
"665d0164883a4f609f49d8d1464a7b52",
"4bf4a311399c47c68e4025f0ec8bb9e7",
"d5df52ae8bf4430ab9f064cffa8dc537",
"638459acfb834f42aff7252b81c6caca",
"de36d685ca3a437aa56c4bfb1fbcced5",
"1541fc6b7db84ff7aaaad20105528475",
"808ce7877e324575a2c5d40871eaf472",
"03a3153e0c904b8b9323803e4979f7f3",
"6482baf8c3624cbbb1743fdd59a3323c",
"98384fd694ce4dc3b6864239baa2e23f",
"8b49bbd444aa4affb54ef05f50261885",
"ef0475c24c544b6c84d451d04633d78e",
"44334110b58c4206b0f90d3fb6a330e1",
"fc7348c3a91c49299c7fb068f62032df",
"1f89fa27215e419f9632036845af519f",
"871109bc3522472b82b660ae37a39cb9",
"e80b4f9a3fa24be2a3ced5620c7288ef",
"0dfefc2d68a2439ca20cdfccb741108f",
"2cae26d0f67347c29af6f459b4d6a96a",
"76aaf516da0b468685171734842336f0",
"4cc12e0be0154ef3af893b3bcb973fb9",
"d96832e957d44002b37984916b46c431",
"e4bde79ab4b34d11a0611382f5ca93f7",
"60d806e29bb0400fb1e4ae3efe6de646",
"bbfe90574fcc464ea5f9c07d5b5a3ec8",
"e9759ec7648e4461ad20c5758885d75b",
"6346c24fb69748d8b213199bb9701f1b",
"efd176a57fa342539edc2dbc577bfff8",
"ec4f56632b3a45e385b767161a55b266",
"ed4a322e2c4c45efa30607324fb79ac8",
"8b7a21d64d914be39769745c8a24eb6e",
"59c63f66a7954e4f821166c2269c3961",
"dcf944f88e304958a23b2ef6aec9a8b3",
"f72dc8bd5e234bdcaa52c2ba407fc909",
"a1791269b30e406f9569e575c22e75b1",
"7888b3037a9a45cdba0526cceffc8c98",
"66e110a8db8049da855a521458748519",
"56ddd4fafa0d4a4e86e47ababdcf8ccd",
"eb69a3ce0a2e43d4a7021c05beb10307",
"365b634b52dd4a3fb4da577449fe4da6",
"5addaf81564945dabca604dc449dd307",
"a5cedc84fb2548439783c43501aa1aaa",
"4748757e55e14923a5701d79c82cfcf9",
"12523713e76a40dba004fc9a00004f5f",
"bebba10cb3104798b096b4f2eb361233",
"7e95a78b1f3d4b6da9a0354d3dae7927",
"42890a4de7f946289357c3ca016c3a34",
"4945e2e7157f4fc9986fa2b678450459",
"ccaf2cb3b81d427b8e27a0eef0a25bc7",
"53ab5a8ab24b4ae7946d49d58e1f0a7b",
"b2d4b07170de455cac467af949d387a3",
"c296f562b57942728fca12dc9438b1c5",
"d0f2c805fee24decbc0e626f63abee92",
"f54c8c3f8651475eb29be4017850b793",
"9629c94ede0644cb97c76383c83627a6",
"4f412c2bfb154b95988f25898a020d56",
"a9d04dec5cb94a398e3904fe0764ed32",
"2fff64934a0049e98a359952c520e966",
"ef21cee20a3b491690e517faf4726542"
]
}
},
"execution_count": 4,
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.HTML object>"
],
"text/html": [
"\n",
" <style>\n",
" pre {\n",
" white-space: pre-wrap;\n",
" }\n",
" </style>\n",
" "
]
},
"metadata": {}
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"using GPU = False\n"
]
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"Downloading: 0%| | 0.00/1.18k [00:00<?, ?B/s]"
],
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "f4996bdac8f640d7bad4fe04e6254c10"
}
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"Downloading: 0%| | 0.00/190 [00:00<?, ?B/s]"
],
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "5b57cef12f96413f9847f452181d1f40"
}
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"Downloading: 0%| | 0.00/5.12k [00:00<?, ?B/s]"
],
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "f153195872504808bf35e0b998a6c2e8"
}
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"Downloading: 0%| | 0.00/545 [00:00<?, ?B/s]"
],
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "7e1c4ca84a6448f1a73e76736da5982a"
}
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"Downloading: 0%| | 0.00/122 [00:00<?, ?B/s]"
],
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "bd64a0165061473084988e67d1c9a98b"
}
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"Downloading: 0%| | 0.00/265M [00:00<?, ?B/s]"
],
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "686d82e696cd4745ba9d6447b926cff0"
}
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"Downloading: 0%| | 0.00/53.0 [00:00<?, ?B/s]"
],
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "158b57f6b61a49d197f7e7cc1326d8f9"
}
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"Downloading: 0%| | 0.00/112 [00:00<?, ?B/s]"
],
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "de36d685ca3a437aa56c4bfb1fbcced5"
}
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"Downloading: 0%| | 0.00/466k [00:00<?, ?B/s]"
],
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "871109bc3522472b82b660ae37a39cb9"
}
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"Downloading: 0%| | 0.00/319 [00:00<?, ?B/s]"
],
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "6346c24fb69748d8b213199bb9701f1b"
}
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"Downloading: 0%| | 0.00/232k [00:00<?, ?B/s]"
],
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "56ddd4fafa0d4a4e86e47ababdcf8ccd"
}
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"Downloading: 0%| | 0.00/349 [00:00<?, ?B/s]"
],
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "ccaf2cb3b81d427b8e27a0eef0a25bc7"
}
},
"metadata": {}
}
]
},
{
"cell_type": "markdown",
"source": [
"## load data\n"
],
"metadata": {
"id": "t_17L9_H0vE1"
}
},
{
"cell_type": "code",
"source": [
"#@markdown Embeddings on documents are pre-computed :)\n",
"\n",
"url = \"https://www.dropbox.com/s/847egxwysc75g2p/embedded_course_data.pkl?dl=1\" #@param {type:\"string\"}\n"
],
"metadata": {
"cellView": "form",
"id": "WzlEqQ9PxLRe",
"outputId": "44246f24-f2fd-4053-cf04-4eb4a7c8f30d",
"colab": {
"base_uri": "https://localhost:8080/",
"height": 0
}
},
"execution_count": 5,
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.HTML object>"
],
"text/html": [
"\n",
" <style>\n",
" pre {\n",
" white-space: pre-wrap;\n",
" }\n",
" </style>\n",
" "
]
},
"metadata": {}
}
]
},
{
"cell_type": "code",
"source": [
"data_path = \"embedded_course_data.pkl\"\n",
"!wget -O $data_path $url"
],
"metadata": {
"id": "fMkGkeGbxWYw",
"outputId": "cd672bf0-8680-43d2-ae67-5cf8b3efa6aa",
"colab": {
"base_uri": "https://localhost:8080/",
"height": 0
}
},
"execution_count": 6,
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.HTML object>"
],
"text/html": [
"\n",
" <style>\n",
" pre {\n",
" white-space: pre-wrap;\n",
" }\n",
" </style>\n",
" "
]
},
"metadata": {}
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"--2022-09-02 14:17:49-- https://www.dropbox.com/s/847egxwysc75g2p/embedded_course_data.pkl?dl=1\n",
"Resolving www.dropbox.com (www.dropbox.com)... 162.125.80.18, 2620:100:6017:18::a27d:212\n",
"Connecting to www.dropbox.com (www.dropbox.com)|162.125.80.18|:443... connected.\n",
"HTTP request sent, awaiting response... 302 Found\n",
"Location: /s/dl/847egxwysc75g2p/embedded_course_data.pkl [following]\n",
"--2022-09-02 14:17:49-- https://www.dropbox.com/s/dl/847egxwysc75g2p/embedded_course_data.pkl\n",
"Reusing existing connection to www.dropbox.com:443.\n",
"HTTP request sent, awaiting response... 302 Found\n",
"Location: https://uc9beaf85f78916abdebe9585e3d.dl.dropboxusercontent.com/cd/0/get/BsIRAYwDMKVONRsCzI0qk9lNvvuf-vYWyYk_mn9k6EqT6rxl0HtiKS4Skb59YlKY2TnVh8eLDmnV8TaPyYJFoGXBJiwLukj8b_614HCrhQ9ueSVssBGVkNCqfSFAJZetdg_r-lIVvocuePiA9uUXpMaGtMjyBcUMp1wRg3GYw0T6ag/file?dl=1# [following]\n",
"--2022-09-02 14:17:50-- https://uc9beaf85f78916abdebe9585e3d.dl.dropboxusercontent.com/cd/0/get/BsIRAYwDMKVONRsCzI0qk9lNvvuf-vYWyYk_mn9k6EqT6rxl0HtiKS4Skb59YlKY2TnVh8eLDmnV8TaPyYJFoGXBJiwLukj8b_614HCrhQ9ueSVssBGVkNCqfSFAJZetdg_r-lIVvocuePiA9uUXpMaGtMjyBcUMp1wRg3GYw0T6ag/file?dl=1\n",
"Resolving uc9beaf85f78916abdebe9585e3d.dl.dropboxusercontent.com (uc9beaf85f78916abdebe9585e3d.dl.dropboxusercontent.com)... 162.125.80.15, 2620:100:6030:15::a27d:500f\n",
"Connecting to uc9beaf85f78916abdebe9585e3d.dl.dropboxusercontent.com (uc9beaf85f78916abdebe9585e3d.dl.dropboxusercontent.com)|162.125.80.15|:443... connected.\n",
"HTTP request sent, awaiting response... 200 OK\n",
"Length: 5685949 (5.4M) [application/binary]\n",
"Saving to: ‘embedded_course_data.pkl’\n",
"\n",
"embedded_course_dat 100%[===================>] 5.42M 11.8MB/s in 0.5s \n",
"\n",
"2022-09-02 14:17:55 (11.8 MB/s) - ‘embedded_course_data.pkl’ saved [5685949/5685949]\n",
"\n"
]
}
]
},
{
"cell_type": "code",
"source": [
"import joblib\n",
"data_path = Path(data_path).resolve()\n",
"embedded_course = joblib.load(data_path)\n",
"embedded_course.head()"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 0
},
"id": "cBGRPiPKxv-k",
"outputId": "25c06f15-0dae-4100-81ef-915c4beb8cb9"
},
"execution_count": 7,
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.HTML object>"
],
"text/html": [
"\n",
" <style>\n",
" pre {\n",
" white-space: pre-wrap;\n",
" }\n",
" </style>\n",
" "
]
},
"metadata": {}
},
{
"output_type": "execute_result",
"data": {
"text/plain": [
" id_within_doc doc_text \\\n",
"0 0 zurich natural language processing project 2 a... \n",
"1 1 alizee pace 29. 03. 2021 pain exposure physica... \n",
"2 2 ##359 doi : 10. 1007 / s00432 - 004 - 0552 mas... \n",
"3 3 history of chronic hepatitis in urban shanghai... \n",
"4 4 phase 3 trial in 3 ascending, orvolvement of a... \n",
"\n",
" doc_name doc_dir doc_relative_loc \\\n",
"0 OCR_Project2ML4HNLP_ coursedocsJune22-ml4hc 0.0 \n",
"1 OCR_Project2ML4HNLP_ coursedocsJune22-ml4hc 7.143 \n",
"2 OCR_Project2ML4HNLP_ coursedocsJune22-ml4hc 14.286 \n",
"3 OCR_Project2ML4HNLP_ coursedocsJune22-ml4hc 21.429 \n",
"4 OCR_Project2ML4HNLP_ coursedocsJune22-ml4hc 28.571 \n",
"\n",
" doc_embeddings \n",
"0 [-0.0071430462, -0.035852537, 0.06472769, -0.0... \n",
"1 [-0.054871712, 0.0041954266, 0.035234813, 0.00... \n",
"2 [0.012789174, 0.014841921, -0.01317768, -0.021... \n",
"3 [-0.042795025, -0.038891725, 0.023976067, -0.0... \n",
"4 [-0.05967743, -0.0730482, 0.05493018, -0.02719... "
],
"text/html": [
"\n",
" <div id=\"df-73f5c187-1032-4cee-b227-fe2847e21236\">\n",
" <div class=\"colab-df-container\">\n",
" <div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>id_within_doc</th>\n",
" <th>doc_text</th>\n",
" <th>doc_name</th>\n",
" <th>doc_dir</th>\n",
" <th>doc_relative_loc</th>\n",
" <th>doc_embeddings</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>0</td>\n",
" <td>zurich natural language processing project 2 a...</td>\n",
" <td>OCR_Project2ML4HNLP_</td>\n",
" <td>coursedocsJune22-ml4hc</td>\n",
" <td>0.0</td>\n",
" <td>[-0.0071430462, -0.035852537, 0.06472769, -0.0...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>1</td>\n",
" <td>alizee pace 29. 03. 2021 pain exposure physica...</td>\n",
" <td>OCR_Project2ML4HNLP_</td>\n",
" <td>coursedocsJune22-ml4hc</td>\n",
" <td>7.143</td>\n",
" <td>[-0.054871712, 0.0041954266, 0.035234813, 0.00...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>2</td>\n",
" <td>##359 doi : 10. 1007 / s00432 - 004 - 0552 mas...</td>\n",
" <td>OCR_Project2ML4HNLP_</td>\n",
" <td>coursedocsJune22-ml4hc</td>\n",
" <td>14.286</td>\n",
" <td>[0.012789174, 0.014841921, -0.01317768, -0.021...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>3</td>\n",
" <td>history of chronic hepatitis in urban shanghai...</td>\n",
" <td>OCR_Project2ML4HNLP_</td>\n",
" <td>coursedocsJune22-ml4hc</td>\n",
" <td>21.429</td>\n",
" <td>[-0.042795025, -0.038891725, 0.023976067, -0.0...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>4</td>\n",
" <td>phase 3 trial in 3 ascending, orvolvement of a...</td>\n",
" <td>OCR_Project2ML4HNLP_</td>\n",
" <td>coursedocsJune22-ml4hc</td>\n",
" <td>28.571</td>\n",
" <td>[-0.05967743, -0.0730482, 0.05493018, -0.02719...</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>\n",
" <button class=\"colab-df-convert\" onclick=\"convertToInteractive('df-73f5c187-1032-4cee-b227-fe2847e21236')\"\n",
" title=\"Convert this dataframe to an interactive table.\"\n",
" style=\"display:none;\">\n",
" \n",
" <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\"viewBox=\"0 0 24 24\"\n",
" width=\"24px\">\n",
" <path d=\"M0 0h24v24H0V0z\" fill=\"none\"/>\n",
" <path d=\"M18.56 5.44l.94 2.06.94-2.06 2.06-.94-2.06-.94-.94-2.06-.94 2.06-2.06.94zm-11 1L8.5 8.5l.94-2.06 2.06-.94-2.06-.94L8.5 2.5l-.94 2.06-2.06.94zm10 10l.94 2.06.94-2.06 2.06-.94-2.06-.94-.94-2.06-.94 2.06-2.06.94z\"/><path d=\"M17.41 7.96l-1.37-1.37c-.4-.4-.92-.59-1.43-.59-.52 0-1.04.2-1.43.59L10.3 9.45l-7.72 7.72c-.78.78-.78 2.05 0 2.83L4 21.41c.39.39.9.59 1.41.59.51 0 1.02-.2 1.41-.59l7.78-7.78 2.81-2.81c.8-.78.8-2.07 0-2.86zM5.41 20L4 18.59l7.72-7.72 1.47 1.35L5.41 20z\"/>\n",
" </svg>\n",
" </button>\n",
" \n",
" <style>\n",
" .colab-df-container {\n",
" display:flex;\n",
" flex-wrap:wrap;\n",
" gap: 12px;\n",
" }\n",
"\n",
" .colab-df-convert {\n",
" background-color: #E8F0FE;\n",
" border: none;\n",
" border-radius: 50%;\n",
" cursor: pointer;\n",
" display: none;\n",
" fill: #1967D2;\n",
" height: 32px;\n",
" padding: 0 0 0 0;\n",
" width: 32px;\n",
" }\n",
"\n",
" .colab-df-convert:hover {\n",
" background-color: #E2EBFA;\n",
" box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
" fill: #174EA6;\n",
" }\n",
"\n",
" [theme=dark] .colab-df-convert {\n",
" background-color: #3B4455;\n",
" fill: #D2E3FC;\n",
" }\n",
"\n",
" [theme=dark] .colab-df-convert:hover {\n",
" background-color: #434B5C;\n",
" box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n",
" filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n",
" fill: #FFFFFF;\n",
" }\n",
" </style>\n",
"\n",
" <script>\n",
" const buttonEl =\n",
" document.querySelector('#df-73f5c187-1032-4cee-b227-fe2847e21236 button.colab-df-convert');\n",
" buttonEl.style.display =\n",
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
"\n",
" async function convertToInteractive(key) {\n",
" const element = document.querySelector('#df-73f5c187-1032-4cee-b227-fe2847e21236');\n",
" const dataTable =\n",
" await google.colab.kernel.invokeFunction('convertToInteractive',\n",
" [key], {});\n",
" if (!dataTable) return;\n",
"\n",
" const docLinkHtml = 'Like what you see? Visit the ' +\n",
" '<a target=\"_blank\" href=https://colab.research.google.com/notebooks/data_table.ipynb>data table notebook</a>'\n",
" + ' to learn more about interactive tables.';\n",
" element.innerHTML = '';\n",
" dataTable['output_type'] = 'display_data';\n",
" await google.colab.output.renderOutput(dataTable, element);\n",
" const docLink = document.createElement('div');\n",
" docLink.innerHTML = docLinkHtml;\n",
" element.appendChild(docLink);\n",
" }\n",
" </script>\n",
" </div>\n",
" </div>\n",
" "
]
},
"metadata": {},
"execution_count": 7
}
]
},
{
"cell_type": "code",
"source": [
"#@markdown `embedded_course` is a pandas df can be used for\n",
"#@markdown whatever pandas things you need.\n",
"\n",
"print(f\"type is {type(embedded_course)}\")\n",
"embedded_course.info()"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 0
},
"cellView": "form",
"id": "p7YL1KGPxZsz",
"outputId": "ee9f5b8a-da58-4447-b459-0285026ec87c"
},
"execution_count": 8,
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.HTML object>"
],
"text/html": [
"\n",
" <style>\n",
" pre {\n",
" white-space: pre-wrap;\n",
" }\n",
" </style>\n",
" "
]
},
"metadata": {}
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"type is <class 'pandas.core.frame.DataFrame'>\n",
"<class 'pandas.core.frame.DataFrame'>\n",
"RangeIndex: 1471 entries, 0 to 1470\n",
"Data columns (total 6 columns):\n",
" # Column Non-Null Count Dtype \n",
"--- ------ -------------- ----- \n",
" 0 id_within_doc 1471 non-null Int64 \n",
" 1 doc_text 1471 non-null string \n",
" 2 doc_name 1471 non-null string \n",
" 3 doc_dir 1471 non-null string \n",
" 4 doc_relative_loc 1471 non-null Float64\n",
" 5 doc_embeddings 1471 non-null object \n",
"dtypes: Float64(1), Int64(1), object(1), string(3)\n",
"memory usage: 72.0+ KB\n"
]
}
]
},
{
"cell_type": "markdown",
"source": [
"# Query the embeddings\n"
],
"metadata": {
"id": "5kzc-FgIeiiZ"
}
},
{
"cell_type": "code",
"source": [
"\n",
"import pprint as pp\n",
"import time\n",
"from pathlib import Path\n",
"\n",
"import joblib\n",
"import numpy as np\n",
"import pandas as pd\n",
"import torch\n",
"from sentence_transformers import SentenceTransformer, util\n",
"#@markdown define `semantic_search`\n",
"import pandas as pd\n",
"def semantic_search(\n",
" query: str,\n",
" sbert_model,\n",
" emdf: pd.DataFrame,\n",
" embedding_col: str = \"doc_embeddings\",\n",
" top_n=5,\n",
" unique_col=\"doc_name\",\n",
" return_unique=True,\n",
"):\n",
" \"\"\"\n",
" semantic_search - core semantic search function using cosine similarity\n",
" Parameters\n",
" ----------\n",
" query : str, text to search for\n",
" sbert_model : sentence-transformers model to use for encoding\n",
" emdf : dataframe with the encoded document embeddings\n",
" embedding_col : str, column name of the embedding column in the emdf, by default \"doc_embeddings\"\n",
" top_n : int, optional, by default 5, number of most-similar results to return\n",
" Returns\n",
" -------\n",
" dict - a dictionary with the aggregated search result text as key, cosine similarity score as value\n",
" \"\"\"\n",
" top_n_loop = top_n + 30 if return_unique else top_n\n",
" top_k = min(top_n_loop, len(emdf))\n",
" _data = [np.array(a, dtype=np.float32) for a in emdf[embedding_col].values]\n",
"\n",
" use_gpu = torch.cuda.is_available()\n",
"\n",
" corpus_embeddings = torch.FloatTensor(_data)\n",
" query_embedding = sbert_model.encode(query, convert_to_tensor=True)\n",
"\n",
" if use_gpu:\n",
" corpus_embeddings = corpus_embeddings.to(\"cuda\")\n",
" query_embedding = query_embedding.to(\"cuda\")\n",
" else:\n",
" corpus_embeddings = corpus_embeddings.cpu()\n",
" query_embedding = query_embedding.cpu()\n",
" cos_scores = util.cos_sim(query_embedding, corpus_embeddings)[0]\n",
" top_results = torch.topk(cos_scores, k=top_k)\n",
"\n",
" results = []\n",
" docs_found = []\n",
" result_rank = 0\n",
" for score, idx in zip(top_results[0], top_results[1]):\n",
"\n",
" result_rank += 1\n",
" idx = int(idx)\n",
" _result = {}\n",
" _result[\"Rank\"] = result_rank\n",
" _result[\"Score (0-1)\"] = round(float(score.cpu().numpy()), 4)\n",
"\n",
" for c in emdf.columns:\n",
" if c == embedding_col:\n",
" continue\n",
" _result[c] = emdf.loc[idx, c]\n",
"\n",
" if return_unique:\n",
" # check if the result is already in the results list\n",
" if _result[unique_col] in docs_found:\n",
" continue\n",
" else:\n",
" results.append(_result)\n",
" docs_found.append(_result[unique_col])\n",
"\n",
" else:\n",
" results.append(_result)\n",
"\n",
" if len(results) >= top_n:\n",
" break\n",
" return results"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 17
},
"cellView": "form",
"id": "bxMKbeijejch",
"outputId": "bf701bf8-886d-4a3e-fd0f-c224f870e219"
},
"execution_count": 9,
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.HTML object>"
],
"text/html": [
"\n",
" <style>\n",
" pre {\n",
" white-space: pre-wrap;\n",
" }\n",
" </style>\n",
" "
]
},
"metadata": {}
}
]
},
{
"cell_type": "markdown",
"source": [
"\n",
"## <font color=\"DodgerBlue\"> _**Your Query Goes Here**_\n",
"\n",
"Enter the term/phrase you want to find results for (_think Google search_) into `query`, and adjust params. Then run the cell! Should only take a couple seconds max.\n",
"\n",
"- `return_unique`: whether or not you want the search results to be unique with respect to what text file (lecture1 audio, tecture 3 slides, etc) they are from\n",
"- `number_results`: how many results to return\n",
"\n",
"If you want more details, you can use `embedded_course` as a standard dataframe to find things 👍"
],
"metadata": {
"id": "ZZlxdLf8zojH"
}
},
{
"cell_type": "code",
"source": [
"%%time\n",
"query = \"jensen divergence metric downsides\" #@param {type:\"string\"}\n",
"return_unique = True #@param {type:\"boolean\"}\n",
"number_results = 5 #@param {type:\"integer\"}\n",
"import pprint as pp\n",
"result = semantic_search(\n",
" query=query,\n",
" sbert_model=model,\n",
" emdf=embedded_course,\n",
" return_unique=return_unique,\n",
" top_n = number_results,\n",
")\n",
"#@markdown note that `doc_relative_loc` is a _percentage_ of the way through\n",
"#@markdown the parent text file that the snippet is found.\n",
"pp.pprint(result)"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 1000
},
"cellView": "form",
"id": "qaAAlbqtel7e",
"outputId": "bfc1be3e-ce95-4be1-d26b-a7d1bdf020b4"
},
"execution_count": 11,
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.HTML object>"
],
"text/html": [
"\n",
" <style>\n",
" pre {\n",
" white-space: pre-wrap;\n",
" }\n",
" </style>\n",
" "
]
},
"metadata": {}
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"[{'Rank': 1,\n",
" 'Score (0-1)': 0.3537,\n",
" 'doc_dir': 'papers-referenced',\n",
" 'doc_name': 'OCR Multilevel Medical Embedding of Electronic Health Records '\n",
" 'for Predictive Healthcare',\n",
" 'doc_relative_loc': 69.565,\n",
" 'doc_text': 'the preferred nonlinear activation for hidden layers in many '\n",
" 'studies this seems due t0 the regularizing effect of sigmoid '\n",
" 'and tanh functions _ whereas relu can produce outputs as high '\n",
" 'as infinity, sigmoid and tanh have bounded outputs considering '\n",
" 'that sigmoid, tanh and relu all sum up the code embeddings in '\n",
" 'visit v ( t ) before applying the nonlinear activation, '\n",
" 'constraining the output of the nonlinear activation seems to '\n",
" 'work favorably, especially in d3 where there are more 13 codes '\n",
" 'per visit. this regularization benefit, however ; diminishes as '\n",
" 'the dataset grows, which can be confirmed by table / 7lin '\n",
" 'sectionf ] in addition, as can be seen by the performance of '\n",
" 'sigmoid, lp, sigmoid suffers from the vanishing gradient '\n",
" 'problem as opposed to tanh o relu that have larger gradient '\n",
" 'values. e roc - auc of heart failure prediction on datasets d1, '\n",
" 'dz, and d : table 6 : roc - auc of all models for hf prediction '\n",
" 'on small datasets. values in the parentheses denote standard '\n",
" 'deviations from 5 - fold random data splits two best values in '\n",
" 'each column are marked in bold : d2 d ; visit complexity 0 - '\n",
" '159, 5608',\n",
" 'id_within_doc': 48},\n",
" {'Rank': 2,\n",
" 'Score (0-1)': 0.3488,\n",
" 'doc_dir': 'coursedocsJune22-ml4hc',\n",
" 'doc_name': 'OCR_Tutorial13-Examquestions_',\n",
" 'doc_relative_loc': 90.476,\n",
" 'doc_text': 'gan and the reasons to use wgan over gan. classical gans use '\n",
" 'the jensen divergence metric ( not continuous ) to compare the '\n",
" 'true and the synthetic data distribution wasserstein gans use '\n",
" 'the earth - mover divergence ( continuous ) metric to compare '\n",
" 'the true and the synthetic data distributions wgans are more '\n",
" 'stable due to smoother gradients. they are preferred in '\n",
" 'practice 34 machine learning for health care, spring 2022 '\n",
" 'tutorial 13 alice bizeul 24. 05. 2022 ethics e question 1 1. '\n",
" 'mark below the necessary criteria for consent : a voluntariness '\n",
" 'b _ willfulness c capacity to understand d. trustworthiness e _ '\n",
" 'adequate information 35 machine learning for health care, '\n",
" 'spring 2022 tutorial 13 alice bizeul 24. 05. 2022 ethics e '\n",
" 'question 1 1. mark below the necessary criteria for consent : a '\n",
" 'voluntariness b willfulness c capacity to understand d _ '\n",
" 'trustworthiness e adequate information 36 machine learning for '\n",
" 'health care, spring 2022 tutorial 13 alice bizeul 24. 05. 2022 '\n",
" 'questions? also, on moodle ( preferred : your classmates '\n",
" 'probably have similar questions! ) or by email at alice bizeul '\n",
" '@ aiethzch machine learning for health care, spring 2022',\n",
" 'id_within_doc': 19},\n",
" {'Rank': 3,\n",
" 'Score (0-1)': 0.3356,\n",
" 'doc_dir': 'lecture-audio-full',\n",
" 'doc_name': 'SC_lecture_privac_transcription_15_GT',\n",
" 'doc_relative_loc': 76.923,\n",
" 'doc_text': ', and first, we tried to predict our patient readmission. it '\n",
" \"worked okay, and then we said as it's that imbalances we tried \"\n",
" 'to in, in addition, neurite the unbalanced the minority class '\n",
" 'and see what hips and see if you can also with '\n",
" 'disdegeneratedta, enrich thbbaseta to help the basil hospital '\n",
" \"in the end and for this, we used a model as i said before, it's \"\n",
" \"not viable gear. still, it's a little different, but we used a \"\n",
" 'different loss term and a different way to quantify the '\n",
" 'difference between the generated and training data instead of '\n",
" 'the trans and china direction. the basasteine and the '\n",
" 'passionate distance are different ways of measuring the '\n",
" \"distance between distributions. so here's an example of the \"\n",
" 'difference between the vassasteine distance and the sham '\n",
" 'divergence used in a classic grain. so the classic grain uses '\n",
" 'the genzenchanne divergence some compared distributions. still, '\n",
" 'if these distributions are completely dishonest, as you see '\n",
" 'here, this is a function where they are completely disjointed '\n",
" 'except when this distribution here is zero, so they are the '\n",
" \"same. and if you compute this distance here, there's a sudden\",\n",
" 'id_within_doc': 20},\n",
" {'Rank': 4,\n",
" 'Score (0-1)': 0.3155,\n",
" 'doc_dir': 'lecture-audio-full',\n",
" 'doc_name': 'SC_lecture_genetics_p_2_v_2_c_transcription_12_GT',\n",
" 'doc_relative_loc': 32.203,\n",
" 'doc_text': 'so instead of using conditional probabilities, we have these '\n",
" 'joint probabilities, which take just this systemic expression '\n",
" 'here, and then, by a miracle, it worked quite nicely. so '\n",
" 'instead of having this violation where everything is crowded, '\n",
" 'you have the beautiful civilization where we see clusters in '\n",
" 'our data ; the main reason for this was the properties of the '\n",
" 'kashit distribution here that it has heavier tails so the '\n",
" 'customers can kind of. they prefer to go away from one another. '\n",
" 'so now i wanted to show you what kind of visualization the time '\n",
" 'can create when we change this parameter of perplexity, which '\n",
" 'affects how far each observation contains other observations so '\n",
" 'hear the original later set was this one about two reasons to '\n",
" 'closure is a sample with the ocean distribution. then we apply '\n",
" 'themselves of different values of the perplexity parameters '\n",
" 'from two to one hundred, and this is what the restrictions that '\n",
" 'we can obtain so he would transform to do into two do, but this '\n",
" 'is just for an illustration purpose. what you can see here is '\n",
" 'only that with perplexity values about thirty and fifty. you '\n",
" 'see this too. beautiful questions when perplexity is too low, '\n",
" 'we see too many letters, so we cannot really capture the true '\n",
" 'structure in the data, and then the',\n",
" 'id_within_doc': 19},\n",
" {'Rank': 6,\n",
" 'Score (0-1)': 0.2879,\n",
" 'doc_dir': 'papers-referenced',\n",
" 'doc_name': 'OCR_3D Conditional GAN-based Super-resolution for CT Slice '\n",
" 'Interval',\n",
" 'doc_relative_loc': 28.571,\n",
" 'doc_text': 'adversarial model d that tries to maximize it. g and d can be '\n",
" 'implemented as convolutional neural networks ( cnn ). we also '\n",
" 'use l loss to calculate pixel - wise appearance differences '\n",
" 'between ground truth images and generated images, which has '\n",
" 'been shown to give less blurring than the lz loss in diversity '\n",
" 'of image - to - image translation tasks [ 7 ; therefore, the '\n",
" 'out final objective is expressed as arg min max lcgan ( g, d ) '\n",
" '+ all ( g ) ( 2 ) figure q ] illustrates the proposed '\n",
" 'adversarial training procedure. note that the additional '\n",
" 'conditions are not inputted into the generator. aj kudo et al. '\n",
" 'positive examples 8 negative examples discriminator '\n",
" 'discriminator ground truth thick image virtual thin thick image '\n",
" 'body part 0 - level slice ( mm ) body part 0 - level slice ( mm '\n",
" ') generator input ground truth condition thick image degrade 8 '\n",
" 'mm m conditions body part : head slice : 8 mm 1. 6 gaussian '\n",
" 'blurs ( 0 _ downsample spline interpolation fig. 2. adversarial '\n",
" 'training framework of thick - thin slice translation on ct '\n",
" 'images. in each training iteration, the thin slice input data '\n",
" 'is randomly degraded to simulate thick slice data. for the '\n",
" 'generator',\n",
" 'id_within_doc': 6}]\n",
"CPU times: user 167 ms, sys: 4.24 ms, total: 171 ms\n",
"Wall time: 166 ms\n"
]
}
]
},
{
"cell_type": "code",
"source": [],
"metadata": {
"id": "d4KUgZo9eucn"
},
"execution_count": 10,
"outputs": []
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment