{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "ac4909eb", "metadata": { "execution": { "iopub.execute_input": "2023-11-21T15:37:49.442766Z", "iopub.status.busy": "2023-11-21T15:37:49.441854Z", "iopub.status.idle": "2023-11-21T15:38:03.822601Z", "shell.execute_reply": "2023-11-21T15:38:03.821494Z" }, "id": "7LrlO5dR5tlp", "papermill": { "duration": 14.403617, "end_time": "2023-11-21T15:38:03.825243", "exception": false, "start_time": "2023-11-21T15:37:49.421626", "status": "completed" }, "tags": [] }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/opt/conda/lib/python3.10/site-packages/scipy/__init__.py:146: UserWarning: A NumPy version >=1.16.5 and <1.23.0 is required for this version of SciPy (detected version 1.24.3\n", " warnings.warn(f\"A NumPy version >={np_minversion} and <{np_maxversion}\"\n" ] } ], "source": [ "import matplotlib.pyplot as plt\n", "import pandas as pd\n", "import numpy as np\n", "import json\n", "import re\n", "import csv\n", "from sklearn.model_selection import train_test_split\n", "import tensorflow as tf\n", "from tensorflow.keras.layers import Dense, Input, Dropout\n", "from tensorflow.keras.callbacks import EarlyStopping\n", "from tensorflow.keras.models import Sequential, Model, load_model\n", "from tensorflow.keras.optimizers import Adam\n" ] }, { "cell_type": "code", "execution_count": 2, "id": "a1472d3a", "metadata": { "execution": { "iopub.execute_input": "2023-11-21T15:38:03.862434Z", "iopub.status.busy": "2023-11-21T15:38:03.861920Z", "iopub.status.idle": "2023-11-21T15:38:16.866108Z", "shell.execute_reply": "2023-11-21T15:38:16.864816Z" }, "id": "yUooSDJANt9u", "outputId": "2474643c-23c1-4fe9-afdd-a5e71d6fcec9", "papermill": { "duration": 13.025005, "end_time": "2023-11-21T15:38:16.868656", "exception": false, "start_time": "2023-11-21T15:38:03.843651", "status": "completed" }, "tags": [] }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Requirement already satisfied: transformers in /opt/conda/lib/python3.10/site-packages (4.35.0)\r\n", "Requirement already satisfied: filelock in /opt/conda/lib/python3.10/site-packages (from transformers) (3.12.2)\r\n", "Requirement already satisfied: huggingface-hub<1.0,>=0.16.4 in /opt/conda/lib/python3.10/site-packages (from transformers) (0.17.3)\r\n", "Requirement already satisfied: numpy>=1.17 in /opt/conda/lib/python3.10/site-packages (from transformers) (1.24.3)\r\n", "Requirement already satisfied: packaging>=20.0 in /opt/conda/lib/python3.10/site-packages (from transformers) (21.3)\r\n", "Requirement already satisfied: pyyaml>=5.1 in /opt/conda/lib/python3.10/site-packages (from transformers) (6.0.1)\r\n", "Requirement already satisfied: regex!=2019.12.17 in /opt/conda/lib/python3.10/site-packages (from transformers) (2023.8.8)\r\n", "Requirement already satisfied: requests in /opt/conda/lib/python3.10/site-packages (from transformers) (2.31.0)\r\n", "Requirement already satisfied: tokenizers<0.15,>=0.14 in /opt/conda/lib/python3.10/site-packages (from transformers) (0.14.1)\r\n", "Requirement already satisfied: safetensors>=0.3.1 in /opt/conda/lib/python3.10/site-packages (from transformers) (0.4.0)\r\n", "Requirement already satisfied: tqdm>=4.27 in /opt/conda/lib/python3.10/site-packages (from transformers) (4.66.1)\r\n", "Requirement already satisfied: fsspec in /opt/conda/lib/python3.10/site-packages (from huggingface-hub<1.0,>=0.16.4->transformers) (2023.10.0)\r\n", "Requirement already satisfied: typing-extensions>=3.7.4.3 in /opt/conda/lib/python3.10/site-packages (from huggingface-hub<1.0,>=0.16.4->transformers) (4.5.0)\r\n", "Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /opt/conda/lib/python3.10/site-packages (from packaging>=20.0->transformers) (3.0.9)\r\n", "Requirement already satisfied: charset-normalizer<4,>=2 in /opt/conda/lib/python3.10/site-packages (from requests->transformers) (3.2.0)\r\n", "Requirement already satisfied: idna<4,>=2.5 in /opt/conda/lib/python3.10/site-packages (from requests->transformers) (3.4)\r\n", "Requirement already satisfied: urllib3<3,>=1.21.1 in /opt/conda/lib/python3.10/site-packages (from requests->transformers) (1.26.15)\r\n", "Requirement already satisfied: certifi>=2017.4.17 in /opt/conda/lib/python3.10/site-packages (from requests->transformers) (2023.7.22)\r\n" ] } ], "source": [ "!pip install transformers" ] }, { "cell_type": "code", "execution_count": 3, "id": "0a01b3b7", "metadata": { "execution": { "iopub.execute_input": "2023-11-21T15:38:16.905881Z", "iopub.status.busy": "2023-11-21T15:38:16.905504Z", "iopub.status.idle": "2023-11-21T15:38:21.007908Z", "shell.execute_reply": "2023-11-21T15:38:21.006692Z" }, "id": "Dw7DxkLZN-Rv", "outputId": "8ce45f10-2963-4568-9059-8b96c89ae4b5", "papermill": { "duration": 4.123412, "end_time": "2023-11-21T15:38:21.010072", "exception": false, "start_time": "2023-11-21T15:38:16.886660", "status": "completed" }, "tags": [] }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "There are 2 GPU(s) available.\n", "We will use the GPU: Tesla T4\n" ] } ], "source": [ "import torch\n", "\n", "if torch.cuda.is_available(): \n", "\n", " # Tell PyTorch to use the GPU. \n", " device = torch.device(\"cuda\")\n", "\n", " print('There are %d GPU(s) available.' % torch.cuda.device_count())\n", "\n", " print('We will use the GPU:', torch.cuda.get_device_name(0))\n", "\n", "else:\n", " print('No GPU available, using the CPU instead.')\n", " device = torch.device(\"cpu\")" ] }, { "cell_type": "code", "execution_count": 4, "id": "473c8598", "metadata": { "execution": { "iopub.execute_input": "2023-11-21T15:38:21.048358Z", "iopub.status.busy": "2023-11-21T15:38:21.047252Z", "iopub.status.idle": "2023-11-21T15:38:32.968781Z", "shell.execute_reply": "2023-11-21T15:38:32.967923Z" }, "id": "hhGyWHeyNx-h", "outputId": "32fe34e6-8111-48c1-eaea-e92d2790a819", "papermill": { "duration": 11.942856, "end_time": "2023-11-21T15:38:32.971316", "exception": false, "start_time": "2023-11-21T15:38:21.028460", "status": "completed" }, "tags": [] }, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "ee2ebc67e0324e03932d3d823f0a3dd5", "version_major": 2, "version_minor": 0 }, "text/plain": [ "Downloading tokenizer_config.json: 0%| | 0.00/516 [00:00" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "import numpy as np\n", "import matplotlib.pyplot as plt\n", "\n", "data={'ANALYSIS':10695,'ARG PETITIONER':1315 ,'ARG_RESPONDENT':698,'FAC':5744 ,'ISSUE':367 ,'NONE':1423, 'PRE NOT RELIED':158, 'PRE RELIED':1431, \n", "'PREAMBLE':4167, 'RATIO':674,'RLC':752, 'RPC':1081, 'STA':481}\n", "\n", "labels = list(data.keys())\n", "freqs = list(data.values())\n", " \n", "fig = plt.figure(figsize = (10,4))\n", "\n", "plt.rcParams['font.family'] = 'serif'\n", "plt.rcParams['font.serif'] = ['Times New Roman'] + plt.rcParams['font.serif']\n", "plt.bar(labels, freqs, color ='#20B2AA',edgecolor= 'black', width = 0.3)\n", " \n", "plt.xlabel(\"Labels\", fontsize=16)\n", "plt.ylabel(\"Frequency\",fontsize=16)\n", "plt.xticks(fontsize=12)\n", "plt.yticks(fontsize=12)\n", "fig.autofmt_xdate()\n", "\n", "plt.show()\n" ] }, { "cell_type": "code", "execution_count": 16, "id": "750bc66a", "metadata": { "execution": { "iopub.execute_input": "2023-11-21T15:46:55.596713Z", "iopub.status.busy": "2023-11-21T15:46:55.596394Z", "iopub.status.idle": "2023-11-21T15:46:55.601189Z", "shell.execute_reply": "2023-11-21T15:46:55.600360Z" }, "id": "Y4W3E5fJmIob", "papermill": { "duration": 0.031122, "end_time": "2023-11-21T15:46:55.602996", "exception": false, "start_time": "2023-11-21T15:46:55.571874", "status": "completed" }, "tags": [] }, "outputs": [], "source": [ "label_dict= {0: 'ANALYSIS', 1: 'ARG_PETITIONER', 2:'ARG_RESPONDENT', 3: 'FAC',4:'ISSUE', \n", " 5: 'NONE',6:'PRE_NOT_RELIED',7:'PRE_RELIED',8: 'PREAMBLE', 9:'RATIO',\n", " 10:'RLC', 11: 'RPC', 12: 'STA'}" ] }, { "cell_type": "code", "execution_count": 17, "id": "9f2903f7", "metadata": { "execution": { "iopub.execute_input": "2023-11-21T15:46:55.650359Z", "iopub.status.busy": "2023-11-21T15:46:55.650060Z", "iopub.status.idle": "2023-11-21T15:47:01.947720Z", "shell.execute_reply": "2023-11-21T15:47:01.946881Z" }, "id": "VzIaUEu3geXp", "papermill": { "duration": 6.324088, "end_time": "2023-11-21T15:47:01.950086", "exception": false, "start_time": "2023-11-21T15:46:55.625998", "status": "completed" }, "tags": [] }, "outputs": [], "source": [ "df=pd.read_csv('/kaggle/working/LegalEval_RR_train_embeddings_indian_legal_bert.csv',header=None)\n", "Y = df[768].tolist()\n", "df.drop(768, axis=1, inplace=True)\n", "df=df.values.tolist()" ] }, { "cell_type": "code", "execution_count": 18, "id": "f6cde018", "metadata": { "execution": { "iopub.execute_input": "2023-11-21T15:47:01.999877Z", "iopub.status.busy": "2023-11-21T15:47:01.999222Z", "iopub.status.idle": "2023-11-21T15:47:02.699439Z", "shell.execute_reply": "2023-11-21T15:47:02.698379Z" }, "id": "tPB2b5Hvd_Uc", "papermill": { "duration": 0.726956, "end_time": "2023-11-21T15:47:02.701878", "exception": false, "start_time": "2023-11-21T15:47:01.974922", "status": "completed" }, "tags": [] }, "outputs": [], "source": [ "df_val=pd.read_csv('/kaggle/working/LegalEval_RR_valid_embeddings_indian_legal_bert.csv',header=None)\n", "Y_val = df_val[768].tolist()\n", "df_val.drop(768, axis=1, inplace=True)\n", "df_val=df_val.values.tolist()" ] }, { "cell_type": "code", "execution_count": 19, "id": "9cf18940", "metadata": { "execution": { "iopub.execute_input": "2023-11-21T15:47:02.750971Z", "iopub.status.busy": "2023-11-21T15:47:02.750626Z", "iopub.status.idle": "2023-11-21T15:47:04.734593Z", "shell.execute_reply": "2023-11-21T15:47:04.733337Z" }, "id": "bj9TpjfS8V7L", "outputId": "597157fb-e7f5-4e41-e7de-6964a25f02ee", "papermill": { "duration": 2.010826, "end_time": "2023-11-21T15:47:04.736676", "exception": false, "start_time": "2023-11-21T15:47:02.725850", "status": "completed" }, "tags": [] }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "(28986, 768)\n", "(2879, 768)\n", "(28986,)\n", "(2879,)\n" ] } ], "source": [ "df=np.asarray(df)\n", "df_val=np.asarray(df_val)\n", "print(df.shape)\n", "print(df_val.shape)\n", "print(y_tr.shape)\n", "print(y_val.shape)" ] }, { "cell_type": "code", "execution_count": 20, "id": "9d00744b", "metadata": { "execution": { "iopub.execute_input": "2023-11-21T15:47:04.786608Z", "iopub.status.busy": "2023-11-21T15:47:04.786268Z", "iopub.status.idle": "2023-11-21T15:47:07.267983Z", "shell.execute_reply": "2023-11-21T15:47:07.267051Z" }, "id": "v-MIa7AE6XTv", "outputId": "3c1747bc-1525-4464-95c4-afdfff96d5cd", "papermill": { "duration": 2.515749, "end_time": "2023-11-21T15:47:07.276895", "exception": false, "start_time": "2023-11-21T15:47:04.761146", "status": "completed" }, "tags": [] }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Model: \"model\"\n", "_________________________________________________________________\n", " Layer (type) Output Shape Param # \n", "=================================================================\n", " input_1 (InputLayer) [(None, 768)] 0 \n", " \n", " dense (Dense) (None, 2048) 1574912 \n", " \n", " dropout (Dropout) (None, 2048) 0 \n", " \n", " dense_1 (Dense) (None, 1024) 2098176 \n", " \n", " dropout_1 (Dropout) (None, 1024) 0 \n", " \n", " dense_2 (Dense) (None, 13) 13325 \n", " \n", "=================================================================\n", "Total params: 3686413 (14.06 MB)\n", "Trainable params: 3686413 (14.06 MB)\n", "Non-trainable params: 0 (0.00 Byte)\n", "_________________________________________________________________\n" ] } ], "source": [ "inputA= Input(shape=(df.shape[1],))\n", "x= Dense(2048, activation=\"relu\")(inputA)\n", "x=Dropout(0.6)(x)\n", "x=Dense(1024,activation=\"relu\")(x)\n", "x=Dropout(0.6)(x)\n", "x=Dense(units=13, activation='softmax')(x)\n", "model= Model(inputs=inputA, outputs=x)\n", "model.compile(optimizer=tf.keras.optimizers.Adam(learning_rate=0.001, beta_1=0.9, beta_2=0.999, epsilon=1e-07), loss=\"sparse_categorical_crossentropy\", metrics = ['accuracy'])\n", "model.summary()" ] }, { "cell_type": "code", "execution_count": 21, "id": "67e10658", "metadata": { "execution": { "iopub.execute_input": "2023-11-21T15:47:07.329217Z", "iopub.status.busy": "2023-11-21T15:47:07.328937Z", "iopub.status.idle": "2023-11-21T15:52:27.743317Z", "shell.execute_reply": "2023-11-21T15:52:27.742261Z" }, "id": "XFZwwpWM6na-", "outputId": "fa748548-4e4e-4520-d86f-d47d8d128d98", "papermill": { "duration": 320.443081, "end_time": "2023-11-21T15:52:27.745598", "exception": false, "start_time": "2023-11-21T15:47:07.302517", "status": "completed" }, "tags": [] }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Epoch 1/500\n", "906/906 [==============================] - 6s 4ms/step - loss: 1.4358 - accuracy: 0.5424 - val_loss: 1.2127 - val_accuracy: 0.6141\n", "Epoch 2/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 1.2580 - accuracy: 0.5882 - val_loss: 1.1912 - val_accuracy: 0.6120\n", "Epoch 3/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 1.1991 - accuracy: 0.6034 - val_loss: 1.1622 - val_accuracy: 0.6231\n", "Epoch 4/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 1.1723 - accuracy: 0.6118 - val_loss: 1.1616 - val_accuracy: 0.6402\n", "Epoch 5/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 1.1439 - accuracy: 0.6196 - val_loss: 1.1620 - val_accuracy: 0.6374\n", "Epoch 6/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 1.1251 - accuracy: 0.6282 - val_loss: 1.1550 - val_accuracy: 0.6398\n", "Epoch 7/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 1.1107 - accuracy: 0.6315 - val_loss: 1.1513 - val_accuracy: 0.6461\n", "Epoch 8/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 1.0772 - accuracy: 0.6384 - val_loss: 1.1960 - val_accuracy: 0.6266\n", "Epoch 9/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 1.0637 - accuracy: 0.6414 - val_loss: 1.2044 - val_accuracy: 0.6422\n", "Epoch 10/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 1.0562 - accuracy: 0.6464 - val_loss: 1.1761 - val_accuracy: 0.6436\n", "Epoch 11/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 1.0398 - accuracy: 0.6499 - val_loss: 1.1743 - val_accuracy: 0.6367\n", "Epoch 12/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 1.0310 - accuracy: 0.6509 - val_loss: 1.1697 - val_accuracy: 0.6419\n", "Epoch 13/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 1.0192 - accuracy: 0.6534 - val_loss: 1.2018 - val_accuracy: 0.6398\n", "Epoch 14/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 1.0135 - accuracy: 0.6571 - val_loss: 1.2165 - val_accuracy: 0.6353\n", "Epoch 15/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.9907 - accuracy: 0.6627 - val_loss: 1.2177 - val_accuracy: 0.6415\n", "Epoch 16/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.9869 - accuracy: 0.6647 - val_loss: 1.2272 - val_accuracy: 0.6363\n", "Epoch 17/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.9768 - accuracy: 0.6695 - val_loss: 1.2370 - val_accuracy: 0.6447\n", "Epoch 18/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.9600 - accuracy: 0.6730 - val_loss: 1.2468 - val_accuracy: 0.6297\n", "Epoch 19/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.9517 - accuracy: 0.6745 - val_loss: 1.2249 - val_accuracy: 0.6402\n", "Epoch 20/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.9530 - accuracy: 0.6783 - val_loss: 1.2632 - val_accuracy: 0.6367\n", "Epoch 21/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.9354 - accuracy: 0.6812 - val_loss: 1.2665 - val_accuracy: 0.6342\n", "Epoch 22/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.9231 - accuracy: 0.6841 - val_loss: 1.2528 - val_accuracy: 0.6325\n", "Epoch 23/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.9257 - accuracy: 0.6843 - val_loss: 1.2813 - val_accuracy: 0.6471\n", "Epoch 24/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.9121 - accuracy: 0.6883 - val_loss: 1.2805 - val_accuracy: 0.6419\n", "Epoch 25/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.9004 - accuracy: 0.6905 - val_loss: 1.2949 - val_accuracy: 0.6426\n", "Epoch 26/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.8988 - accuracy: 0.6948 - val_loss: 1.2952 - val_accuracy: 0.6283\n", "Epoch 27/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.8851 - accuracy: 0.6984 - val_loss: 1.2988 - val_accuracy: 0.6273\n", "Epoch 28/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.8838 - accuracy: 0.6994 - val_loss: 1.2767 - val_accuracy: 0.6294\n", "Epoch 29/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.8706 - accuracy: 0.7019 - val_loss: 1.3132 - val_accuracy: 0.6329\n", "Epoch 30/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.8635 - accuracy: 0.7034 - val_loss: 1.3196 - val_accuracy: 0.6388\n", "Epoch 31/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.8561 - accuracy: 0.7062 - val_loss: 1.3525 - val_accuracy: 0.6110\n", "Epoch 32/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.8571 - accuracy: 0.7065 - val_loss: 1.3480 - val_accuracy: 0.6325\n", "Epoch 33/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.8395 - accuracy: 0.7145 - val_loss: 1.3531 - val_accuracy: 0.6301\n", "Epoch 34/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.8363 - accuracy: 0.7130 - val_loss: 1.3751 - val_accuracy: 0.6363\n", "Epoch 35/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.8370 - accuracy: 0.7140 - val_loss: 1.3634 - val_accuracy: 0.6370\n", "Epoch 36/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.8260 - accuracy: 0.7158 - val_loss: 1.3497 - val_accuracy: 0.6395\n", "Epoch 37/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.8219 - accuracy: 0.7209 - val_loss: 1.3450 - val_accuracy: 0.6440\n", "Epoch 38/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.8161 - accuracy: 0.7183 - val_loss: 1.3441 - val_accuracy: 0.6395\n", "Epoch 39/500\n", "906/906 [==============================] - 3s 4ms/step - loss: 0.8101 - accuracy: 0.7232 - val_loss: 1.3974 - val_accuracy: 0.6353\n", "Epoch 40/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.8021 - accuracy: 0.7264 - val_loss: 1.4132 - val_accuracy: 0.6266\n", "Epoch 41/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.7963 - accuracy: 0.7267 - val_loss: 1.4453 - val_accuracy: 0.6322\n", "Epoch 42/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.7917 - accuracy: 0.7279 - val_loss: 1.4099 - val_accuracy: 0.6346\n", "Epoch 43/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.8009 - accuracy: 0.7246 - val_loss: 1.4725 - val_accuracy: 0.6332\n", "Epoch 44/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.7845 - accuracy: 0.7314 - val_loss: 1.5255 - val_accuracy: 0.6242\n", "Epoch 45/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.7780 - accuracy: 0.7315 - val_loss: 1.4918 - val_accuracy: 0.6276\n", "Epoch 46/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.7807 - accuracy: 0.7335 - val_loss: 1.5091 - val_accuracy: 0.6315\n", "Epoch 47/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.7697 - accuracy: 0.7384 - val_loss: 1.5366 - val_accuracy: 0.6315\n", "Epoch 48/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.7563 - accuracy: 0.7401 - val_loss: 1.4848 - val_accuracy: 0.6447\n", "Epoch 49/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.7608 - accuracy: 0.7405 - val_loss: 1.5464 - val_accuracy: 0.6259\n", "Epoch 50/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.7487 - accuracy: 0.7389 - val_loss: 1.5271 - val_accuracy: 0.6367\n", "Epoch 51/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.7572 - accuracy: 0.7392 - val_loss: 1.5413 - val_accuracy: 0.6360\n", "Epoch 52/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.7505 - accuracy: 0.7433 - val_loss: 1.5585 - val_accuracy: 0.6339\n", "Epoch 53/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.7371 - accuracy: 0.7461 - val_loss: 1.5568 - val_accuracy: 0.6339\n", "Epoch 54/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.7319 - accuracy: 0.7477 - val_loss: 1.4999 - val_accuracy: 0.6294\n", "Epoch 55/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.7339 - accuracy: 0.7500 - val_loss: 1.6430 - val_accuracy: 0.6242\n", "Epoch 56/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.7349 - accuracy: 0.7483 - val_loss: 1.5943 - val_accuracy: 0.6384\n", "Epoch 57/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.7297 - accuracy: 0.7504 - val_loss: 1.6444 - val_accuracy: 0.6367\n", "Epoch 58/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.7088 - accuracy: 0.7577 - val_loss: 1.6949 - val_accuracy: 0.6342\n", "Epoch 59/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.7180 - accuracy: 0.7558 - val_loss: 1.6221 - val_accuracy: 0.6377\n", "Epoch 60/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.7080 - accuracy: 0.7579 - val_loss: 1.6764 - val_accuracy: 0.6301\n", "Epoch 61/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.7090 - accuracy: 0.7581 - val_loss: 1.6428 - val_accuracy: 0.6297\n", "Epoch 62/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.7007 - accuracy: 0.7630 - val_loss: 1.6602 - val_accuracy: 0.6339\n", "Epoch 63/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6965 - accuracy: 0.7612 - val_loss: 1.6350 - val_accuracy: 0.6294\n", "Epoch 64/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.7032 - accuracy: 0.7597 - val_loss: 1.6756 - val_accuracy: 0.6332\n", "Epoch 65/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6896 - accuracy: 0.7610 - val_loss: 1.6810 - val_accuracy: 0.6356\n", "Epoch 66/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6902 - accuracy: 0.7601 - val_loss: 1.7397 - val_accuracy: 0.6283\n", "Epoch 67/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6911 - accuracy: 0.7639 - val_loss: 1.7418 - val_accuracy: 0.6273\n", "Epoch 68/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6870 - accuracy: 0.7668 - val_loss: 1.7829 - val_accuracy: 0.6245\n", "Epoch 69/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6907 - accuracy: 0.7655 - val_loss: 1.7611 - val_accuracy: 0.6367\n", "Epoch 70/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6819 - accuracy: 0.7656 - val_loss: 1.7514 - val_accuracy: 0.6342\n", "Epoch 71/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6862 - accuracy: 0.7658 - val_loss: 1.7000 - val_accuracy: 0.6346\n", "Epoch 72/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6701 - accuracy: 0.7675 - val_loss: 1.7563 - val_accuracy: 0.6329\n", "Epoch 73/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6725 - accuracy: 0.7718 - val_loss: 1.7423 - val_accuracy: 0.6294\n", "Epoch 74/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6733 - accuracy: 0.7714 - val_loss: 1.6945 - val_accuracy: 0.6315\n", "Epoch 75/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6542 - accuracy: 0.7764 - val_loss: 1.8127 - val_accuracy: 0.6370\n", "Epoch 76/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6643 - accuracy: 0.7756 - val_loss: 1.7656 - val_accuracy: 0.6370\n", "Epoch 77/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6561 - accuracy: 0.7768 - val_loss: 1.7842 - val_accuracy: 0.6363\n", "Epoch 78/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6435 - accuracy: 0.7780 - val_loss: 1.9018 - val_accuracy: 0.6263\n", "Epoch 79/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6373 - accuracy: 0.7840 - val_loss: 1.9117 - val_accuracy: 0.6304\n", "Epoch 80/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6559 - accuracy: 0.7774 - val_loss: 1.7071 - val_accuracy: 0.6325\n", "Epoch 81/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6519 - accuracy: 0.7783 - val_loss: 1.8853 - val_accuracy: 0.6280\n", "Epoch 82/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6449 - accuracy: 0.7804 - val_loss: 1.8613 - val_accuracy: 0.6377\n", "Epoch 83/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6479 - accuracy: 0.7819 - val_loss: 1.8901 - val_accuracy: 0.6426\n", "Epoch 84/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6419 - accuracy: 0.7818 - val_loss: 1.8526 - val_accuracy: 0.6342\n", "Epoch 85/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6302 - accuracy: 0.7819 - val_loss: 1.8577 - val_accuracy: 0.6200\n", "Epoch 86/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6334 - accuracy: 0.7829 - val_loss: 1.9284 - val_accuracy: 0.6349\n", "Epoch 87/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6335 - accuracy: 0.7824 - val_loss: 1.9252 - val_accuracy: 0.6263\n", "Epoch 88/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6280 - accuracy: 0.7879 - val_loss: 1.9169 - val_accuracy: 0.6374\n", "Epoch 89/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6255 - accuracy: 0.7883 - val_loss: 1.8853 - val_accuracy: 0.6221\n", "Epoch 90/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6334 - accuracy: 0.7854 - val_loss: 1.9865 - val_accuracy: 0.6297\n", "Epoch 91/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6235 - accuracy: 0.7899 - val_loss: 1.9636 - val_accuracy: 0.6266\n", "Epoch 92/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6196 - accuracy: 0.7908 - val_loss: 2.0010 - val_accuracy: 0.6336\n", "Epoch 93/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6135 - accuracy: 0.7905 - val_loss: 1.9578 - val_accuracy: 0.6283\n", "Epoch 94/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6234 - accuracy: 0.7880 - val_loss: 1.9480 - val_accuracy: 0.6388\n", "Epoch 95/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6114 - accuracy: 0.7934 - val_loss: 2.0538 - val_accuracy: 0.6287\n", "Epoch 96/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6085 - accuracy: 0.7940 - val_loss: 2.1105 - val_accuracy: 0.6280\n", "Epoch 97/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6061 - accuracy: 0.7931 - val_loss: 2.1110 - val_accuracy: 0.6273\n", "Epoch 98/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6069 - accuracy: 0.7919 - val_loss: 2.0511 - val_accuracy: 0.6363\n", "Epoch 99/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6058 - accuracy: 0.7951 - val_loss: 2.0237 - val_accuracy: 0.6367\n", "Epoch 100/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6061 - accuracy: 0.7941 - val_loss: 1.9918 - val_accuracy: 0.6402\n", "Epoch 101/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6042 - accuracy: 0.7962 - val_loss: 2.0780 - val_accuracy: 0.6315\n", "Epoch 102/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.5951 - accuracy: 0.7960 - val_loss: 2.1033 - val_accuracy: 0.6280\n", "Epoch 103/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.6004 - accuracy: 0.7975 - val_loss: 2.0907 - val_accuracy: 0.6367\n", "Epoch 104/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.5911 - accuracy: 0.7999 - val_loss: 2.1141 - val_accuracy: 0.6273\n", "Epoch 105/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.5910 - accuracy: 0.8010 - val_loss: 2.1908 - val_accuracy: 0.6339\n", "Epoch 106/500\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.5990 - accuracy: 0.7990 - val_loss: 2.1689 - val_accuracy: 0.6363\n", "Epoch 107/500\n", "903/906 [============================>.] - ETA: 0s - loss: 0.5772 - accuracy: 0.8048Restoring model weights from the end of the best epoch: 7.\n", "906/906 [==============================] - 3s 3ms/step - loss: 0.5774 - accuracy: 0.8047 - val_loss: 2.2265 - val_accuracy: 0.6332\n", "Epoch 107: early stopping\n" ] } ], "source": [ "es = EarlyStopping(monitor='val_loss', mode='min', verbose=1, patience=100, restore_best_weights=True)\n", "history=model.fit(df, y_tr, validation_data=(df_val,y_val),epochs =500,callbacks=[es], batch_size= 32)" ] }, { "cell_type": "code", "execution_count": 22, "id": "855e529f", "metadata": { "execution": { "iopub.execute_input": "2023-11-21T15:52:28.764759Z", "iopub.status.busy": "2023-11-21T15:52:28.764328Z", "iopub.status.idle": "2023-11-21T15:52:30.356384Z", "shell.execute_reply": "2023-11-21T15:52:30.355553Z" }, "id": "ov3ZKJ5E6waE", "papermill": { "duration": 2.099227, "end_time": "2023-11-21T15:52:30.358844", "exception": false, "start_time": "2023-11-21T15:52:28.259617", "status": "completed" }, "tags": [] }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/opt/conda/lib/python3.10/site-packages/keras/src/engine/training.py:3000: UserWarning: You are saving your model as an HDF5 file via `model.save()`. This file format is considered legacy. We recommend using instead the native Keras format, e.g. `model.save('my_model.keras')`.\n", " saving_api.save_model(\n" ] } ], "source": [ "model.save('/kaggle/working/model2_INDIANLEGALBERT.h5')" ] }, { "cell_type": "code", "execution_count": 23, "id": "5bc5999d", "metadata": { "execution": { "iopub.execute_input": "2023-11-21T15:52:31.409042Z", "iopub.status.busy": "2023-11-21T15:52:31.408658Z", "iopub.status.idle": "2023-11-21T15:52:31.569120Z", "shell.execute_reply": "2023-11-21T15:52:31.568268Z" }, "id": "jtNlEtQN_lE8", "papermill": { "duration": 0.66585, "end_time": "2023-11-21T15:52:31.571396", "exception": false, "start_time": "2023-11-21T15:52:30.905546", "status": "completed" }, "tags": [] }, "outputs": [], "source": [ "import keras\n", "model=keras.models.load_model('/kaggle/working/model2_INDIANLEGALBERT.h5')" ] }, { "cell_type": "code", "execution_count": 24, "id": "25b33605", "metadata": { "execution": { "iopub.execute_input": "2023-11-21T15:52:32.611165Z", "iopub.status.busy": "2023-11-21T15:52:32.610818Z", "iopub.status.idle": "2023-11-21T15:52:32.957719Z", "shell.execute_reply": "2023-11-21T15:52:32.956905Z" }, "id": "MYCQLQ6WZ-ns", "outputId": "69857781-08a6-4672-f8ae-bf5b41396f9d", "papermill": { "duration": 0.876688, "end_time": "2023-11-21T15:52:32.959911", "exception": false, "start_time": "2023-11-21T15:52:32.083223", "status": "completed" }, "tags": [] }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "90/90 [==============================] - 0s 1ms/step\n" ] } ], "source": [ "y_prob=model.predict(df_val)\n", "flat_pred=np.argmax(y_prob,axis=1)\n" ] }, { "cell_type": "code", "execution_count": 25, "id": "fff4e912", "metadata": { "execution": { "iopub.execute_input": "2023-11-21T15:52:34.048481Z", "iopub.status.busy": "2023-11-21T15:52:34.048080Z", "iopub.status.idle": "2023-11-21T15:52:34.074228Z", "shell.execute_reply": "2023-11-21T15:52:34.072950Z" }, "id": "i30nh0XIFJ9I", "outputId": "771d514d-71c8-49bb-cc21-42628f1ffb59", "papermill": { "duration": 0.532232, "end_time": "2023-11-21T15:52:34.076917", "exception": false, "start_time": "2023-11-21T15:52:33.544685", "status": "completed" }, "tags": [] }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Classification Report:\n", " precision recall f1-score support\n", "\n", " 0 0.8689 0.5700 0.6884 1500\n", " 1 0.1286 0.3462 0.1875 26\n", " 2 0.0000 0.0000 0.0000 0\n", " 3 0.6483 0.6309 0.6395 596\n", " 4 0.6000 0.8333 0.6977 36\n", " 5 0.7842 0.9030 0.8394 165\n", " 6 0.0000 0.0000 0.0000 0\n", " 7 0.3099 0.5946 0.4074 74\n", " 8 0.5787 0.8776 0.6975 335\n", " 9 0.1000 0.4667 0.1647 15\n", " 10 0.1034 0.9231 0.1860 13\n", " 11 0.7253 0.7253 0.7253 91\n", " 12 0.6429 0.6429 0.6429 28\n", "\n", " accuracy 0.6461 2879\n", " macro avg 0.4223 0.5780 0.4520 2879\n", "weighted avg 0.7460 0.6461 0.6721 2879\n", "\n", "0.6460576589093435\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "/opt/conda/lib/python3.10/site-packages/sklearn/metrics/_classification.py:1344: UndefinedMetricWarning: Recall and F-score are ill-defined and being set to 0.0 in labels with no true samples. Use `zero_division` parameter to control this behavior.\n", " _warn_prf(average, modifier, msg_start, len(result))\n", "/opt/conda/lib/python3.10/site-packages/sklearn/metrics/_classification.py:1344: UndefinedMetricWarning: Recall and F-score are ill-defined and being set to 0.0 in labels with no true samples. Use `zero_division` parameter to control this behavior.\n", " _warn_prf(average, modifier, msg_start, len(result))\n", "/opt/conda/lib/python3.10/site-packages/sklearn/metrics/_classification.py:1344: UndefinedMetricWarning: Recall and F-score are ill-defined and being set to 0.0 in labels with no true samples. Use `zero_division` parameter to control this behavior.\n", " _warn_prf(average, modifier, msg_start, len(result))\n" ] } ], "source": [ "from sklearn.metrics import accuracy_score, classification_report, confusion_matrix\n", "print('Classification Report:')\n", "print(classification_report(flat_pred, y_val, digits=4))\n", "from sklearn import metrics\n", "print(metrics.accuracy_score(y_val, flat_pred))" ] }, { "cell_type": "code", "execution_count": 26, "id": "c8095778", "metadata": { "execution": { "iopub.execute_input": "2023-11-21T15:52:35.106031Z", "iopub.status.busy": "2023-11-21T15:52:35.105641Z", "iopub.status.idle": "2023-11-21T15:52:35.138771Z", "shell.execute_reply": "2023-11-21T15:52:35.137610Z" }, "id": "1_ENS3b1M2CH", "outputId": "33c9cef6-fcda-4788-cb06-0122416466f3", "papermill": { "duration": 0.55419, "end_time": "2023-11-21T15:52:35.141556", "exception": false, "start_time": "2023-11-21T15:52:34.587366", "status": "completed" }, "tags": [] }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "0.6662945889507864\n", "0.6460576589093435\n", "0.6200328292130541\n", "0.6460576589093435\n", "0.6460576589093435\n", "0.6460576589093435\n", "0.5779593814236553\n", "0.4223184394141849\n", "0.4520210141580472\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "/opt/conda/lib/python3.10/site-packages/sklearn/metrics/_classification.py:1344: UndefinedMetricWarning: Precision is ill-defined and being set to 0.0 in labels with no predicted samples. Use `zero_division` parameter to control this behavior.\n", " _warn_prf(average, modifier, msg_start, len(result))\n", "/opt/conda/lib/python3.10/site-packages/sklearn/metrics/_classification.py:1344: UndefinedMetricWarning: Precision is ill-defined and being set to 0.0 in labels with no predicted samples. Use `zero_division` parameter to control this behavior.\n", " _warn_prf(average, modifier, msg_start, len(result))\n" ] } ], "source": [ "from sklearn.metrics import f1_score\n", "from sklearn.metrics import recall_score\n", "from sklearn.metrics import precision_score\n", "\n", "print(precision_score(y_val,flat_pred, average='weighted'))\n", "print(recall_score(y_val,flat_pred, average='weighted'))\n", "print(f1_score(y_val,flat_pred, average='weighted'))\n", "\n", "print(precision_score(y_val,flat_pred, average='micro'))\n", "print(recall_score(y_val,flat_pred, average='micro'))\n", "print(f1_score(y_val,flat_pred, average='micro'))\n", "\n", "print(precision_score(y_val,flat_pred, average='macro'))\n", "print(recall_score(y_val,flat_pred, average='macro'))\n", "print(f1_score(y_val,flat_pred, average='macro'))\n" ] } ], "metadata": { "accelerator": "GPU", "colab": { "machine_shape": "hm", "provenance": [] }, "gpuClass": "standard", "kaggle": { "accelerator": "nvidiaTeslaT4", "dataSources": [ { "datasetId": 4032414, "sourceId": 7013348, "sourceType": "datasetVersion" } ], "dockerImageVersionId": 30588, "isGpuEnabled": true, "isInternetEnabled": true, "language": "python", "sourceType": "notebook" }, "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.10.12" }, "papermill": { "default_parameters": {}, "duration": 895.233875, "end_time": "2023-11-21T15:52:41.032086", "environment_variables": {}, "exception": true, "input_path": "__notebook__.ipynb", "output_path": "__notebook__.ipynb", "parameters": {}, "start_time": "2023-11-21T15:37:45.798211", "version": "2.4.0" }, "widgets": { "application/vnd.jupyter.widget-state+json": { "state": { "105d78741cf34ba9ad513d8bd69db5ec": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "HTMLModel", "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_3499292f4499409bbcc176f97a37fa62", "placeholder": "​", "style": "IPY_MODEL_8f6dcd11623342b08185e5b945a212b4", "value": "Downloading vocab.txt: 100%" } }, "137d31f3fdda489d9bf7cd40ce2a46a3": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "ProgressStyleModel", "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": "" } }, "17d1ab7db77c4865b61f84fd63bb4d33": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "ProgressStyleModel", "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": "" } }, "1a45728bbec74f368f0a71e32a098497": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "FloatProgressModel", "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_7234430533de4f95b54144b3adc22d6e", "max": 516, "min": 0, "orientation": "horizontal", "style": "IPY_MODEL_17d1ab7db77c4865b61f84fd63bb4d33", "value": 516 } }, "1f1281c4f06346d09c594196e9f81473": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "FloatProgressModel", "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_e77610cad2214ecbad5e9a4150da2bce", "max": 112, "min": 0, "orientation": "horizontal", "style": "IPY_MODEL_9456a0fc2aee433e91ca3b63f75340ae", "value": 112 } }, "2279807560bf4892b382ae82c50f1067": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "HTMLModel", "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_b0e07c3d41364c8c98adfbb57086c796", "placeholder": "​", "style": "IPY_MODEL_9e86e63b263140309eecf3a158386202", "value": "Downloading pytorch_model.bin: 100%" } }, "241f0ca377aa44c19161efe653281193": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "HBoxModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "HBoxModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "HBoxView", "box_style": "", "children": [ "IPY_MODEL_d404cfb25656478991c840bef0331466", "IPY_MODEL_1f1281c4f06346d09c594196e9f81473", "IPY_MODEL_bcb0facd33f04b6fa5679caf0a57f0e0" ], "layout": "IPY_MODEL_2af0430bcf82474890bd6ac1a81ae754" } }, "2486bf8df72b4e38b2c34747304f9680": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "ProgressStyleModel", "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": "" } }, "26061d34f20c4f818733535a1033535d": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.2.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "282019e249be40238e68ba38f0a72785": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.2.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "2841c7b60b0e4c429c846f1139ee2ff6": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.2.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "2af0430bcf82474890bd6ac1a81ae754": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.2.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "32d0a4e7648846f9b8950a69f3d8521c": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "HTMLModel", "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_c9ee46e6fa99412e803a5b83fa77e56b", "placeholder": "​", "style": "IPY_MODEL_344f452fcdec4179ac97325c9c9d9aa6", "value": " 516/516 [00:00<00:00, 42.3kB/s]" } }, "344f452fcdec4179ac97325c9c9d9aa6": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "DescriptionStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "DescriptionStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "" } }, "3499292f4499409bbcc176f97a37fa62": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.2.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "36976d30b403474dad0b3106fe7ca73e": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "ProgressStyleModel", "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": "" } }, "43c03bdc8f4446709dd3e0aa9c3d6358": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "FloatProgressModel", "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_c564c332b4184793b2409092d4b8d22b", "max": 671, "min": 0, "orientation": "horizontal", "style": "IPY_MODEL_137d31f3fdda489d9bf7cd40ce2a46a3", "value": 671 } }, "49c15e13a31e4ceeac42c69b0900dbd7": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "HTMLModel", "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_26061d34f20c4f818733535a1033535d", "placeholder": "​", "style": "IPY_MODEL_e92b9a4f3ec24db1978e36be96f673e1", "value": "Downloading tokenizer_config.json: 100%" } }, "593ca3c8899c44afb53588243b2b188f": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.2.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "6190475810e8458d92b5513ab298e209": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "HTMLModel", "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_7ff1a22d12724844bbee269c084d8408", "placeholder": "​", "style": "IPY_MODEL_c2b8cd38d9ff46c48e613bdcf14e2e34", "value": "Downloading config.json: 100%" } }, "6e257abcd8614fd1aab16280e4343543": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.2.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "7149655c46f04bd484403d174722bb3b": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "DescriptionStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "DescriptionStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "" } }, "7234430533de4f95b54144b3adc22d6e": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.2.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "76862deb11bb4b2bbe729e07e683bd01": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.2.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "7ff1a22d12724844bbee269c084d8408": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.2.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "860b6078f0dc4a1a98e0b556bf632eba": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "HTMLModel", "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_76862deb11bb4b2bbe729e07e683bd01", "placeholder": "​", "style": "IPY_MODEL_daa7f650b929457bacaa87a961c0563c", "value": " 671/671 [00:00<00:00, 53.2kB/s]" } }, "89501baffd8242f387508786301e5e95": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "HTMLModel", "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_2841c7b60b0e4c429c846f1139ee2ff6", "placeholder": "​", "style": "IPY_MODEL_7149655c46f04bd484403d174722bb3b", "value": " 222k/222k [00:00<00:00, 2.32MB/s]" } }, "8a67a69431034a4788a21edd32d8a9e6": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.2.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "8f6dcd11623342b08185e5b945a212b4": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "DescriptionStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "DescriptionStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "" } }, "928328d4aece4a1db026ebc016648148": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.2.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "9456a0fc2aee433e91ca3b63f75340ae": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "ProgressStyleModel", "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": "" } }, "9a242278bd7b49418418e033ce8269ad": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "HBoxModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "HBoxModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "HBoxView", "box_style": "", "children": [ "IPY_MODEL_105d78741cf34ba9ad513d8bd69db5ec", "IPY_MODEL_fc535709d9a7411787341a4778e272a9", "IPY_MODEL_89501baffd8242f387508786301e5e95" ], "layout": "IPY_MODEL_f8c0484ed5e646dfb3a909e794401cc9" } }, "9e86e63b263140309eecf3a158386202": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "DescriptionStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "DescriptionStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "" } }, "acbf780bd63449ef872fa3bd5d8d5bfc": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "DescriptionStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "DescriptionStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "" } }, "b0e07c3d41364c8c98adfbb57086c796": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.2.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "b1c2bd1550bc49cca2b16a97b8d7eb31": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "DescriptionStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "DescriptionStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "" } }, "b39912025e684723a20d073ef66440e9": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "DescriptionStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "DescriptionStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "" } }, "b66ba4cb083b459eaa0033f77c6a369c": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.2.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "bcb0facd33f04b6fa5679caf0a57f0e0": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "HTMLModel", "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_593ca3c8899c44afb53588243b2b188f", "placeholder": "​", "style": "IPY_MODEL_b1c2bd1550bc49cca2b16a97b8d7eb31", "value": " 112/112 [00:00<00:00, 9.16kB/s]" } }, "c2b8cd38d9ff46c48e613bdcf14e2e34": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "DescriptionStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "DescriptionStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "" } }, "c564c332b4184793b2409092d4b8d22b": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.2.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "c9ee46e6fa99412e803a5b83fa77e56b": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.2.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "cee725dad5a4479499d0fe5b026fe062": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "HBoxModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "HBoxModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "HBoxView", "box_style": "", "children": [ "IPY_MODEL_6190475810e8458d92b5513ab298e209", "IPY_MODEL_43c03bdc8f4446709dd3e0aa9c3d6358", "IPY_MODEL_860b6078f0dc4a1a98e0b556bf632eba" ], "layout": "IPY_MODEL_6e257abcd8614fd1aab16280e4343543" } }, "d404cfb25656478991c840bef0331466": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "HTMLModel", "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_e2cd619bf822408d829dc3f729aa6492", "placeholder": "​", "style": "IPY_MODEL_b39912025e684723a20d073ef66440e9", "value": "Downloading (…)cial_tokens_map.json: 100%" } }, "daa7f650b929457bacaa87a961c0563c": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "DescriptionStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "DescriptionStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "" } }, "e13df760b0dd4ce1a18f0b73b6a36524": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "HBoxModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "HBoxModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "HBoxView", "box_style": "", "children": [ "IPY_MODEL_2279807560bf4892b382ae82c50f1067", "IPY_MODEL_f75be546d3ca4d5a9004f5e1253b3341", "IPY_MODEL_eb9fccb03e354a9b8f234b2f42517706" ], "layout": "IPY_MODEL_282019e249be40238e68ba38f0a72785" } }, "e2cd619bf822408d829dc3f729aa6492": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.2.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "e77610cad2214ecbad5e9a4150da2bce": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.2.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "e92b9a4f3ec24db1978e36be96f673e1": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "DescriptionStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "DescriptionStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "" } }, "eb9fccb03e354a9b8f234b2f42517706": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "HTMLModel", "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_b66ba4cb083b459eaa0033f77c6a369c", "placeholder": "​", "style": "IPY_MODEL_acbf780bd63449ef872fa3bd5d8d5bfc", "value": " 534M/534M [00:02<00:00, 219MB/s]" } }, "ee2ebc67e0324e03932d3d823f0a3dd5": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "HBoxModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "HBoxModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "HBoxView", "box_style": "", "children": [ "IPY_MODEL_49c15e13a31e4ceeac42c69b0900dbd7", "IPY_MODEL_1a45728bbec74f368f0a71e32a098497", "IPY_MODEL_32d0a4e7648846f9b8950a69f3d8521c" ], "layout": "IPY_MODEL_8a67a69431034a4788a21edd32d8a9e6" } }, "f75be546d3ca4d5a9004f5e1253b3341": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "FloatProgressModel", "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_928328d4aece4a1db026ebc016648148", "max": 534276705, "min": 0, "orientation": "horizontal", "style": "IPY_MODEL_2486bf8df72b4e38b2c34747304f9680", "value": 534276705 } }, "f8c0484ed5e646dfb3a909e794401cc9": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.2.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "fc535709d9a7411787341a4778e272a9": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "FloatProgressModel", "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_ffa36c5089ef4557a4be43381f1d16b7", "max": 221793, "min": 0, "orientation": "horizontal", "style": "IPY_MODEL_36976d30b403474dad0b3106fe7ca73e", "value": 221793 } }, "ffa36c5089ef4557a4be43381f1d16b7": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.2.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } } }, "version_major": 2, "version_minor": 0 } } }, "nbformat": 4, "nbformat_minor": 5 }