{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.10.13","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"},{"sourceId":7866129,"sourceType":"datasetVersion","datasetId":4614938},{"sourceId":7869237,"sourceType":"datasetVersion","datasetId":4617269}],"dockerImageVersionId":30673,"isInternetEnabled":true,"language":"python","sourceType":"notebook","isGpuEnabled":false}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"import pandas as pd\nfrom glob import glob\nimport matplotlib.pyplot as plt\nimport cv2","metadata":{"execution":{"iopub.status.busy":"2024-03-25T17:01:43.893109Z","iopub.execute_input":"2024-03-25T17:01:43.893526Z","iopub.status.idle":"2024-03-25T17:01:44.115232Z","shell.execute_reply.started":"2024-03-25T17:01:43.893493Z","shell.execute_reply":"2024-03-25T17:01:44.114311Z"},"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"file_lbl=\"/kaggle/input/diabetic-retinopathy-detection/trainLabels.csv.zip\"\ndf_train=pd.read_csv(file_lbl,sep=',')\ndf_train","metadata":{"execution":{"iopub.status.busy":"2024-03-25T16:59:20.274913Z","iopub.execute_input":"2024-03-25T16:59:20.275299Z","iopub.status.idle":"2024-03-25T16:59:20.337267Z","shell.execute_reply.started":"2024-03-25T16:59:20.275270Z","shell.execute_reply":"2024-03-25T16:59:20.336407Z"},"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"paths_train= glob('/kaggle/input/diabetic-retinopathy-train-unzipped/train/*.jpeg')\nimage=cv2.imread(paths_train[0])\nplt.imshow(image)","metadata":{"execution":{"iopub.status.busy":"2024-03-25T17:11:58.976106Z","iopub.execute_input":"2024-03-25T17:11:58.976572Z","iopub.status.idle":"2024-03-25T17:12:01.661992Z","shell.execute_reply.started":"2024-03-25T17:11:58.976540Z","shell.execute_reply":"2024-03-25T17:12:01.661199Z"},"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"paths_test = glob('/kaggle/input/diabetic-retinopathy-test-unzipped/test/*.jpeg')\nimage=cv2.imread(paths_test[0])\nplt.imshow(image)","metadata":{"execution":{"iopub.status.busy":"2024-03-25T17:13:36.166215Z","iopub.execute_input":"2024-03-25T17:13:36.166597Z","iopub.status.idle":"2024-03-25T17:13:40.302918Z","shell.execute_reply.started":"2024-03-25T17:13:36.166554Z","shell.execute_reply":"2024-03-25T17:13:40.301867Z"},"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"file_sub=\"/kaggle/input/diabetic-retinopathy-detection/sampleSubmission.csv.zip\"\ndf_submission=pd.read_csv(file_sub,sep=',')\ndf_submission.loc[0, 'level']=1\ndf_submission","metadata":{"execution":{"iopub.status.busy":"2024-03-25T17:19:19.607984Z","iopub.execute_input":"2024-03-25T17:19:19.608377Z","iopub.status.idle":"2024-03-25T17:19:19.657295Z","shell.execute_reply.started":"2024-03-25T17:19:19.608330Z","shell.execute_reply":"2024-03-25T17:19:19.656498Z"},"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"df_submission.to_csv('submission.csv', index=False)","metadata":{"execution":{"iopub.status.busy":"2024-03-25T17:20:51.959362Z","iopub.execute_input":"2024-03-25T17:20:51.959787Z","iopub.status.idle":"2024-03-25T17:20:52.050016Z","shell.execute_reply.started":"2024-03-25T17:20:51.959758Z","shell.execute_reply":"2024-03-25T17:20:52.048889Z"},"trusted":true},"outputs":[],"execution_count":null}]}