{"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":"code","source":"# This Python 3 environment comes with many helpful analytics libraries installed\n# It is defined by the kaggle/python Docker image: https://github.com/kaggle/docker-python\n# For example, here's several helpful packages to load\n\nimport numpy as np # linear algebra\nimport pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)\n\n# Input data files are available in the read-only \"../input/\" directory\n# For example, running this (by clicking run or pressing Shift+Enter) will list all files under the input directory\n\nimport os\nfor dirname, _, filenames in os.walk('/kaggle/input'):\n    for filename in filenames:\n        print(os.path.join(dirname, filename))\n\n# You can write up to 20GB to the current directory (/kaggle/working/) that gets preserved as output when you create a version using \"Save & Run All\" \n# You can also write temporary files to /kaggle/temp/, but they won't be saved outside of the current session","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2023-07-29T02:09:15.866919Z","iopub.execute_input":"2023-07-29T02:09:15.867889Z","iopub.status.idle":"2023-07-29T02:09:15.875686Z","shell.execute_reply.started":"2023-07-29T02:09:15.867851Z","shell.execute_reply":"2023-07-29T02:09:15.874733Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import tensorflow as tf\nfrom tensorflow.keras.utils import to_categorical\nfrom sklearn.model_selection import train_test_split\nfrom PIL import Image\nimport glob\nimport matplotlib.pyplot as plt\nimport random\nimport matplotlib.image as mpimg\nimport shutil","metadata":{"execution":{"iopub.status.busy":"2023-07-29T02:09:15.877759Z","iopub.execute_input":"2023-07-29T02:09:15.878473Z","iopub.status.idle":"2023-07-29T02:09:25.449925Z","shell.execute_reply.started":"2023-07-29T02:09:15.878436Z","shell.execute_reply":"2023-07-29T02:09:25.448732Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# zipファイルを展開","metadata":{}},{"cell_type":"code","source":"base_dir = \"../input/dogs-vs-cats\"\ntrain_dir = os.path.join(base_dir, \"train.zip\")\ntest_dir = os.path.join(base_dir, \"test1.zip\")\n\nimport zipfile\nwith zipfile.ZipFile(train_dir,\"r\") as z:\n    z.extractall()\n\nwith zipfile.ZipFile(test_dir,\"r\") as z:\n    z.extractall()","metadata":{"execution":{"iopub.status.busy":"2023-07-29T02:09:25.453657Z","iopub.execute_input":"2023-07-29T02:09:25.455219Z","iopub.status.idle":"2023-07-29T02:09:40.693349Z","shell.execute_reply.started":"2023-07-29T02:09:25.455176Z","shell.execute_reply":"2023-07-29T02:09:40.692259Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"os.listdir(\"/kaggle/working/\") #dir確認","metadata":{"execution":{"iopub.status.busy":"2023-07-29T02:09:40.696624Z","iopub.execute_input":"2023-07-29T02:09:40.697442Z","iopub.status.idle":"2023-07-29T02:09:40.707241Z","shell.execute_reply.started":"2023-07-29T02:09:40.697406Z","shell.execute_reply":"2023-07-29T02:09:40.705995Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"os.getcwd()","metadata":{"execution":{"iopub.status.busy":"2023-07-29T02:09:40.710717Z","iopub.execute_input":"2023-07-29T02:09:40.711168Z","iopub.status.idle":"2023-07-29T02:09:40.723122Z","shell.execute_reply.started":"2023-07-29T02:09:40.711130Z","shell.execute_reply":"2023-07-29T02:09:40.722038Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"passを作る","metadata":{}},{"cell_type":"code","source":"train_path = '/kaggle/working/train/' #trainデータ\ntest1_path = '/kaggle/working/test1/' #testデータ","metadata":{"execution":{"iopub.status.busy":"2023-07-29T02:09:40.724507Z","iopub.execute_input":"2023-07-29T02:09:40.724788Z","iopub.status.idle":"2023-07-29T02:09:40.732012Z","shell.execute_reply.started":"2023-07-29T02:09:40.724763Z","shell.execute_reply":"2023-07-29T02:09:40.730963Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# 猫と犬のディレクトリを作り分ける","metadata":{}},{"cell_type":"code","source":"\"\"\"\nos.mkdir(train_path + 'cats')\ncat_dir = ('/kaggle/working/train/cats/')\nos.mkdir(train_path + 'dogs')\ndog_dir = ('/kaggle/working/train/dogs/')\n\ndirs = [each for each in os.listdir(train_path)]\n\nfor file in dirs:\n    folder = file.split(\".\")[0]\n    if folder == 'cat':\n        shutil.move(train_path+file, cat_dir)\n    elif folder == 'dog':\n        shutil.move(train_path+file, dog_dir)\n\"\"\"","metadata":{"execution":{"iopub.status.busy":"2023-07-29T02:09:40.733555Z","iopub.execute_input":"2023-07-29T02:09:40.733818Z","iopub.status.idle":"2023-07-29T02:09:40.744894Z","shell.execute_reply.started":"2023-07-29T02:09:40.733795Z","shell.execute_reply":"2023-07-29T02:09:40.743155Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# 画像の前処理","metadata":{}},{"cell_type":"code","source":"\"\"\"\nfolder = ['cats','dogs']\nimage_size = 224 #インプット画像のサイズ\nX = []\nY = []\nfor index, name in enumerate(folder): #ディレクトリの種類、画像ファイル名を繰返し取得する\n    dir = train_path + name\n    files = glob.glob(dir + \"/*.jpg\") #ファイル名の取得\n    for i, file in enumerate(files): #各画像へ↓の処理を繰返し実施する\n        image = Image.open(file) #画像の読み込み\n        image = image.convert(\"RGB\") #RGBに変換\n        image = image.resize((image_size, image_size)) #サイズ変更\n        data = np.asarray(image) #画像データを配列へ変更\n        X.append(data) #画像データを繰返し追加\n        Y.append(index) #cat:0, dog:1の値を繰返し追加\nX = np.array(X)\nY = np.array(Y)\n\"\"\"","metadata":{"execution":{"iopub.status.busy":"2023-07-29T02:09:40.746877Z","iopub.execute_input":"2023-07-29T02:09:40.747460Z","iopub.status.idle":"2023-07-29T02:09:40.757712Z","shell.execute_reply.started":"2023-07-29T02:09:40.747425Z","shell.execute_reply":"2023-07-29T02:09:40.756643Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"\"\"\"\n#正解ラベルの形式を変換\nY = to_categorical(Y, 2)\nprint(Y)\n\"\"\"","metadata":{"execution":{"iopub.status.busy":"2023-07-29T02:09:40.759013Z","iopub.execute_input":"2023-07-29T02:09:40.759512Z","iopub.status.idle":"2023-07-29T02:09:40.769564Z","shell.execute_reply.started":"2023-07-29T02:09:40.759480Z","shell.execute_reply":"2023-07-29T02:09:40.768328Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"filenames = os.listdir(train_path) #dog123~~~,cat1234~~など\ncategories = [] #リスト初期化\nfor filename in filenames: #filenames(dog123~~~,cat1234~~)を一つずつfilenameに入れてforループ\n    category = filename.split('.')[0]#filenameは(dog.4784.jpg)この形なのでsplitを用いることにより[dog,4784,jpg]に分けられるこれの[0]をとることで[dog,cat]を受け取れる\n    if category == 'dog':\n        categories.append(1)#dog = 1,cat = 0をcnnでの判定で用いる。\n    else:\n        categories.append(0)\ndata = pd.DataFrame({'filename' : filenames , 'category' : categories})#dataframe型でdataに代入する(filename = dog.4784.jpg,category = 1(dog))\ndata.head()","metadata":{"execution":{"iopub.status.busy":"2023-07-29T02:09:40.771044Z","iopub.execute_input":"2023-07-29T02:09:40.771714Z","iopub.status.idle":"2023-07-29T02:09:40.852194Z","shell.execute_reply.started":"2023-07-29T02:09:40.771680Z","shell.execute_reply":"2023-07-29T02:09:40.851120Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"data['category'].value_counts()#確認(dogとcatの数)","metadata":{"execution":{"iopub.status.busy":"2023-07-29T02:09:40.857023Z","iopub.execute_input":"2023-07-29T02:09:40.857339Z","iopub.status.idle":"2023-07-29T02:09:40.919169Z","shell.execute_reply.started":"2023-07-29T02:09:40.857312Z","shell.execute_reply":"2023-07-29T02:09:40.918126Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"data['category1'] = data['category'].apply(lambda x: 'cat' if x== 0 else 'dog')#datafram型にcategory1(dog,cat)を追加する\ndata.head()","metadata":{"execution":{"iopub.status.busy":"2023-07-29T02:09:40.920840Z","iopub.execute_input":"2023-07-29T02:09:40.921227Z","iopub.status.idle":"2023-07-29T02:09:41.521763Z","shell.execute_reply.started":"2023-07-29T02:09:40.921192Z","shell.execute_reply":"2023-07-29T02:09:41.520514Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"data.drop(['category'] , inplace = True , axis = 1)#category(1,0)を削除する\ndata.rename(columns  = {'category1' : 'category'} , inplace =True)#category1(dog,cat)をcategoryに名前を変える\ndata.head()","metadata":{"execution":{"iopub.status.busy":"2023-07-29T02:09:41.524400Z","iopub.execute_input":"2023-07-29T02:09:41.528169Z","iopub.status.idle":"2023-07-29T02:09:41.544804Z","shell.execute_reply.started":"2023-07-29T02:09:41.528133Z","shell.execute_reply":"2023-07-29T02:09:41.543299Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_df , val_df = train_test_split(data , test_size = 0.2 , random_state = 42)#traindataをtrainとval(確認用)に分けるsizeはtrainが80%valが20%,seed値(random_state)を設定することで毎回同じデータに分けることが可能\ntrain_df = train_df.reset_index(drop = True)#splitをすることでindexがランダムになるので初期化する\nval_df = val_df.reset_index(drop = True)","metadata":{"execution":{"iopub.status.busy":"2023-07-29T02:09:41.547356Z","iopub.execute_input":"2023-07-29T02:09:41.548511Z","iopub.status.idle":"2023-07-29T02:09:41.560900Z","shell.execute_reply.started":"2023-07-29T02:09:41.548471Z","shell.execute_reply":"2023-07-29T02:09:41.559778Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"\"\"\"\n#学習用データとテストデータへ分割\nX_train, X_test, y_train, y_test = train_test_split(X, Y, test_size=0.20)\n\"\"\"","metadata":{"execution":{"iopub.status.busy":"2023-07-29T02:09:41.562557Z","iopub.execute_input":"2023-07-29T02:09:41.563332Z","iopub.status.idle":"2023-07-29T02:09:41.570465Z","shell.execute_reply.started":"2023-07-29T02:09:41.563255Z","shell.execute_reply":"2023-07-29T02:09:41.569342Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"\"\"\"\ndel X #メモリ削減\n\"\"\"","metadata":{"execution":{"iopub.status.busy":"2023-07-29T02:09:41.572221Z","iopub.execute_input":"2023-07-29T02:09:41.572985Z","iopub.status.idle":"2023-07-29T02:09:41.582152Z","shell.execute_reply.started":"2023-07-29T02:09:41.572948Z","shell.execute_reply":"2023-07-29T02:09:41.580930Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# ジェネレータの作成","metadata":{}},{"cell_type":"code","source":"image_size = 224#画像サイズ一辺\nImage_size = (image_size,image_size)#縦,横(224,224)\nbatch_size = 128#まとまり\nepochs = 10#iteration","metadata":{"execution":{"iopub.status.busy":"2023-07-29T02:09:41.583995Z","iopub.execute_input":"2023-07-29T02:09:41.584430Z","iopub.status.idle":"2023-07-29T02:09:41.591214Z","shell.execute_reply.started":"2023-07-29T02:09:41.584395Z","shell.execute_reply":"2023-07-29T02:09:41.590023Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"from tensorflow.keras.preprocessing.image import ImageDataGenerator\n\n# 画像データの拡張と前処理の設定\ntrain_datagen = ImageDataGenerator(\n    rescale=1.0/255,#0~1に正規化\n    rotation_range=45,#回転,-45~45\n    shear_range = 0.1,#シアー強度\n    zoom_range = 0.2 , #ズーム\n    horizontal_flip = True , #左右反転\n    width_shift_range = 0.1 , #水平シフト\n    height_shift_range = 0.1 #垂直シフト\n)\n","metadata":{"execution":{"iopub.status.busy":"2023-07-29T02:09:41.593306Z","iopub.execute_input":"2023-07-29T02:09:41.593669Z","iopub.status.idle":"2023-07-29T02:09:41.602791Z","shell.execute_reply.started":"2023-07-29T02:09:41.593635Z","shell.execute_reply":"2023-07-29T02:09:41.601355Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"# ジェネレータの作成\ntrain_generator = train_datagen.flow_from_dataframe(\n    train_df, #dataframe\n    train_path, #trainデータへのパス('/kaggle/working/train/')\n    x_col='filename',#特徴量\n    y_col='category',#category(0,1)\n    target_size=Image_size,#size\n    class_mode='categorical',#返すラベルの配列の形を決定する\n    batch_size=batch_size\n)  ","metadata":{"execution":{"iopub.status.busy":"2023-07-29T02:09:41.604690Z","iopub.execute_input":"2023-07-29T02:09:41.605416Z","iopub.status.idle":"2023-07-29T02:09:41.951236Z","shell.execute_reply.started":"2023-07-29T02:09:41.605379Z","shell.execute_reply":"2023-07-29T02:09:41.950201Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"validation_datagen = ImageDataGenerator(rescale = 1./255)\nval_generator = validation_datagen.flow_from_dataframe(\n    val_df, \n    train_path, \n    x_col='filename',\n    y_col='category',\n    target_size=Image_size,\n    class_mode='categorical',\n    batch_size=batch_size\n)  ","metadata":{"execution":{"iopub.status.busy":"2023-07-29T02:09:41.954261Z","iopub.execute_input":"2023-07-29T02:09:41.954912Z","iopub.status.idle":"2023-07-29T02:09:42.027049Z","shell.execute_reply.started":"2023-07-29T02:09:41.954860Z","shell.execute_reply":"2023-07-29T02:09:42.025982Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# モデルの作成","metadata":{}},{"cell_type":"code","source":"\n#CNNモデル（ResNet50）のライブラリをインポート\nfrom tensorflow.keras.applications.resnet50 import ResNet50\nfrom tensorflow.keras.models import Sequential, Model\nfrom tensorflow.keras.layers import Input, Flatten, Dense, Conv2D , MaxPooling2D , Dropout, Activation , BatchNormalization\n\n#input画像の定義\ninput_tensor = tf.keras.Input(shape=(image_size, image_size, 3))\n#ResNet50モデルの呼出し。ここでweights=\"imagenet\"とすることで学習済の重みを使うことができる\n#include_top=Falseとすることで出力層だけを今回の学習に合わせた形で書き換えます\nResNet50 = tf.keras.applications.ResNet50(include_top=False, weights=\"imagenet\", \n                                          input_tensor=input_tensor,classes=2,)\n#出力層の書換え。今回は2種類の画像分類のモデルを作成。\ntop_model = Sequential()\ntop_model.add(Flatten(input_shape = ResNet50.output_shape[1:]))\ntop_model.add(Dense(2, activation = 'sigmoid'))\nmodel = Model(inputs=ResNet50.inputs, outputs=top_model(ResNet50.outputs))","metadata":{"execution":{"iopub.status.busy":"2023-07-29T02:09:42.028631Z","iopub.execute_input":"2023-07-29T02:09:42.028995Z","iopub.status.idle":"2023-07-29T02:09:49.307089Z","shell.execute_reply.started":"2023-07-29T02:09:42.028960Z","shell.execute_reply":"2023-07-29T02:09:49.306070Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"from tensorflow.keras.optimizers import Adam \nadam = Adam(learning_rate=0.0001)\nmodel.compile(optimizer= adam, loss='categorical_crossentropy', metrics=['accuracy'])","metadata":{"execution":{"iopub.status.busy":"2023-07-29T02:09:49.308704Z","iopub.execute_input":"2023-07-29T02:09:49.309068Z","iopub.status.idle":"2023-07-29T02:09:49.334018Z","shell.execute_reply.started":"2023-07-29T02:09:49.309032Z","shell.execute_reply":"2023-07-29T02:09:49.333123Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"model.summary()","metadata":{"execution":{"iopub.status.busy":"2023-07-29T02:09:49.335840Z","iopub.execute_input":"2023-07-29T02:09:49.336238Z","iopub.status.idle":"2023-07-29T02:09:49.745254Z","shell.execute_reply.started":"2023-07-29T02:09:49.336205Z","shell.execute_reply":"2023-07-29T02:09:49.744483Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# 学習","metadata":{}},{"cell_type":"code","source":"from keras.callbacks import EarlyStopping, ReduceLROnPlateau\nearlystop = EarlyStopping(patience = 10)\nlearning_rate_reduction = ReduceLROnPlateau(monitor='val_acc', \n                                            patience=2, \n                                            verbose=1, \n                                            factor=0.5, \n                                            min_lr=0.00001)\ncallbacks = [earlystop , learning_rate_reduction]","metadata":{"execution":{"iopub.status.busy":"2023-07-29T02:09:49.746573Z","iopub.execute_input":"2023-07-29T02:09:49.746949Z","iopub.status.idle":"2023-07-29T02:09:49.758884Z","shell.execute_reply.started":"2023-07-29T02:09:49.746912Z","shell.execute_reply":"2023-07-29T02:09:49.758042Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"# モデルの学習\nhistory = model.fit_generator(\n    train_generator , \n    epochs = epochs , \n    validation_data=val_generator,\n    validation_steps=val_df.shape[0]//batch_size,\n    steps_per_epoch=train_df.shape[0]//batch_size,\n    callbacks=callbacks\n)","metadata":{"execution":{"iopub.status.busy":"2023-07-29T02:09:49.759889Z","iopub.execute_input":"2023-07-29T02:09:49.760223Z","iopub.status.idle":"2023-07-29T03:11:51.872206Z","shell.execute_reply.started":"2023-07-29T02:09:49.760188Z","shell.execute_reply":"2023-07-29T03:11:51.871246Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# 保存","metadata":{}},{"cell_type":"code","source":"model.save_weights('model.1')","metadata":{"execution":{"iopub.status.busy":"2023-07-29T03:11:51.875891Z","iopub.execute_input":"2023-07-29T03:11:51.876309Z","iopub.status.idle":"2023-07-29T03:11:53.526580Z","shell.execute_reply.started":"2023-07-29T03:11:51.876278Z","shell.execute_reply":"2023-07-29T03:11:53.525553Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# モデル→予測","metadata":{}},{"cell_type":"code","source":"test_filenames = os.listdir(test1_path)\ntest = pd.DataFrame({'filename' : test_filenames})\nnb_samples = test.shape[0]","metadata":{"execution":{"iopub.status.busy":"2023-07-29T03:11:53.528071Z","iopub.execute_input":"2023-07-29T03:11:53.528472Z","iopub.status.idle":"2023-07-29T03:11:53.544284Z","shell.execute_reply.started":"2023-07-29T03:11:53.528437Z","shell.execute_reply":"2023-07-29T03:11:53.543200Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"test_gen = ImageDataGenerator(rescale=1./255)\ntest_generator = test_gen.flow_from_dataframe(\n    test , \n    test1_path ,\n    x_col='filename',\n    y_col=None,\n    class_mode=None,\n    target_size=(image_size,image_size),\n    batch_size=batch_size,\n    shuffle=False\n    )","metadata":{"execution":{"iopub.status.busy":"2023-07-29T03:11:53.547626Z","iopub.execute_input":"2023-07-29T03:11:53.547906Z","iopub.status.idle":"2023-07-29T03:11:53.682550Z","shell.execute_reply.started":"2023-07-29T03:11:53.547880Z","shell.execute_reply":"2023-07-29T03:11:53.681660Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"predict = model.predict_generator(test_generator , steps = np.ceil(nb_samples/batch_size))\ntest['category'] = np.argmax(predict  , axis= -1)\ntest.head()","metadata":{"execution":{"iopub.status.busy":"2023-07-29T03:11:53.687758Z","iopub.execute_input":"2023-07-29T03:11:53.688047Z","iopub.status.idle":"2023-07-29T03:12:36.831205Z","shell.execute_reply.started":"2023-07-29T03:11:53.688021Z","shell.execute_reply":"2023-07-29T03:12:36.830151Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"submission_df = test.copy()\nsubmission_df['id'] = submission_df['filename'].str.split('.').str[0]\nsubmission_df['label'] = submission_df['category']\nsubmission_df.head()","metadata":{"execution":{"iopub.status.busy":"2023-07-29T03:12:36.832926Z","iopub.execute_input":"2023-07-29T03:12:36.833826Z","iopub.status.idle":"2023-07-29T03:12:36.872632Z","shell.execute_reply.started":"2023-07-29T03:12:36.833784Z","shell.execute_reply":"2023-07-29T03:12:36.871590Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"submission_df.drop(['filename' , 'category'] , axis = 1 , inplace = True)\nsubmission_df.to_csv('submission.csv', index=False)","metadata":{"execution":{"iopub.status.busy":"2023-07-29T03:12:36.874382Z","iopub.execute_input":"2023-07-29T03:12:36.874760Z","iopub.status.idle":"2023-07-29T03:12:36.913466Z","shell.execute_reply.started":"2023-07-29T03:12:36.874724Z","shell.execute_reply":"2023-07-29T03:12:36.912576Z"},"trusted":true},"execution_count":null,"outputs":[]}]}