{"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)","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2022-03-09T16:42:11.115472Z","iopub.execute_input":"2022-03-09T16:42:11.116465Z","iopub.status.idle":"2022-03-09T16:42:11.120339Z","shell.execute_reply.started":"2022-03-09T16:42:11.116412Z","shell.execute_reply":"2022-03-09T16:42:11.119556Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"from IPython.core.interactiveshell import InteractiveShell\nInteractiveShell.ast_node_interactivity = 'all'","metadata":{"execution":{"iopub.status.busy":"2022-03-09T16:46:02.431598Z","iopub.execute_input":"2022-03-09T16:46:02.432125Z","iopub.status.idle":"2022-03-09T16:46:02.437427Z","shell.execute_reply.started":"2022-03-09T16:46:02.432076Z","shell.execute_reply":"2022-03-09T16:46:02.436330Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train = pd.read_csv('../input/ultra-mnist/train.csv')\nsubmission = pd.read_csv('../input/ultra-mnist/sample_submission.csv')\ntrain.head()","metadata":{"execution":{"iopub.status.busy":"2022-03-09T16:42:11.862980Z","iopub.execute_input":"2022-03-09T16:42:11.863828Z","iopub.status.idle":"2022-03-09T16:42:11.913708Z","shell.execute_reply.started":"2022-03-09T16:42:11.863778Z","shell.execute_reply":"2022-03-09T16:42:11.912908Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import matplotlib.pyplot as plt\n\nbins_ = np.linspace(10, 100, 16, dtype=int)\n\nfig, axs = plt.subplots(4,4, figsize=(12,12))\naxs = axs.flatten()\n\nfor ax, bin_ in zip(axs, bins_):\n    _ = ax.hist(train['digit_sum'], bins=bin_)\nplt.show()\nplt.close()","metadata":{"execution":{"iopub.status.busy":"2022-03-09T16:46:55.979378Z","iopub.execute_input":"2022-03-09T16:46:55.979658Z","iopub.status.idle":"2022-03-09T16:46:59.173978Z","shell.execute_reply.started":"2022-03-09T16:46:55.979612Z","shell.execute_reply":"2022-03-09T16:46:59.173283Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"# I guess there isn't...\n\n# This means that there is no sum of digits that is more probable than others...\n\n# Mmm...","metadata":{"execution":{"iopub.status.busy":"2022-03-09T16:47:47.767539Z","iopub.execute_input":"2022-03-09T16:47:47.768335Z","iopub.status.idle":"2022-03-09T16:47:47.772248Z","shell.execute_reply.started":"2022-03-09T16:47:47.768286Z","shell.execute_reply":"2022-03-09T16:47:47.771378Z"},"trusted":true},"execution_count":null,"outputs":[]}]}