{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.10.12","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"},"kaggle":{"accelerator":"none","dataSources":[{"sourceId":4104,"databundleVersionId":46661,"sourceType":"competition"}],"dockerImageVersionId":30587,"isInternetEnabled":true,"language":"python","sourceType":"notebook","isGpuEnabled":false}},"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-12-18T14:09:07.684758Z","iopub.execute_input":"2023-12-18T14:09:07.685230Z","iopub.status.idle":"2023-12-18T14:09:08.167557Z","shell.execute_reply.started":"2023-12-18T14:09:07.685190Z","shell.execute_reply":"2023-12-18T14:09:08.166235Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"from fastai.vision.all import *","metadata":{"execution":{"iopub.status.busy":"2023-12-18T14:09:08.169648Z","iopub.execute_input":"2023-12-18T14:09:08.170203Z","iopub.status.idle":"2023-12-18T14:09:17.989078Z","shell.execute_reply.started":"2023-12-18T14:09:08.170160Z","shell.execute_reply":"2023-12-18T14:09:17.987692Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!unzip /kaggle/input/diabetic-retinopathy-detection/sampleSubmission.csv.zip\n!unzip /kaggle/input/diabetic-retinopathy-detection/sample.zip","metadata":{"execution":{"iopub.status.busy":"2023-12-18T14:10:12.386324Z","iopub.execute_input":"2023-12-18T14:10:12.386777Z","iopub.status.idle":"2023-12-18T14:10:15.571680Z","shell.execute_reply.started":"2023-12-18T14:10:12.386743Z","shell.execute_reply":"2023-12-18T14:10:15.570502Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!ls -l","metadata":{"execution":{"iopub.status.busy":"2023-12-07T11:14:50.168806Z","iopub.execute_input":"2023-12-07T11:14:50.169240Z","iopub.status.idle":"2023-12-07T11:14:51.194732Z","shell.execute_reply.started":"2023-12-07T11:14:50.169198Z","shell.execute_reply":"2023-12-07T11:14:51.193320Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df = pd.read_csv('sampleSubmission.csv')\ndf","metadata":{"execution":{"iopub.status.busy":"2023-12-07T11:14:54.774937Z","iopub.execute_input":"2023-12-07T11:14:54.776203Z","iopub.status.idle":"2023-12-07T11:14:54.867835Z","shell.execute_reply.started":"2023-12-07T11:14:54.776157Z","shell.execute_reply":"2023-12-07T11:14:54.867092Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df.dtypes","metadata":{"execution":{"iopub.status.busy":"2023-12-07T11:14:57.932804Z","iopub.execute_input":"2023-12-07T11:14:57.933288Z","iopub.status.idle":"2023-12-07T11:14:57.942118Z","shell.execute_reply.started":"2023-12-07T11:14:57.933246Z","shell.execute_reply":"2023-12-07T11:14:57.941085Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"im = Image.open('/kaggle/working/sample/10_right.jpeg')\nim.to_thumb(400, 400)","metadata":{"execution":{"iopub.status.busy":"2023-12-07T11:15:43.804945Z","iopub.execute_input":"2023-12-07T11:15:43.805476Z","iopub.status.idle":"2023-12-07T11:15:44.164952Z","shell.execute_reply.started":"2023-12-07T11:15:43.805433Z","shell.execute_reply":"2023-12-07T11:15:44.163777Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!ls -l /kaggle/working/sample","metadata":{"execution":{"iopub.status.busy":"2023-12-07T11:19:44.085532Z","iopub.execute_input":"2023-12-07T11:19:44.085976Z","iopub.status.idle":"2023-12-07T11:19:45.113598Z","shell.execute_reply.started":"2023-12-07T11:19:44.085942Z","shell.execute_reply":"2023-12-07T11:19:45.112086Z"},"trusted":true},"execution_count":null,"outputs":[]}]}