{"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":"import numpy as np\nimport pandas as pd\nimport seaborn as sns\nimport matplotlib.pyplot as plt\n%matplotlib inline","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:14:48.814570Z","iopub.execute_input":"2022-07-31T11:14:48.815567Z","iopub.status.idle":"2022-07-31T11:14:49.370063Z","shell.execute_reply.started":"2022-07-31T11:14:48.815440Z","shell.execute_reply":"2022-07-31T11:14:49.368699Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train = pd.read_csv('../input/digit-recognizer/train.csv')","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:14:49.372136Z","iopub.execute_input":"2022-07-31T11:14:49.372573Z","iopub.status.idle":"2022-07-31T11:14:52.807822Z","shell.execute_reply.started":"2022-07-31T11:14:49.372523Z","shell.execute_reply":"2022-07-31T11:14:52.806278Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"test = pd.read_csv('../input/digit-recognizer/test.csv')","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:14:52.809919Z","iopub.execute_input":"2022-07-31T11:14:52.810427Z","iopub.status.idle":"2022-07-31T11:14:55.074716Z","shell.execute_reply.started":"2022-07-31T11:14:52.810383Z","shell.execute_reply":"2022-07-31T11:14:55.073273Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train.head()","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:14:55.082852Z","iopub.execute_input":"2022-07-31T11:14:55.083927Z","iopub.status.idle":"2022-07-31T11:14:55.121501Z","shell.execute_reply.started":"2022-07-31T11:14:55.083878Z","shell.execute_reply":"2022-07-31T11:14:55.120206Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train.info()","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:14:55.125989Z","iopub.execute_input":"2022-07-31T11:14:55.127019Z","iopub.status.idle":"2022-07-31T11:14:55.226970Z","shell.execute_reply.started":"2022-07-31T11:14:55.126951Z","shell.execute_reply":"2022-07-31T11:14:55.224805Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train.isnull().sum()","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:14:55.228880Z","iopub.execute_input":"2022-07-31T11:14:55.229764Z","iopub.status.idle":"2022-07-31T11:14:55.316620Z","shell.execute_reply.started":"2022-07-31T11:14:55.229715Z","shell.execute_reply":"2022-07-31T11:14:55.310512Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"sum(train.isnull().sum())","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:14:55.319392Z","iopub.execute_input":"2022-07-31T11:14:55.320279Z","iopub.status.idle":"2022-07-31T11:14:55.376901Z","shell.execute_reply.started":"2022-07-31T11:14:55.320233Z","shell.execute_reply":"2022-07-31T11:14:55.375421Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"y_train = train['label'].copy()","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:14:55.378445Z","iopub.execute_input":"2022-07-31T11:14:55.378857Z","iopub.status.idle":"2022-07-31T11:14:55.385880Z","shell.execute_reply.started":"2022-07-31T11:14:55.378824Z","shell.execute_reply":"2022-07-31T11:14:55.384391Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"X_train = train.drop('label',axis=1)","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:14:55.387916Z","iopub.execute_input":"2022-07-31T11:14:55.388825Z","iopub.status.idle":"2022-07-31T11:14:55.499464Z","shell.execute_reply.started":"2022-07-31T11:14:55.388747Z","shell.execute_reply":"2022-07-31T11:14:55.498132Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"y_train.value_counts()","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:14:55.501382Z","iopub.execute_input":"2022-07-31T11:14:55.501864Z","iopub.status.idle":"2022-07-31T11:14:55.513487Z","shell.execute_reply.started":"2022-07-31T11:14:55.501803Z","shell.execute_reply":"2022-07-31T11:14:55.512023Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"y_train = pd.get_dummies(y_train,prefix='Num')","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:14:55.515762Z","iopub.execute_input":"2022-07-31T11:14:55.516651Z","iopub.status.idle":"2022-07-31T11:14:55.530488Z","shell.execute_reply.started":"2022-07-31T11:14:55.516592Z","shell.execute_reply":"2022-07-31T11:14:55.529009Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"y_train.head()","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:14:55.532574Z","iopub.execute_input":"2022-07-31T11:14:55.533184Z","iopub.status.idle":"2022-07-31T11:14:55.552262Z","shell.execute_reply.started":"2022-07-31T11:14:55.533142Z","shell.execute_reply":"2022-07-31T11:14:55.551037Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"X_train.describe()","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:14:55.559819Z","iopub.execute_input":"2022-07-31T11:14:55.560164Z","iopub.status.idle":"2022-07-31T11:14:58.706614Z","shell.execute_reply.started":"2022-07-31T11:14:55.560132Z","shell.execute_reply":"2022-07-31T11:14:58.705007Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#from sklearn.preprocessing import Normalizer","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:14:58.708950Z","iopub.execute_input":"2022-07-31T11:14:58.709763Z","iopub.status.idle":"2022-07-31T11:14:58.716838Z","shell.execute_reply.started":"2022-07-31T11:14:58.709700Z","shell.execute_reply":"2022-07-31T11:14:58.715400Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"X_train = X_train/255","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:14:58.719169Z","iopub.execute_input":"2022-07-31T11:14:58.720232Z","iopub.status.idle":"2022-07-31T11:14:58.852054Z","shell.execute_reply.started":"2022-07-31T11:14:58.720186Z","shell.execute_reply":"2022-07-31T11:14:58.850730Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"X_train.head()","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:14:58.853653Z","iopub.execute_input":"2022-07-31T11:14:58.854138Z","iopub.status.idle":"2022-07-31T11:14:58.896707Z","shell.execute_reply.started":"2022-07-31T11:14:58.854094Z","shell.execute_reply":"2022-07-31T11:14:58.895249Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"X_train.describe()","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:14:58.898996Z","iopub.execute_input":"2022-07-31T11:14:58.899461Z","iopub.status.idle":"2022-07-31T11:15:02.071440Z","shell.execute_reply.started":"2022-07-31T11:14:58.899417Z","shell.execute_reply":"2022-07-31T11:15:02.070014Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"X_train = X_train.values.reshape(-1,28,28,1)","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:15:02.073492Z","iopub.execute_input":"2022-07-31T11:15:02.074006Z","iopub.status.idle":"2022-07-31T11:15:02.080761Z","shell.execute_reply.started":"2022-07-31T11:15:02.073935Z","shell.execute_reply":"2022-07-31T11:15:02.079044Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"X_train","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:15:02.083034Z","iopub.execute_input":"2022-07-31T11:15:02.083953Z","iopub.status.idle":"2022-07-31T11:15:02.101572Z","shell.execute_reply.started":"2022-07-31T11:15:02.083909Z","shell.execute_reply":"2022-07-31T11:15:02.099885Z"},"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":"test.info()","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:15:02.103828Z","iopub.execute_input":"2022-07-31T11:15:02.104890Z","iopub.status.idle":"2022-07-31T11:15:02.172387Z","shell.execute_reply.started":"2022-07-31T11:15:02.104844Z","shell.execute_reply":"2022-07-31T11:15:02.171030Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"test.isnull().sum()","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:15:02.174009Z","iopub.execute_input":"2022-07-31T11:15:02.174554Z","iopub.status.idle":"2022-07-31T11:15:02.221332Z","shell.execute_reply.started":"2022-07-31T11:15:02.174508Z","shell.execute_reply":"2022-07-31T11:15:02.220016Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"sum(test.isnull().sum())","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:15:02.223018Z","iopub.execute_input":"2022-07-31T11:15:02.223805Z","iopub.status.idle":"2022-07-31T11:15:02.265371Z","shell.execute_reply.started":"2022-07-31T11:15:02.223742Z","shell.execute_reply":"2022-07-31T11:15:02.263774Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"test = test/255","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:15:02.267165Z","iopub.execute_input":"2022-07-31T11:15:02.268169Z","iopub.status.idle":"2022-07-31T11:15:02.359392Z","shell.execute_reply.started":"2022-07-31T11:15:02.268124Z","shell.execute_reply":"2022-07-31T11:15:02.358153Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"test.head()","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:15:02.361381Z","iopub.execute_input":"2022-07-31T11:15:02.361848Z","iopub.status.idle":"2022-07-31T11:15:02.404333Z","shell.execute_reply.started":"2022-07-31T11:15:02.361806Z","shell.execute_reply":"2022-07-31T11:15:02.403038Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"test.describe()","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:15:02.406379Z","iopub.execute_input":"2022-07-31T11:15:02.407249Z","iopub.status.idle":"2022-07-31T11:15:05.076886Z","shell.execute_reply.started":"2022-07-31T11:15:02.407205Z","shell.execute_reply":"2022-07-31T11:15:05.075319Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"test = test.values.reshape(-1,28,28,1)","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:15:05.078871Z","iopub.execute_input":"2022-07-31T11:15:05.079534Z","iopub.status.idle":"2022-07-31T11:15:05.087241Z","shell.execute_reply.started":"2022-07-31T11:15:05.079489Z","shell.execute_reply":"2022-07-31T11:15:05.085659Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"test","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:15:05.089132Z","iopub.execute_input":"2022-07-31T11:15:05.090372Z","iopub.status.idle":"2022-07-31T11:15:05.109584Z","shell.execute_reply.started":"2022-07-31T11:15:05.090328Z","shell.execute_reply":"2022-07-31T11:15:05.108294Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# CNN Model","metadata":{}},{"cell_type":"code","source":"import tensorflow as tf","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:15:05.111616Z","iopub.execute_input":"2022-07-31T11:15:05.112453Z","iopub.status.idle":"2022-07-31T11:15:07.104069Z","shell.execute_reply.started":"2022-07-31T11:15:05.112408Z","shell.execute_reply":"2022-07-31T11:15:07.102798Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"tf.__version__","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:15:07.105874Z","iopub.execute_input":"2022-07-31T11:15:07.106838Z","iopub.status.idle":"2022-07-31T11:15:07.117512Z","shell.execute_reply.started":"2022-07-31T11:15:07.106792Z","shell.execute_reply":"2022-07-31T11:15:07.116036Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"cnn = tf.keras.models.Sequential()","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:15:07.119609Z","iopub.execute_input":"2022-07-31T11:15:07.120632Z","iopub.status.idle":"2022-07-31T11:15:08.393305Z","shell.execute_reply.started":"2022-07-31T11:15:07.120584Z","shell.execute_reply":"2022-07-31T11:15:08.391663Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#Convolution\ncnn.add(tf.keras.layers.Conv2D(filters=256,kernel_size=(5,5),activation='relu',input_shape=(28,28,1)))","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:15:08.395440Z","iopub.execute_input":"2022-07-31T11:15:08.396230Z","iopub.status.idle":"2022-07-31T11:15:08.428230Z","shell.execute_reply.started":"2022-07-31T11:15:08.396182Z","shell.execute_reply":"2022-07-31T11:15:08.427002Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#Max Pooling\ncnn.add(tf.keras.layers.MaxPool2D(pool_size=(3,3),strides=3))","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:15:08.429789Z","iopub.execute_input":"2022-07-31T11:15:08.431007Z","iopub.status.idle":"2022-07-31T11:15:08.442916Z","shell.execute_reply.started":"2022-07-31T11:15:08.430926Z","shell.execute_reply":"2022-07-31T11:15:08.441603Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"cnn.add(tf.keras.layers.BatchNormalization())","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:15:08.444629Z","iopub.execute_input":"2022-07-31T11:15:08.447753Z","iopub.status.idle":"2022-07-31T11:15:08.471009Z","shell.execute_reply.started":"2022-07-31T11:15:08.447719Z","shell.execute_reply":"2022-07-31T11:15:08.469759Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"cnn.add(tf.keras.layers.Conv2D(filters=128,kernel_size=(4,4),activation='relu'))","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:15:08.474953Z","iopub.execute_input":"2022-07-31T11:15:08.475330Z","iopub.status.idle":"2022-07-31T11:15:08.494197Z","shell.execute_reply.started":"2022-07-31T11:15:08.475300Z","shell.execute_reply":"2022-07-31T11:15:08.493026Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"cnn.add(tf.keras.layers.MaxPool2D(pool_size=(2,2),strides=2))","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:15:08.495654Z","iopub.execute_input":"2022-07-31T11:15:08.496139Z","iopub.status.idle":"2022-07-31T11:15:08.508949Z","shell.execute_reply.started":"2022-07-31T11:15:08.496095Z","shell.execute_reply":"2022-07-31T11:15:08.507340Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#Flattening\ncnn.add(tf.keras.layers.Flatten())","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:15:08.510905Z","iopub.execute_input":"2022-07-31T11:15:08.511461Z","iopub.status.idle":"2022-07-31T11:15:08.524007Z","shell.execute_reply.started":"2022-07-31T11:15:08.511419Z","shell.execute_reply":"2022-07-31T11:15:08.522554Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#Full connection \ncnn.add(tf.keras.layers.Dense(units=256,activation='relu'))","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:15:08.527182Z","iopub.execute_input":"2022-07-31T11:15:08.527933Z","iopub.status.idle":"2022-07-31T11:15:08.545318Z","shell.execute_reply.started":"2022-07-31T11:15:08.527890Z","shell.execute_reply":"2022-07-31T11:15:08.544149Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#Output Layer\ncnn.add(tf.keras.layers.Dense(units=10,activation='softmax'))","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:15:08.547176Z","iopub.execute_input":"2022-07-31T11:15:08.547894Z","iopub.status.idle":"2022-07-31T11:15:08.565413Z","shell.execute_reply.started":"2022-07-31T11:15:08.547852Z","shell.execute_reply":"2022-07-31T11:15:08.564204Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#Compile cnn\ncnn.compile(optimizer='adam',loss='categorical_crossentropy')","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:15:08.566994Z","iopub.execute_input":"2022-07-31T11:15:08.568204Z","iopub.status.idle":"2022-07-31T11:15:08.587002Z","shell.execute_reply.started":"2022-07-31T11:15:08.568156Z","shell.execute_reply":"2022-07-31T11:15:08.585698Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"cnn.fit(X_train,y_train,batch_size=32,epochs=50)","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:15:08.596817Z","iopub.execute_input":"2022-07-31T11:15:08.601183Z","iopub.status.idle":"2022-07-31T11:21:31.501555Z","shell.execute_reply.started":"2022-07-31T11:15:08.601114Z","shell.execute_reply":"2022-07-31T11:21:31.500129Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"pred = cnn.predict(test)","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:21:31.503176Z","iopub.execute_input":"2022-07-31T11:21:31.504342Z","iopub.status.idle":"2022-07-31T11:21:34.422121Z","shell.execute_reply.started":"2022-07-31T11:21:31.504298Z","shell.execute_reply":"2022-07-31T11:21:34.420736Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"pred = np.argmax(pred,axis=1)","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:21:34.425172Z","iopub.execute_input":"2022-07-31T11:21:34.427225Z","iopub.status.idle":"2022-07-31T11:21:34.434012Z","shell.execute_reply.started":"2022-07-31T11:21:34.427175Z","shell.execute_reply":"2022-07-31T11:21:34.432673Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"pred","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:21:34.437175Z","iopub.execute_input":"2022-07-31T11:21:34.437659Z","iopub.status.idle":"2022-07-31T11:21:34.449621Z","shell.execute_reply.started":"2022-07-31T11:21:34.437613Z","shell.execute_reply":"2022-07-31T11:21:34.448080Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"pred = pd.DataFrame(pred,columns=['Label'])","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:21:34.451795Z","iopub.execute_input":"2022-07-31T11:21:34.452280Z","iopub.status.idle":"2022-07-31T11:21:34.461758Z","shell.execute_reply.started":"2022-07-31T11:21:34.452236Z","shell.execute_reply":"2022-07-31T11:21:34.460448Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"test_id = list(range(1,len(test)+1,1))","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:21:34.463835Z","iopub.execute_input":"2022-07-31T11:21:34.464472Z","iopub.status.idle":"2022-07-31T11:21:34.474275Z","shell.execute_reply.started":"2022-07-31T11:21:34.464428Z","shell.execute_reply":"2022-07-31T11:21:34.472867Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"test_id = pd.DataFrame(test_id,columns=['ImageId'])","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:21:34.476677Z","iopub.execute_input":"2022-07-31T11:21:34.477171Z","iopub.status.idle":"2022-07-31T11:21:34.499265Z","shell.execute_reply.started":"2022-07-31T11:21:34.477131Z","shell.execute_reply":"2022-07-31T11:21:34.498125Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"submission = pd.concat([test_id,pred],axis=1)","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:21:34.501732Z","iopub.execute_input":"2022-07-31T11:21:34.502849Z","iopub.status.idle":"2022-07-31T11:21:34.509591Z","shell.execute_reply.started":"2022-07-31T11:21:34.502805Z","shell.execute_reply":"2022-07-31T11:21:34.508200Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"submission.describe()","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:21:34.512064Z","iopub.execute_input":"2022-07-31T11:21:34.512533Z","iopub.status.idle":"2022-07-31T11:21:34.548129Z","shell.execute_reply.started":"2022-07-31T11:21:34.512489Z","shell.execute_reply":"2022-07-31T11:21:34.546755Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"submission.to_csv('./submission.csv',index=False)","metadata":{"execution":{"iopub.status.busy":"2022-07-31T11:21:34.551636Z","iopub.execute_input":"2022-07-31T11:21:34.552284Z","iopub.status.idle":"2022-07-31T11:21:34.605129Z","shell.execute_reply.started":"2022-07-31T11:21:34.552253Z","shell.execute_reply":"2022-07-31T11:21:34.603994Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}