{"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)\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        break\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-10-08T09:41:14.900293Z","iopub.execute_input":"2023-10-08T09:41:14.900751Z","iopub.status.idle":"2023-10-08T09:41:16.194472Z","shell.execute_reply.started":"2023-10-08T09:41:14.900713Z","shell.execute_reply":"2023-10-08T09:41:16.193223Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"## Import All Libraries","metadata":{}},{"cell_type":"code","source":"import warnings\nwarnings.filterwarnings('ignore')\n\nimport os\nimport pandas as pd\nimport numpy as np\nimport matplotlib.pyplot as plt\n%matplotlib inline\nimport seaborn as sns\nfrom sklearn.metrics import classification_report , confusion_matrix , accuracy_score , auc\nfrom sklearn.model_selection import train_test_split\n\nimport cv2\n#from google.colab.patches import cv2_imshow\nfrom PIL import Image \nimport tensorflow as tf\nfrom tensorflow import keras\nfrom keras import Sequential\nfrom keras.layers import Input, Dense,Conv2D , MaxPooling2D, Flatten,BatchNormalization,Dropout\nfrom tensorflow.keras.preprocessing import image_dataset_from_directory\nimport tensorflow_hub as hub ","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:44:34.847042Z","iopub.execute_input":"2023-10-08T09:44:34.847447Z","iopub.status.idle":"2023-10-08T09:44:48.442868Z","shell.execute_reply.started":"2023-10-08T09:44:34.847415Z","shell.execute_reply":"2023-10-08T09:44:48.441555Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_df = pd.read_csv(\"/kaggle/input/UBC-OCEAN/train.csv\")\ntrain_df","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:44:48.444788Z","iopub.execute_input":"2023-10-08T09:44:48.445501Z","iopub.status.idle":"2023-10-08T09:44:48.491472Z","shell.execute_reply.started":"2023-10-08T09:44:48.445463Z","shell.execute_reply":"2023-10-08T09:44:48.490255Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_df.nunique()","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:44:48.49327Z","iopub.execute_input":"2023-10-08T09:44:48.494006Z","iopub.status.idle":"2023-10-08T09:44:48.515335Z","shell.execute_reply.started":"2023-10-08T09:44:48.493938Z","shell.execute_reply":"2023-10-08T09:44:48.514211Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_df.describe()","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:44:48.51794Z","iopub.execute_input":"2023-10-08T09:44:48.518682Z","iopub.status.idle":"2023-10-08T09:44:48.551895Z","shell.execute_reply.started":"2023-10-08T09:44:48.518552Z","shell.execute_reply":"2023-10-08T09:44:48.550751Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_df['label'].value_counts()","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:44:48.553329Z","iopub.execute_input":"2023-10-08T09:44:48.553642Z","iopub.status.idle":"2023-10-08T09:44:48.5661Z","shell.execute_reply.started":"2023-10-08T09:44:48.553615Z","shell.execute_reply":"2023-10-08T09:44:48.564926Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"sns.countplot(data=train_df, x=\"label\")\nplt.title(\"Ovarian Cancer Types Distributions\")\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:44:48.567798Z","iopub.execute_input":"2023-10-08T09:44:48.56881Z","iopub.status.idle":"2023-10-08T09:44:48.833666Z","shell.execute_reply.started":"2023-10-08T09:44:48.56876Z","shell.execute_reply":"2023-10-08T09:44:48.832239Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_df['label'].value_counts().plot(kind=\"pie\",autopct=\"%.1f%%\")\nplt.title(\"Ovarian Cancer Types Distributions\")\nplt.legend()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:44:48.83514Z","iopub.execute_input":"2023-10-08T09:44:48.835621Z","iopub.status.idle":"2023-10-08T09:44:49.081741Z","shell.execute_reply.started":"2023-10-08T09:44:48.835582Z","shell.execute_reply":"2023-10-08T09:44:49.080194Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_df.head()","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:44:49.083717Z","iopub.execute_input":"2023-10-08T09:44:49.084715Z","iopub.status.idle":"2023-10-08T09:44:49.104055Z","shell.execute_reply.started":"2023-10-08T09:44:49.084656Z","shell.execute_reply":"2023-10-08T09:44:49.10268Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"## Image Width and Height Distributions","metadata":{}},{"cell_type":"code","source":"plt.figure(figsize=(10,5))\nplt.subplot(1,2,1)\nsns.kdeplot(train_df['image_width'])\nplt.subplot(1,2,2)\nsns.kdeplot(train_df['image_height'])\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:44:49.106845Z","iopub.execute_input":"2023-10-08T09:44:49.108318Z","iopub.status.idle":"2023-10-08T09:44:49.648939Z","shell.execute_reply.started":"2023-10-08T09:44:49.108273Z","shell.execute_reply":"2023-10-08T09:44:49.647746Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"plt.figure(figsize=(18,6))\nplt.subplot(1,2,1)\nplt.hist(x=train_df['image_width'])\nplt.title(\"Image Width Distributions\")\nplt.subplot(1,2,2)\nplt.hist(x=train_df['image_height'])\nplt.title(\"Image Height Distributions\")\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:44:55.814806Z","iopub.execute_input":"2023-10-08T09:44:55.815361Z","iopub.status.idle":"2023-10-08T09:44:56.269954Z","shell.execute_reply.started":"2023-10-08T09:44:55.815315Z","shell.execute_reply":"2023-10-08T09:44:56.26882Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_df['image_width'].describe()","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:44:56.271455Z","iopub.execute_input":"2023-10-08T09:44:56.272285Z","iopub.status.idle":"2023-10-08T09:44:56.283778Z","shell.execute_reply.started":"2023-10-08T09:44:56.272243Z","shell.execute_reply":"2023-10-08T09:44:56.282494Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_df['image_height'].describe()","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:45:14.445137Z","iopub.execute_input":"2023-10-08T09:45:14.446314Z","iopub.status.idle":"2023-10-08T09:45:14.461281Z","shell.execute_reply.started":"2023-10-08T09:45:14.446261Z","shell.execute_reply":"2023-10-08T09:45:14.459893Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_df.info()","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:45:15.921193Z","iopub.execute_input":"2023-10-08T09:45:15.921608Z","iopub.status.idle":"2023-10-08T09:45:15.942216Z","shell.execute_reply.started":"2023-10-08T09:45:15.921577Z","shell.execute_reply":"2023-10-08T09:45:15.940558Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"## Outliers in The Data","metadata":{}},{"cell_type":"code","source":"plt.figure(figsize=(10,6)) \nplt.subplot(1,2,1)\nsns.boxplot(data=train_df,x=\"image_width\")\nplt.subplot(1,2,2)\nsns.boxplot(data=train_df,x=\"image_height\")\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:45:15.945035Z","iopub.execute_input":"2023-10-08T09:45:15.945533Z","iopub.status.idle":"2023-10-08T09:45:16.24911Z","shell.execute_reply.started":"2023-10-08T09:45:15.945487Z","shell.execute_reply":"2023-10-08T09:45:16.247721Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"plt.subplot(1,2,1)\ntrain_df[['image_width']].boxplot()\nplt.subplot(1,2,2)\ntrain_df[['image_width']].boxplot()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:45:16.250438Z","iopub.execute_input":"2023-10-08T09:45:16.250772Z","iopub.status.idle":"2023-10-08T09:45:16.552082Z","shell.execute_reply.started":"2023-10-08T09:45:16.250743Z","shell.execute_reply":"2023-10-08T09:45:16.550825Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"## Image Data Collection","metadata":{}},{"cell_type":"code","source":"path_train = \"/kaggle/input/UBC-OCEAN/train_images\"\npath_test = \"/kaggle/input/UBC-OCEAN/test_images\"\ntrain_folder = os.listdir(path_train)\ntest_folder = os.listdir(path_test)\n\nprint(len(train_folder))\nprint(len(test_folder))","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:45:17.644466Z","iopub.execute_input":"2023-10-08T09:45:17.644881Z","iopub.status.idle":"2023-10-08T09:45:17.727201Z","shell.execute_reply.started":"2023-10-08T09:45:17.644848Z","shell.execute_reply":"2023-10-08T09:45:17.72594Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_folder[:5]","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:37:00.068758Z","iopub.execute_input":"2023-10-08T09:37:00.069841Z","iopub.status.idle":"2023-10-08T09:37:00.078585Z","shell.execute_reply.started":"2023-10-08T09:37:00.06979Z","shell.execute_reply":"2023-10-08T09:37:00.077402Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"test_folder","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:37:04.185495Z","iopub.execute_input":"2023-10-08T09:37:04.185852Z","iopub.status.idle":"2023-10-08T09:37:04.194241Z","shell.execute_reply.started":"2023-10-08T09:37:04.185825Z","shell.execute_reply":"2023-10-08T09:37:04.193371Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"## Images in small size\npath_train_copy = \"/kaggle/input/UBC-OCEAN/train_thumbnails\"\npath_test_copy = \"/kaggle/input/UBC-OCEAN/test_thumbnails\"\ntrain_folder_copy = os.listdir(path_train_copy)\ntest_folder_copy = os.listdir(path_test_copy)\n\nprint(len(train_folder_copy))\nprint(len(test_folder_copy))","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:20:45.08709Z","iopub.execute_input":"2023-10-08T09:20:45.087862Z","iopub.status.idle":"2023-10-08T09:20:45.101155Z","shell.execute_reply.started":"2023-10-08T09:20:45.087824Z","shell.execute_reply":"2023-10-08T09:20:45.099707Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_df['is_tma'].value_counts()","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:20:45.103436Z","iopub.execute_input":"2023-10-08T09:20:45.103856Z","iopub.status.idle":"2023-10-08T09:20:45.116139Z","shell.execute_reply.started":"2023-10-08T09:20:45.103816Z","shell.execute_reply":"2023-10-08T09:20:45.114653Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"## Image id >> Tissue Microarray\ntrain_df_tma = train_df[train_df['is_tma']==True]","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:20:45.118946Z","iopub.execute_input":"2023-10-08T09:20:45.119511Z","iopub.status.idle":"2023-10-08T09:20:45.129354Z","shell.execute_reply.started":"2023-10-08T09:20:45.119464Z","shell.execute_reply":"2023-10-08T09:20:45.12799Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_df_tma","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:20:45.130825Z","iopub.execute_input":"2023-10-08T09:20:45.13121Z","iopub.status.idle":"2023-10-08T09:20:45.1526Z","shell.execute_reply.started":"2023-10-08T09:20:45.131168Z","shell.execute_reply":"2023-10-08T09:20:45.151138Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_df_no_tma = train_df[train_df['is_tma']==False]\ntrain_df_no_tma","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:20:45.155313Z","iopub.execute_input":"2023-10-08T09:20:45.155924Z","iopub.status.idle":"2023-10-08T09:20:45.175998Z","shell.execute_reply.started":"2023-10-08T09:20:45.15586Z","shell.execute_reply":"2023-10-08T09:20:45.175127Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_df_no_tma['image_id_path'] = [f\"{i}_thumbnail.png\" for i in train_df_no_tma['image_id']]","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:20:45.177611Z","iopub.execute_input":"2023-10-08T09:20:45.178195Z","iopub.status.idle":"2023-10-08T09:20:45.185399Z","shell.execute_reply.started":"2023-10-08T09:20:45.178161Z","shell.execute_reply":"2023-10-08T09:20:45.184305Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_df_no_tma","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:20:45.186999Z","iopub.execute_input":"2023-10-08T09:20:45.188112Z","iopub.status.idle":"2023-10-08T09:20:45.213205Z","shell.execute_reply.started":"2023-10-08T09:20:45.188069Z","shell.execute_reply":"2023-10-08T09:20:45.211874Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_df_tma['image_id_path'] = [f\"{i}.png\" for i in train_df_tma['image_id']]","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:20:45.214465Z","iopub.execute_input":"2023-10-08T09:20:45.215557Z","iopub.status.idle":"2023-10-08T09:20:45.226296Z","shell.execute_reply.started":"2023-10-08T09:20:45.21552Z","shell.execute_reply":"2023-10-08T09:20:45.225005Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_df_tma","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:20:45.228129Z","iopub.execute_input":"2023-10-08T09:20:45.228829Z","iopub.status.idle":"2023-10-08T09:20:45.249345Z","shell.execute_reply.started":"2023-10-08T09:20:45.228782Z","shell.execute_reply":"2023-10-08T09:20:45.248211Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"## Train Images data Preprocessing","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:20:45.255579Z","iopub.execute_input":"2023-10-08T09:20:45.257245Z","iopub.status.idle":"2023-10-08T09:20:45.261803Z","shell.execute_reply.started":"2023-10-08T09:20:45.257193Z","shell.execute_reply":"2023-10-08T09:20:45.26069Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_thumbnails_folder = train_folder_copy","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:20:45.263118Z","iopub.execute_input":"2023-10-08T09:20:45.264191Z","iopub.status.idle":"2023-10-08T09:20:45.276771Z","shell.execute_reply.started":"2023-10-08T09:20:45.264155Z","shell.execute_reply":"2023-10-08T09:20:45.275717Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_thumbnails_folder[:5]","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:20:45.278233Z","iopub.execute_input":"2023-10-08T09:20:45.279277Z","iopub.status.idle":"2023-10-08T09:20:45.293086Z","shell.execute_reply.started":"2023-10-08T09:20:45.279243Z","shell.execute_reply":"2023-10-08T09:20:45.291778Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_folder[:5]","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:20:45.294435Z","iopub.execute_input":"2023-10-08T09:20:45.294946Z","iopub.status.idle":"2023-10-08T09:20:45.306208Z","shell.execute_reply.started":"2023-10-08T09:20:45.29489Z","shell.execute_reply":"2023-10-08T09:20:45.305117Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_df.head()","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:20:45.307632Z","iopub.execute_input":"2023-10-08T09:20:45.308019Z","iopub.status.idle":"2023-10-08T09:20:45.325893Z","shell.execute_reply.started":"2023-10-08T09:20:45.307987Z","shell.execute_reply":"2023-10-08T09:20:45.325023Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_thumbnails_folder[:5]    ## length 513","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:20:45.327248Z","iopub.execute_input":"2023-10-08T09:20:45.328476Z","iopub.status.idle":"2023-10-08T09:20:45.342307Z","shell.execute_reply.started":"2023-10-08T09:20:45.328429Z","shell.execute_reply":"2023-10-08T09:20:45.341288Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_folder[:5]     ## Length 538","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:20:45.343435Z","iopub.execute_input":"2023-10-08T09:20:45.344457Z","iopub.status.idle":"2023-10-08T09:20:45.356208Z","shell.execute_reply.started":"2023-10-08T09:20:45.344411Z","shell.execute_reply":"2023-10-08T09:20:45.355128Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"## Images from Thumbnail Folder","metadata":{}},{"cell_type":"code","source":"plt.figure(figsize=(16,24))\npath = \"/kaggle/input/UBC-OCEAN/train_thumbnails\"\nj=1\nfor img, lb in zip(train_df_no_tma['image_id_path'][:24],train_df_no_tma['label'][:24]):\n    plt.subplot(6,4,j)\n    path = os.path.join(\"/kaggle/input/UBC-OCEAN/train_thumbnails/\",img)\n    image = plt.imread(path)\n    image = plt.imshow(image)\n    plt.title(f\"Label:{lb}\")\n    j+=1","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:20:45.358449Z","iopub.execute_input":"2023-10-08T09:20:45.3589Z","iopub.status.idle":"2023-10-08T09:21:33.064869Z","shell.execute_reply.started":"2023-10-08T09:20:45.358868Z","shell.execute_reply":"2023-10-08T09:21:33.063241Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"## Images from train folder original size","metadata":{}},{"cell_type":"code","source":"plt.figure(figsize=(16,28))\npath = \"/kaggle/input/UBC-OCEAN/train_images\"\nj=1\nfor img, lb in zip(train_df_tma['image_id_path'],train_df_tma['label']):\n    plt.subplot(7,4,j)\n    path = os.path.join(\"/kaggle/input/UBC-OCEAN/train_images\",img)\n    image = plt.imread(path)\n    image = plt.imshow(image)\n    plt.title(f\"Label:{lb}\")\n    j+=1","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:21:33.066711Z","iopub.execute_input":"2023-10-08T09:21:33.067144Z","iopub.status.idle":"2023-10-08T09:23:02.690336Z","shell.execute_reply.started":"2023-10-08T09:21:33.067102Z","shell.execute_reply":"2023-10-08T09:23:02.68875Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"len(train_folder)","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:23:02.691757Z","iopub.execute_input":"2023-10-08T09:23:02.692125Z","iopub.status.idle":"2023-10-08T09:23:02.700661Z","shell.execute_reply.started":"2023-10-08T09:23:02.692093Z","shell.execute_reply":"2023-10-08T09:23:02.699457Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"test_folder","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:37:47.108365Z","iopub.execute_input":"2023-10-08T09:37:47.108769Z","iopub.status.idle":"2023-10-08T09:37:47.11615Z","shell.execute_reply.started":"2023-10-08T09:37:47.108741Z","shell.execute_reply":"2023-10-08T09:37:47.114846Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"## Test Data Visualization","metadata":{}},{"cell_type":"code","source":"#plt.figure(figsize=(12,4))\npath = os.path.join(\"/kaggle/input/UBC-OCEAN/test_images\",test_folder[0])\nimage = plt.imread(path)\nplt.imshow(image)","metadata":{"execution":{"iopub.status.busy":"2023-10-08T09:48:43.735396Z","iopub.execute_input":"2023-10-08T09:48:43.736801Z","iopub.status.idle":"2023-10-08T09:51:01.650569Z","shell.execute_reply.started":"2023-10-08T09:48:43.736737Z","shell.execute_reply":"2023-10-08T09:51:01.649129Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}