{"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\npd.options.display.max_colwidth = 200\n#!pip install --pre pycaret\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":"2022-12-19T18:51:19.647876Z","iopub.execute_input":"2022-12-19T18:51:19.648265Z","iopub.status.idle":"2022-12-19T18:51:19.685208Z","shell.execute_reply.started":"2022-12-19T18:51:19.648171Z","shell.execute_reply":"2022-12-19T18:51:19.684378Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_pp= pd.read_json('/kaggle/input/convolve-epoch1/train.json',typ='list'\n)\ntrain_data= train_pp.to_frame()\ntest_data= pd.read_csv('/kaggle/input/convolve-epoch1/test.csv')\nsubme_data= pd.read_csv('/kaggle/input/convolve-epoch1/sample_submission.csv')\ntrain_data = train_data.reset_index()\ntrain_data = train_data.rename(columns={0: 'status','index':'string_mom'})","metadata":{"execution":{"iopub.status.busy":"2022-12-19T18:51:19.689268Z","iopub.execute_input":"2022-12-19T18:51:19.689881Z","iopub.status.idle":"2022-12-19T18:51:34.029640Z","shell.execute_reply.started":"2022-12-19T18:51:19.689846Z","shell.execute_reply":"2022-12-19T18:51:34.028613Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"test_data= pd.read_csv('/kaggle/input/convolve-epoch1/test.csv')","metadata":{"execution":{"iopub.status.busy":"2022-12-19T20:05:08.142048Z","iopub.execute_input":"2022-12-19T20:05:08.143027Z","iopub.status.idle":"2022-12-19T20:05:08.974174Z","shell.execute_reply.started":"2022-12-19T20:05:08.142987Z","shell.execute_reply":"2022-12-19T20:05:08.973133Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"bgpp=train_data['string_mom'].convert_dtypes(convert_string=True)\nbgpp=bgpp.str.split(n=5,expand=True)\n","metadata":{"execution":{"iopub.status.busy":"2022-12-19T18:51:34.031376Z","iopub.execute_input":"2022-12-19T18:51:34.031770Z","iopub.status.idle":"2022-12-19T18:51:47.353479Z","shell.execute_reply.started":"2022-12-19T18:51:34.031733Z","shell.execute_reply":"2022-12-19T18:51:47.352478Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"impp=bgpp.merge(train_data,left_index=True,right_index=True)","metadata":{"execution":{"iopub.status.busy":"2022-12-19T18:51:47.356194Z","iopub.execute_input":"2022-12-19T18:51:47.356844Z","iopub.status.idle":"2022-12-19T18:51:49.201932Z","shell.execute_reply.started":"2022-12-19T18:51:47.356805Z","shell.execute_reply":"2022-12-19T18:51:49.200927Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"impp=impp.drop(columns=[\"string_mom\"])\n","metadata":{"execution":{"iopub.status.busy":"2022-12-19T18:51:49.203331Z","iopub.execute_input":"2022-12-19T18:51:49.203791Z","iopub.status.idle":"2022-12-19T18:51:49.349886Z","shell.execute_reply.started":"2022-12-19T18:51:49.203754Z","shell.execute_reply":"2022-12-19T18:51:49.347132Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"impp.status=impp.status.astype('category')","metadata":{"execution":{"iopub.status.busy":"2022-12-19T18:51:49.352684Z","iopub.execute_input":"2022-12-19T18:51:49.353375Z","iopub.status.idle":"2022-12-19T18:51:49.743414Z","shell.execute_reply.started":"2022-12-19T18:51:49.353313Z","shell.execute_reply":"2022-12-19T18:51:49.742426Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"p=impp[3].str.split(pat='-',expand=True)","metadata":{"execution":{"iopub.status.busy":"2022-12-19T18:51:49.745123Z","iopub.execute_input":"2022-12-19T18:51:49.745548Z","iopub.status.idle":"2022-12-19T18:52:02.883824Z","shell.execute_reply.started":"2022-12-19T18:51:49.745507Z","shell.execute_reply":"2022-12-19T18:52:02.882819Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"p=p.drop(columns=[0,1,2])","metadata":{"execution":{"iopub.status.busy":"2022-12-19T18:52:02.885270Z","iopub.execute_input":"2022-12-19T18:52:02.886310Z","iopub.status.idle":"2022-12-19T18:52:02.892383Z","shell.execute_reply.started":"2022-12-19T18:52:02.886265Z","shell.execute_reply":"2022-12-19T18:52:02.891384Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"impp[3]=p","metadata":{"execution":{"iopub.status.busy":"2022-12-19T18:52:02.894085Z","iopub.execute_input":"2022-12-19T18:52:02.894733Z","iopub.status.idle":"2022-12-19T18:52:02.973575Z","shell.execute_reply.started":"2022-12-19T18:52:02.894669Z","shell.execute_reply":"2022-12-19T18:52:02.972655Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"impp=impp.drop(columns=[2])","metadata":{"execution":{"iopub.status.busy":"2022-12-19T18:52:02.977799Z","iopub.execute_input":"2022-12-19T18:52:02.978069Z","iopub.status.idle":"2022-12-19T18:52:03.212400Z","shell.execute_reply.started":"2022-12-19T18:52:02.978044Z","shell.execute_reply":"2022-12-19T18:52:03.211415Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"data=impp.drop([0,1,3,4],axis=1)\ndata","metadata":{"execution":{"iopub.status.busy":"2022-12-19T18:52:03.213857Z","iopub.execute_input":"2022-12-19T18:52:03.214320Z","iopub.status.idle":"2022-12-19T18:52:03.236292Z","shell.execute_reply.started":"2022-12-19T18:52:03.214281Z","shell.execute_reply":"2022-12-19T18:52:03.235377Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"\nlst=[impp,bgpp,train_data,train_pp]\ndel lst","metadata":{"execution":{"iopub.status.busy":"2022-12-19T18:52:03.237477Z","iopub.execute_input":"2022-12-19T18:52:03.237730Z","iopub.status.idle":"2022-12-19T18:52:03.242250Z","shell.execute_reply.started":"2022-12-19T18:52:03.237707Z","shell.execute_reply":"2022-12-19T18:52:03.241346Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"from sklearn.preprocessing import OneHotEncoder","metadata":{"execution":{"iopub.status.busy":"2022-12-19T18:52:03.243641Z","iopub.execute_input":"2022-12-19T18:52:03.244225Z","iopub.status.idle":"2022-12-19T18:52:03.581253Z","shell.execute_reply.started":"2022-12-19T18:52:03.244191Z","shell.execute_reply":"2022-12-19T18:52:03.580330Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"data['status']\ndata['status']=data['status'].cat.codes\nenc=OneHotEncoder()\nenc_data=pd.DataFrame(enc.fit_transform(data[['status']]).toarray())\nNew_df=data.join(enc_data)\ndata= New_df.drop([0,1],axis=1)\ndata","metadata":{"execution":{"iopub.status.busy":"2022-12-19T18:52:03.582724Z","iopub.execute_input":"2022-12-19T18:52:03.583059Z","iopub.status.idle":"2022-12-19T18:52:04.042058Z","shell.execute_reply.started":"2022-12-19T18:52:03.583023Z","shell.execute_reply":"2022-12-19T18:52:04.041114Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"data=data.sample(frac=.5, replace=False, weights=None, random_state=None, axis=0, ignore_index=True)","metadata":{"execution":{"iopub.status.busy":"2022-12-19T18:52:04.043572Z","iopub.execute_input":"2022-12-19T18:52:04.044169Z","iopub.status.idle":"2022-12-19T18:52:04.602639Z","shell.execute_reply.started":"2022-12-19T18:52:04.044115Z","shell.execute_reply":"2022-12-19T18:52:04.601609Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"data","metadata":{"execution":{"iopub.status.busy":"2022-12-19T18:52:04.603936Z","iopub.execute_input":"2022-12-19T18:52:04.604655Z","iopub.status.idle":"2022-12-19T18:52:04.618062Z","shell.execute_reply.started":"2022-12-19T18:52:04.604617Z","shell.execute_reply":"2022-12-19T18:52:04.617131Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"data=data.rename(columns={5: 'text','status':'labels'})\n","metadata":{"execution":{"iopub.status.busy":"2022-12-19T18:52:04.619649Z","iopub.execute_input":"2022-12-19T18:52:04.620043Z","iopub.status.idle":"2022-12-19T18:52:04.885742Z","shell.execute_reply.started":"2022-12-19T18:52:04.620010Z","shell.execute_reply":"2022-12-19T18:52:04.884672Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"data['labels'].value_counts()","metadata":{"execution":{"iopub.status.busy":"2022-12-19T18:52:04.887242Z","iopub.execute_input":"2022-12-19T18:52:04.887646Z","iopub.status.idle":"2022-12-19T18:52:04.910693Z","shell.execute_reply.started":"2022-12-19T18:52:04.887606Z","shell.execute_reply":"2022-12-19T18:52:04.909412Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":" \ntrain_df = data[:int(0.8 * len(data))]\ntest_df = data[int(0.8 * len(data)):]","metadata":{"execution":{"iopub.status.busy":"2022-12-19T18:52:04.912239Z","iopub.execute_input":"2022-12-19T18:52:04.912827Z","iopub.status.idle":"2022-12-19T18:52:05.108541Z","shell.execute_reply.started":"2022-12-19T18:52:04.912764Z","shell.execute_reply":"2022-12-19T18:52:05.107450Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import tensorflow as tf\nfrom tensorflow import keras","metadata":{"execution":{"iopub.status.busy":"2022-12-19T18:52:05.120642Z","iopub.execute_input":"2022-12-19T18:52:05.120991Z","iopub.status.idle":"2022-12-19T18:52:09.171277Z","shell.execute_reply.started":"2022-12-19T18:52:05.120955Z","shell.execute_reply":"2022-12-19T18:52:09.170208Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"tokenizer = keras.preprocessing.text.Tokenizer(num_words=5000)\ntokenizer.fit_on_texts(train_df['text'])\n","metadata":{"execution":{"iopub.status.busy":"2022-12-19T18:52:09.172766Z","iopub.execute_input":"2022-12-19T18:52:09.173411Z","iopub.status.idle":"2022-12-19T18:52:36.766050Z","shell.execute_reply.started":"2022-12-19T18:52:09.173371Z","shell.execute_reply":"2022-12-19T18:52:36.765042Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"x_train = tokenizer.texts_to_sequences(train_df['text'])\nx_test = tokenizer.texts_to_sequences(test_df['text'])\n","metadata":{"execution":{"iopub.status.busy":"2022-12-19T18:52:36.767516Z","iopub.execute_input":"2022-12-19T18:52:36.768340Z","iopub.status.idle":"2022-12-19T18:53:08.780524Z","shell.execute_reply.started":"2022-12-19T18:52:36.768297Z","shell.execute_reply":"2022-12-19T18:53:08.779547Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"max_length = max([len(s.split()) for s in data['text']])\nx_train = keras.preprocessing.sequence.pad_sequences(x_train, maxlen=max_length)\nx_test = keras.preprocessing.sequence.pad_sequences(x_test, maxlen=max_length)","metadata":{"execution":{"iopub.status.busy":"2022-12-19T18:53:08.782205Z","iopub.execute_input":"2022-12-19T18:53:08.782612Z","iopub.status.idle":"2022-12-19T18:53:17.769310Z","shell.execute_reply.started":"2022-12-19T18:53:08.782572Z","shell.execute_reply":"2022-12-19T18:53:17.768319Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"y_train = keras.utils.to_categorical(train_df['labels'], num_classes=2)\ny_test = keras.utils.to_categorical(test_df['labels'], num_classes=2)","metadata":{"execution":{"iopub.status.busy":"2022-12-19T18:53:17.770848Z","iopub.execute_input":"2022-12-19T18:53:17.771219Z","iopub.status.idle":"2022-12-19T18:53:17.804145Z","shell.execute_reply.started":"2022-12-19T18:53:17.771180Z","shell.execute_reply":"2022-12-19T18:53:17.803206Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"model = keras.Sequential()\nmodel.add(keras.layers.Embedding(5000, 64, input_length=max_length))\nmodel.add(keras.layers.LSTM(64))\nmodel.add(keras.layers.Dense(2, activation='softmax'))","metadata":{"execution":{"iopub.status.busy":"2022-12-19T18:53:17.805700Z","iopub.execute_input":"2022-12-19T18:53:17.806074Z","iopub.status.idle":"2022-12-19T18:53:21.024220Z","shell.execute_reply.started":"2022-12-19T18:53:17.806038Z","shell.execute_reply":"2022-12-19T18:53:21.023272Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"model.compile(optimizer='adam',\n              loss='categorical_crossentropy',\n              metrics=['accuracy'])","metadata":{"execution":{"iopub.status.busy":"2022-12-19T18:53:21.025676Z","iopub.execute_input":"2022-12-19T18:53:21.026010Z","iopub.status.idle":"2022-12-19T18:53:21.040981Z","shell.execute_reply.started":"2022-12-19T18:53:21.025976Z","shell.execute_reply":"2022-12-19T18:53:21.040142Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"history = model.fit(x_train, y_train,\n                    epochs=10,\n                    validation_data=(x_test, y_test))","metadata":{"execution":{"iopub.status.busy":"2022-12-19T18:53:21.046179Z","iopub.execute_input":"2022-12-19T18:53:21.046927Z","iopub.status.idle":"2022-12-19T19:56:46.335322Z","shell.execute_reply.started":"2022-12-19T18:53:21.046889Z","shell.execute_reply":"2022-12-19T19:56:46.334333Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"test_loss, test_acc = model.evaluate(x_test, y_test)\nprint('Test Loss: {}'.format(test_loss))\nprint('Test Accuracy: {}'.format(test_acc))","metadata":{"execution":{"iopub.status.busy":"2022-12-19T19:56:46.337087Z","iopub.execute_input":"2022-12-19T19:56:46.337948Z","iopub.status.idle":"2022-12-19T19:57:35.902063Z","shell.execute_reply.started":"2022-12-19T19:56:46.337908Z","shell.execute_reply":"2022-12-19T19:57:35.901206Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"test_data.info()","metadata":{"execution":{"iopub.status.busy":"2022-12-19T20:02:38.010628Z","iopub.execute_input":"2022-12-19T20:02:38.010992Z","iopub.status.idle":"2022-12-19T20:02:38.067729Z","shell.execute_reply.started":"2022-12-19T20:02:38.010960Z","shell.execute_reply":"2022-12-19T20:02:38.066517Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"gpp=test_data[' Log'].convert_dtypes(convert_string=True)\ngpp=gpp.str.split(n=5,expand=True)","metadata":{"execution":{"iopub.status.busy":"2022-12-19T20:05:27.070846Z","iopub.execute_input":"2022-12-19T20:05:27.071233Z","iopub.status.idle":"2022-12-19T20:05:29.128416Z","shell.execute_reply.started":"2022-12-19T20:05:27.071198Z","shell.execute_reply":"2022-12-19T20:05:29.127417Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"impp=gpp.merge(test_data,left_index=True,right_index=True)","metadata":{"execution":{"iopub.status.busy":"2022-12-19T20:06:48.870986Z","iopub.execute_input":"2022-12-19T20:06:48.872007Z","iopub.status.idle":"2022-12-19T20:06:49.323609Z","shell.execute_reply.started":"2022-12-19T20:06:48.871969Z","shell.execute_reply":"2022-12-19T20:06:49.322573Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"impp","metadata":{"execution":{"iopub.status.busy":"2022-12-19T20:20:17.228060Z","iopub.execute_input":"2022-12-19T20:20:17.228784Z","iopub.status.idle":"2022-12-19T20:20:17.241498Z","shell.execute_reply.started":"2022-12-19T20:20:17.228747Z","shell.execute_reply":"2022-12-19T20:20:17.240569Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"impp=impp.drop(columns=[\" Log\",0,1,2,3,4])","metadata":{"execution":{"iopub.status.busy":"2022-12-19T20:10:55.472491Z","iopub.execute_input":"2022-12-19T20:10:55.473032Z","iopub.status.idle":"2022-12-19T20:10:55.486987Z","shell.execute_reply.started":"2022-12-19T20:10:55.472994Z","shell.execute_reply":"2022-12-19T20:10:55.485518Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"impp=impp.rename(columns={5: 'text'})","metadata":{"execution":{"iopub.status.busy":"2022-12-19T20:12:56.725527Z","iopub.execute_input":"2022-12-19T20:12:56.725889Z","iopub.status.idle":"2022-12-19T20:12:56.753311Z","shell.execute_reply.started":"2022-12-19T20:12:56.725857Z","shell.execute_reply":"2022-12-19T20:12:56.752310Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"lst=[x_train,x_test,y_test,y_train,data,train_df,test_df]\ndel lst","metadata":{"execution":{"iopub.status.busy":"2022-12-19T20:26:32.084745Z","iopub.execute_input":"2022-12-19T20:26:32.085212Z","iopub.status.idle":"2022-12-19T20:26:32.091050Z","shell.execute_reply.started":"2022-12-19T20:26:32.085146Z","shell.execute_reply":"2022-12-19T20:26:32.089795Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"\nx_pred = tokenizer.texts_to_sequences(impp['text'])\nx_pred = keras.preprocessing.sequence.pad_sequences(x_pred, maxlen=max_length)\n\n# Use the model to make predictions\npredictions = model.predict(x_pred)\n\n# Convert the predictions to a list of labels\n#labels = [np.argmax(pred) for pred in predictions]","metadata":{"execution":{"iopub.status.busy":"2022-12-19T20:26:43.882728Z","iopub.execute_input":"2022-12-19T20:26:43.883202Z","iopub.status.idle":"2022-12-19T20:27:35.617622Z","shell.execute_reply.started":"2022-12-19T20:26:43.883142Z","shell.execute_reply":"2022-12-19T20:27:35.616634Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"labels = [np.argmax(pred) for pred in predictions]","metadata":{"execution":{"iopub.status.busy":"2022-12-19T20:30:40.757971Z","iopub.execute_input":"2022-12-19T20:30:40.758339Z","iopub.status.idle":"2022-12-19T20:30:41.695687Z","shell.execute_reply.started":"2022-12-19T20:30:40.758309Z","shell.execute_reply":"2022-12-19T20:30:41.694625Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"def convert_values(lst):\n    result = []\n    for value in lst:\n        if value == 1:\n            result.append('normal')\n        elif value == 0:\n            result.append('abnormal')\n    return result","metadata":{"execution":{"iopub.status.busy":"2022-12-19T20:36:53.725876Z","iopub.execute_input":"2022-12-19T20:36:53.726258Z","iopub.status.idle":"2022-12-19T20:36:53.731723Z","shell.execute_reply.started":"2022-12-19T20:36:53.726225Z","shell.execute_reply":"2022-12-19T20:36:53.730759Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"label= convert_values(labels)","metadata":{"execution":{"iopub.status.busy":"2022-12-19T20:37:45.890514Z","iopub.execute_input":"2022-12-19T20:37:45.890880Z","iopub.status.idle":"2022-12-19T20:37:46.051400Z","shell.execute_reply.started":"2022-12-19T20:37:45.890849Z","shell.execute_reply":"2022-12-19T20:37:46.050356Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"output = pd.DataFrame({'ID':impp.ID, ' Label': label})","metadata":{"execution":{"iopub.status.busy":"2022-12-19T20:48:09.939106Z","iopub.execute_input":"2022-12-19T20:48:09.939530Z","iopub.status.idle":"2022-12-19T20:48:09.966265Z","shell.execute_reply.started":"2022-12-19T20:48:09.939495Z","shell.execute_reply":"2022-12-19T20:48:09.965380Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"output","metadata":{"execution":{"iopub.status.busy":"2022-12-19T20:48:25.528730Z","iopub.execute_input":"2022-12-19T20:48:25.529092Z","iopub.status.idle":"2022-12-19T20:48:25.544996Z","shell.execute_reply.started":"2022-12-19T20:48:25.529059Z","shell.execute_reply":"2022-12-19T20:48:25.543866Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"output.to_csv('submission.csv', index=False)","metadata":{"execution":{"iopub.status.busy":"2022-12-19T20:48:26.558817Z","iopub.execute_input":"2022-12-19T20:48:26.559187Z","iopub.status.idle":"2022-12-19T20:48:27.105294Z","shell.execute_reply.started":"2022-12-19T20:48:26.559136Z","shell.execute_reply":"2022-12-19T20:48:27.104044Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{"execution":{"iopub.status.busy":"2022-12-19T20:43:30.075641Z","iopub.execute_input":"2022-12-19T20:43:30.076048Z","iopub.status.idle":"2022-12-19T20:43:30.098098Z","shell.execute_reply.started":"2022-12-19T20:43:30.076012Z","shell.execute_reply":"2022-12-19T20:43:30.096640Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}