{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"pygments_lexer":"ipython3","nbconvert_exporter":"python","version":"3.6.4","file_extension":".py","codemirror_mode":{"name":"ipython","version":3},"name":"python","mimetype":"text/x-python"}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"markdown","source":"# Histopathic Cancer Detection (HCD)\n### Taylor Kern","metadata":{}},{"cell_type":"markdown","source":"# Prepare Enviornment","metadata":{}},{"cell_type":"code","source":"import numpy as np\nimport pandas as pd\nimport matplotlib.pyplot as plt\nimport matplotlib.image as mpimg\nimport pickle\n\nfrom sklearn.model_selection import train_test_split\n\nimport tensorflow as tf\nfrom tensorflow.keras.models import Sequential\nfrom tensorflow import keras\nfrom tensorflow.keras.layers import * \n\nfrom tensorflow.keras.preprocessing.image import ImageDataGenerator","metadata":{"execution":{"iopub.status.busy":"2022-03-22T00:35:38.823672Z","iopub.execute_input":"2022-03-22T00:35:38.823941Z","iopub.status.idle":"2022-03-22T00:35:44.730476Z","shell.execute_reply.started":"2022-03-22T00:35:38.823907Z","shell.execute_reply":"2022-03-22T00:35:44.729745Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# Load Training DataFrame","metadata":{}},{"cell_type":"code","source":"train = pd.read_csv('../input/histopathologic-cancer-detection/train_labels.csv', dtype=str)\nprint(train.shape)","metadata":{"execution":{"iopub.status.busy":"2022-03-22T00:35:44.732007Z","iopub.execute_input":"2022-03-22T00:35:44.732241Z","iopub.status.idle":"2022-03-22T00:35:45.041906Z","shell.execute_reply.started":"2022-03-22T00:35:44.732210Z","shell.execute_reply":"2022-03-22T00:35:45.040225Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train.head()","metadata":{"execution":{"iopub.status.busy":"2022-03-22T00:35:45.043365Z","iopub.execute_input":"2022-03-22T00:35:45.043630Z","iopub.status.idle":"2022-03-22T00:35:45.061743Z","shell.execute_reply.started":"2022-03-22T00:35:45.043595Z","shell.execute_reply":"2022-03-22T00:35:45.060934Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train.id = train.id + '.tif'","metadata":{"execution":{"iopub.status.busy":"2022-03-22T00:35:45.063726Z","iopub.execute_input":"2022-03-22T00:35:45.064048Z","iopub.status.idle":"2022-03-22T00:35:45.106739Z","shell.execute_reply.started":"2022-03-22T00:35:45.064012Z","shell.execute_reply":"2022-03-22T00:35:45.105996Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train.head()","metadata":{"execution":{"iopub.status.busy":"2022-03-22T00:35:45.108115Z","iopub.execute_input":"2022-03-22T00:35:45.108369Z","iopub.status.idle":"2022-03-22T00:35:45.119054Z","shell.execute_reply.started":"2022-03-22T00:35:45.108337Z","shell.execute_reply":"2022-03-22T00:35:45.118334Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# Label Distribution","metadata":{}},{"cell_type":"code","source":"(train.label.value_counts() / len(train)).to_frame().sort_index().T","metadata":{"execution":{"iopub.status.busy":"2022-03-22T00:35:45.121243Z","iopub.execute_input":"2022-03-22T00:35:45.121939Z","iopub.status.idle":"2022-03-22T00:35:45.158574Z","shell.execute_reply.started":"2022-03-22T00:35:45.121902Z","shell.execute_reply":"2022-03-22T00:35:45.157899Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# Extract Images","metadata":{}},{"cell_type":"code","source":"train_path = \"../input/histopathologic-cancer-detection/train\"\n\nsample = train.sample(n=16).reset_index()\n\nplt.figure(figsize=(6,6))\n\nfor i, row in sample.iterrows():\n\n    img = mpimg.imread(f'../input/histopathologic-cancer-detection/train/{row.id}')    \n    label = row.label\n\n    plt.subplot(4,4,i+1)\n    plt.imshow(img)\n    plt.text(0, -5, f'Class {label}', color='k')\n        \n    plt.axis('off')\n\nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2022-03-22T00:35:45.160208Z","iopub.execute_input":"2022-03-22T00:35:45.160711Z","iopub.status.idle":"2022-03-22T00:35:45.923635Z","shell.execute_reply.started":"2022-03-22T00:35:45.160674Z","shell.execute_reply":"2022-03-22T00:35:45.923008Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# Training and Validation Sets","metadata":{}},{"cell_type":"code","source":"train_df, valid_df = train_test_split(train, test_size=0.2, random_state=1, stratify=train.label)","metadata":{"execution":{"iopub.status.busy":"2022-03-22T00:35:45.924492Z","iopub.execute_input":"2022-03-22T00:35:45.924692Z","iopub.status.idle":"2022-03-22T00:35:46.217261Z","shell.execute_reply.started":"2022-03-22T00:35:45.924665Z","shell.execute_reply":"2022-03-22T00:35:46.216561Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# Data Generators","metadata":{}},{"cell_type":"code","source":"train_datagen = ImageDataGenerator(rescale=1/255)\nvalidation_datagen = ImageDataGenerator(rescale=1/255)","metadata":{"execution":{"iopub.status.busy":"2022-03-22T00:35:46.218678Z","iopub.execute_input":"2022-03-22T00:35:46.218917Z","iopub.status.idle":"2022-03-22T00:35:46.233719Z","shell.execute_reply.started":"2022-03-22T00:35:46.218882Z","shell.execute_reply":"2022-03-22T00:35:46.233064Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"BATCH_SIZE = 64\n\ntrain_loader = train_datagen.flow_from_dataframe(\n    dataframe = valid_df,\n    directory = train_path,\n    x_col = 'id',\n    y_col = 'label',\n    batch_size = BATCH_SIZE,\n    seed = 1,\n    shuffle = True,\n    class_mode = 'categorical',\n    target_size = (96,96)\n)\n\nvalid_loader = train_datagen.flow_from_dataframe(\n    dataframe = valid_df,\n    directory = train_path,\n    x_col = 'id',\n    y_col = 'label',\n    batch_size = BATCH_SIZE,\n    seed = 1,\n    shuffle = True,\n    class_mode = 'categorical',\n    target_size = (96,96)\n)","metadata":{"execution":{"iopub.status.busy":"2022-03-22T00:35:46.237041Z","iopub.execute_input":"2022-03-22T00:35:46.237226Z","iopub.status.idle":"2022-03-22T00:37:25.121410Z","shell.execute_reply.started":"2022-03-22T00:35:46.237202Z","shell.execute_reply":"2022-03-22T00:37:25.120666Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"TR_STEPS = len(train_loader)\nVA_STEPS = len(valid_loader)\n\nprint(TR_STEPS)\nprint(VA_STEPS)","metadata":{"execution":{"iopub.status.busy":"2022-03-22T00:37:25.122698Z","iopub.execute_input":"2022-03-22T00:37:25.123195Z","iopub.status.idle":"2022-03-22T00:37:25.129497Z","shell.execute_reply.started":"2022-03-22T00:37:25.123157Z","shell.execute_reply":"2022-03-22T00:37:25.128664Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# Build and Train","metadata":{}},{"cell_type":"code","source":"np.random.seed(1)\ntf.random.set_seed(1)\n\ncnn = Sequential([\n    Cropping2D(cropping=((32, 32), (32, 32)), input_shape=(96,96,3)),\n    Conv2D(16, (3,3), activation = 'relu', padding = 'same'),\n    Conv2D(16, (3,3), activation = 'relu', padding = 'same'),\n    MaxPooling2D(2,2),\n    Dropout(0.5),\n    BatchNormalization(),\n\n    Conv2D(64, (3,3), activation = 'relu', padding = 'same'),\n    Conv2D(64, (3,3), activation = 'relu', padding = 'same'),\n    MaxPooling2D(2,2),\n    Dropout(0.5),\n    BatchNormalization(),\n    \n    Conv2D(128, (3,3), activation = 'relu', padding = 'same'),\n    Conv2D(128, (3,3), activation = 'relu', padding = 'same'),\n    MaxPooling2D(2,2),\n    Dropout(0.5),\n    BatchNormalization(),\n\n    Flatten(),\n    \n    Dense(16, activation='relu'),\n    Dropout(0.5),\n    Dense(8, activation='relu'),\n    Dropout(0.5),\n    BatchNormalization(),\n    Dense(2, activation='softmax')\n])\n\ncnn.summary()","metadata":{"execution":{"iopub.status.busy":"2022-03-22T00:37:25.130983Z","iopub.execute_input":"2022-03-22T00:37:25.131387Z","iopub.status.idle":"2022-03-22T00:37:27.893950Z","shell.execute_reply.started":"2022-03-22T00:37:25.131349Z","shell.execute_reply":"2022-03-22T00:37:27.893250Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"opt = tf.keras.optimizers.Adam(0.001)\ncnn.compile(loss='categorical_crossentropy', optimizer=opt, metrics=['accuracy', tf.keras.metrics.AUC()])","metadata":{"execution":{"iopub.status.busy":"2022-03-22T00:37:27.895261Z","iopub.execute_input":"2022-03-22T00:37:27.895555Z","iopub.status.idle":"2022-03-22T00:37:27.914443Z","shell.execute_reply.started":"2022-03-22T00:37:27.895519Z","shell.execute_reply":"2022-03-22T00:37:27.913799Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"%%time \n\nh1 = cnn.fit(\n    x = train_loader, \n    steps_per_epoch = TR_STEPS, \n    epochs = 40,\n    validation_data = valid_loader, \n    validation_steps = VA_STEPS, \n    verbose = 1\n)","metadata":{"execution":{"iopub.status.busy":"2022-03-22T00:37:27.915533Z","iopub.execute_input":"2022-03-22T00:37:27.915838Z","iopub.status.idle":"2022-03-22T02:11:40.955097Z","shell.execute_reply.started":"2022-03-22T00:37:27.915802Z","shell.execute_reply":"2022-03-22T02:11:40.954357Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"history = h1.history\nprint(history.keys())","metadata":{"execution":{"iopub.status.busy":"2022-03-22T02:11:40.956669Z","iopub.execute_input":"2022-03-22T02:11:40.957561Z","iopub.status.idle":"2022-03-22T02:11:40.963556Z","shell.execute_reply.started":"2022-03-22T02:11:40.957509Z","shell.execute_reply":"2022-03-22T02:11:40.962755Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"epoch_range = range(1, len(history['loss'])+1)\n\nplt.figure(figsize=[14,4])\nplt.subplot(1,3,1)\nplt.plot(epoch_range, history['loss'], label='Training')\nplt.plot(epoch_range, history['val_loss'], label='Validation')\nplt.xlabel('Epoch'); plt.ylabel('Loss'); plt.title('Loss')\nplt.legend()\nplt.subplot(1,3,2)\nplt.plot(epoch_range, history['accuracy'], label='Training')\nplt.plot(epoch_range, history['val_accuracy'], label='Validation')\nplt.xlabel('Epoch'); plt.ylabel('Accuracy'); plt.title('Accuracy')\nplt.legend()\nplt.subplot(1,3,3)\nplt.plot(epoch_range, history['auc'], label='Training')\nplt.plot(epoch_range, history['val_auc'], label='Validation')\nplt.xlabel('Epoch'); plt.ylabel('AUC'); plt.title('AUC')\nplt.legend()\nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2022-03-22T02:11:40.965213Z","iopub.execute_input":"2022-03-22T02:11:40.966166Z","iopub.status.idle":"2022-03-22T02:11:41.471545Z","shell.execute_reply.started":"2022-03-22T02:11:40.966063Z","shell.execute_reply":"2022-03-22T02:11:41.470902Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# Train 2  ","metadata":{}},{"cell_type":"code","source":"tf.keras.backend.set_value(cnn.optimizer.learning_rate, 0.0001)","metadata":{"execution":{"iopub.status.busy":"2022-03-22T02:11:41.472515Z","iopub.execute_input":"2022-03-22T02:11:41.473350Z","iopub.status.idle":"2022-03-22T02:11:41.477725Z","shell.execute_reply.started":"2022-03-22T02:11:41.473314Z","shell.execute_reply":"2022-03-22T02:11:41.477040Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"%%time \n\nh2 = cnn.fit(\n    x = train_loader, \n    steps_per_epoch = TR_STEPS, \n    epochs = 30,\n    validation_data = valid_loader, \n    validation_steps = VA_STEPS, \n    verbose = 1\n)","metadata":{"execution":{"iopub.status.busy":"2022-03-22T02:11:41.478988Z","iopub.execute_input":"2022-03-22T02:11:41.479372Z","iopub.status.idle":"2022-03-22T03:10:26.051058Z","shell.execute_reply.started":"2022-03-22T02:11:41.479336Z","shell.execute_reply":"2022-03-22T03:10:26.050283Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"for k in history.keys():\n    history[k] += h2.history[k]\n\nepoch_range = range(1, len(history['loss'])+1)\n\nplt.figure(figsize=[14,4])\nplt.subplot(1,3,1)\nplt.plot(epoch_range, history['loss'], label='Training')\nplt.plot(epoch_range, history['val_loss'], label='Validation')\nplt.xlabel('Epoch'); plt.ylabel('Loss'); plt.title('Loss')\nplt.legend()\nplt.subplot(1,3,2)\nplt.plot(epoch_range, history['accuracy'], label='Training')\nplt.plot(epoch_range, history['val_accuracy'], label='Validation')\nplt.xlabel('Epoch'); plt.ylabel('Accuracy'); plt.title('Accuracy')\nplt.legend()\nplt.subplot(1,3,3)\nplt.plot(epoch_range, history['auc'], label='Training')\nplt.plot(epoch_range, history['val_auc'], label='Validation')\nplt.xlabel('Epoch'); plt.ylabel('AUC'); plt.title('AUC')\nplt.legend()\nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2022-03-22T03:10:26.052826Z","iopub.execute_input":"2022-03-22T03:10:26.053412Z","iopub.status.idle":"2022-03-22T03:10:26.567012Z","shell.execute_reply.started":"2022-03-22T03:10:26.053370Z","shell.execute_reply":"2022-03-22T03:10:26.566362Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"## Training 3","metadata":{}},{"cell_type":"code","source":"tf.keras.backend.set_value(cnn.optimizer.learning_rate, 0.0001)","metadata":{"execution":{"iopub.status.busy":"2022-03-22T03:10:26.568021Z","iopub.execute_input":"2022-03-22T03:10:26.568392Z","iopub.status.idle":"2022-03-22T03:10:26.572979Z","shell.execute_reply.started":"2022-03-22T03:10:26.568359Z","shell.execute_reply":"2022-03-22T03:10:26.572351Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"%%time \n\nh3 = cnn.fit(\n    x = train_loader, \n    steps_per_epoch = TR_STEPS, \n    epochs = 20,\n    validation_data = valid_loader, \n    validation_steps = VA_STEPS, \n    verbose = 1\n)","metadata":{"execution":{"iopub.status.busy":"2022-03-22T03:10:26.574322Z","iopub.execute_input":"2022-03-22T03:10:26.574785Z","iopub.status.idle":"2022-03-22T03:50:46.150009Z","shell.execute_reply.started":"2022-03-22T03:10:26.574749Z","shell.execute_reply":"2022-03-22T03:50:46.149347Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"for k in history.keys():\n    history[k] += h3.history[k]\n\nepoch_range = range(1, len(history['loss'])+1)\n\nplt.figure(figsize=[14,4])\nplt.subplot(1,3,1)\nplt.plot(epoch_range, history['loss'], label='Training')\nplt.plot(epoch_range, history['val_loss'], label='Validation')\nplt.xlabel('Epoch'); plt.ylabel('Loss'); plt.title('Loss')\nplt.legend()\nplt.subplot(1,3,2)\nplt.plot(epoch_range, history['accuracy'], label='Training')\nplt.plot(epoch_range, history['val_accuracy'], label='Validation')\nplt.xlabel('Epoch'); plt.ylabel('Accuracy'); plt.title('Accuracy')\nplt.legend()\nplt.subplot(1,3,3)\nplt.plot(epoch_range, history['auc'], label='Training')\nplt.plot(epoch_range, history['val_auc'], label='Validation')\nplt.xlabel('Epoch'); plt.ylabel('AUC'); plt.title('AUC')\nplt.legend()\nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2022-03-22T03:50:46.152238Z","iopub.execute_input":"2022-03-22T03:50:46.152525Z","iopub.status.idle":"2022-03-22T03:50:46.665812Z","shell.execute_reply.started":"2022-03-22T03:50:46.152486Z","shell.execute_reply":"2022-03-22T03:50:46.665127Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"cnn.save('HCDv01.h5')\npickle.dump(history, open(f'HCDv01.pkl', 'wb'))","metadata":{"execution":{"iopub.status.busy":"2022-03-22T03:50:46.666992Z","iopub.execute_input":"2022-03-22T03:50:46.668955Z","iopub.status.idle":"2022-03-22T03:50:46.752322Z","shell.execute_reply.started":"2022-03-22T03:50:46.668910Z","shell.execute_reply":"2022-03-22T03:50:46.751695Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# Submission","metadata":{}},{"cell_type":"code","source":"BATCH_SIZE = 64\n\ntest_datagen = ImageDataGenerator(rescale=1/255)\n\ntest_loader = test_datagen.flow_from_dataframe(\n    dataframe = train,\n    directory = train_path,\n    x_col = 'id',\n    batch_size = BATCH_SIZE,\n    shuffle = False,\n    class_mode = None,\n    target_size = (96,96)\n)","metadata":{"execution":{"iopub.status.busy":"2022-03-22T03:53:18.013785Z","iopub.execute_input":"2022-03-22T03:53:18.014067Z","iopub.status.idle":"2022-03-22T03:58:47.814057Z","shell.execute_reply.started":"2022-03-22T03:53:18.014036Z","shell.execute_reply":"2022-03-22T03:58:47.813342Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"test_probs = cnn.predict(test_loader)\nprint(test_probs.shape)","metadata":{"execution":{"iopub.status.busy":"2022-03-22T03:58:47.815485Z","iopub.execute_input":"2022-03-22T03:58:47.815721Z","iopub.status.idle":"2022-03-22T04:13:43.115129Z","shell.execute_reply.started":"2022-03-22T03:58:47.815686Z","shell.execute_reply":"2022-03-22T04:13:43.114419Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"print(len(test_loader))\n","metadata":{"execution":{"iopub.status.busy":"2022-03-22T04:13:43.116646Z","iopub.execute_input":"2022-03-22T04:13:43.117129Z","iopub.status.idle":"2022-03-22T04:13:43.122050Z","shell.execute_reply.started":"2022-03-22T04:13:43.117091Z","shell.execute_reply":"2022-03-22T04:13:43.121352Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"print(test_probs[:10,].round(2))\n","metadata":{"execution":{"iopub.status.busy":"2022-03-22T04:13:43.124478Z","iopub.execute_input":"2022-03-22T04:13:43.124994Z","iopub.status.idle":"2022-03-22T04:13:43.132623Z","shell.execute_reply.started":"2022-03-22T04:13:43.124958Z","shell.execute_reply":"2022-03-22T04:13:43.131954Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"test_pred = np.argmax(test_probs, axis=1)\nprint(test_pred[:10])","metadata":{"execution":{"iopub.status.busy":"2022-03-22T04:13:43.133980Z","iopub.execute_input":"2022-03-22T04:13:43.134362Z","iopub.status.idle":"2022-03-22T04:13:43.144267Z","shell.execute_reply.started":"2022-03-22T04:13:43.134322Z","shell.execute_reply":"2022-03-22T04:13:43.143318Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# Prepare Submission","metadata":{}},{"cell_type":"code","source":"submission = pd.read_csv('../input/histopathologic-cancer-detection/sample_submission.csv')\nsubmission.head()","metadata":{"execution":{"iopub.status.busy":"2022-03-22T04:13:43.145843Z","iopub.execute_input":"2022-03-22T04:13:43.146164Z","iopub.status.idle":"2022-03-22T04:13:43.227869Z","shell.execute_reply.started":"2022-03-22T04:13:43.146131Z","shell.execute_reply":"2022-03-22T04:13:43.227188Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"submission.label = test_probs[:,1]\nsubmission.head()","metadata":{"execution":{"iopub.status.busy":"2022-03-22T04:13:43.228859Z","iopub.execute_input":"2022-03-22T04:13:43.229171Z","iopub.status.idle":"2022-03-22T04:13:43.267802Z","shell.execute_reply.started":"2022-03-22T04:13:43.229134Z","shell.execute_reply":"2022-03-22T04:13:43.266283Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"submission.to_csv('submission.csv', header=True, index=False)","metadata":{"execution":{"iopub.status.busy":"2022-03-22T04:13:43.268396Z","iopub.status.idle":"2022-03-22T04:13:43.268714Z","shell.execute_reply.started":"2022-03-22T04:13:43.268542Z","shell.execute_reply":"2022-03-22T04:13:43.268561Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}