{"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 important libraries\nfrom PIL import Image\nfrom keras.preprocessing import image\nimport os\nimport numpy as np\nimport pandas as pd\n\nfrom subprocess import check_output\nprint(check_output([\"ls\", \"../input/\"]).decode(\"utf8\"))","metadata":{"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!unzip ../input/diabetic-retinopathy-detection/trainLabels.csv.zip","metadata":{"execution":{"iopub.status.busy":"2022-12-20T07:49:58.227428Z","iopub.execute_input":"2022-12-20T07:49:58.227855Z","iopub.status.idle":"2022-12-20T07:49:59.350469Z","shell.execute_reply.started":"2022-12-20T07:49:58.227821Z","shell.execute_reply":"2022-12-20T07:49:59.348681Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!apt install p7zip-full -y\n!7z x ../input/diabetic-retinopathy-detection/train.zip.001 \"-i!train/11*.jpeg\" -y # restrict extracted file to about 100 for the disk restriction\n!mkdir data\n!mv train data/train_11","metadata":{"execution":{"iopub.status.busy":"2022-12-20T07:50:05.756432Z","iopub.execute_input":"2022-12-20T07:50:05.756895Z","iopub.status.idle":"2022-12-20T07:50:32.489961Z","shell.execute_reply.started":"2022-12-20T07:50:05.756855Z","shell.execute_reply":"2022-12-20T07:50:32.488248Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import pandas as pd\n\ntrainLabels = pd.read_csv(\"../trainLabels.csv\")\ntrainLabels.head()","metadata":{"execution":{"iopub.status.busy":"2022-12-20T07:50:50.780777Z","iopub.execute_input":"2022-12-20T07:50:50.78117Z","iopub.status.idle":"2022-12-20T07:50:50.812182Z","shell.execute_reply.started":"2022-12-20T07:50:50.781139Z","shell.execute_reply":"2022-12-20T07:50:50.810181Z"},"trusted":true},"execution_count":null,"outputs":[]}]}