{"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":"markdown","source":"<center><span style=\"font-size:30px;\"><b>FINAL PROJECT</span>\n<center><span style=\"font-size:30px;\"><b>DEEP LEARNING</span>\n\n","metadata":{}},{"cell_type":"markdown","source":"## Group Members\n- Farhan Karim\n- Manoj Kumar","metadata":{}},{"cell_type":"markdown","source":"-------------","metadata":{}},{"cell_type":"markdown","source":"## 1. IMPORT LIBRARIES","metadata":{}},{"cell_type":"code","source":"import matplotlib.pyplot as plt\nimport pandas as pd\n\n","metadata":{"execution":{"iopub.status.busy":"2022-05-29T06:03:05.533505Z","iopub.execute_input":"2022-05-29T06:03:05.533924Z","iopub.status.idle":"2022-05-29T06:03:05.538185Z","shell.execute_reply.started":"2022-05-29T06:03:05.533891Z","shell.execute_reply":"2022-05-29T06:03:05.536966Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"## 2. DATASET LOCATION","metadata":{}},{"cell_type":"code","source":"IMAGE_PATH = \"../input/plant-pathology-2021-fgvc8/train_images\"","metadata":{"execution":{"iopub.status.busy":"2022-05-29T06:03:06.612258Z","iopub.execute_input":"2022-05-29T06:03:06.612616Z","iopub.status.idle":"2022-05-29T06:03:06.617059Z","shell.execute_reply.started":"2022-05-29T06:03:06.612582Z","shell.execute_reply":"2022-05-29T06:03:06.615939Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"## 3. IMPORT IMAGE PATH AND STORE IN VARIABLE X AND STORE LABELS IN VARIABLE Y","metadata":{}},{"cell_type":"code","source":"\nX = pd.read_csv(\"../input/plant-pathology-2021-fgvc8/train.csv\")\nY=X.labels","metadata":{"execution":{"iopub.status.busy":"2022-05-29T06:03:07.502424Z","iopub.execute_input":"2022-05-29T06:03:07.502772Z","iopub.status.idle":"2022-05-29T06:03:07.52554Z","shell.execute_reply.started":"2022-05-29T06:03:07.502741Z","shell.execute_reply":"2022-05-29T06:03:07.52473Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"## 4. SHOW TOP 5 ROWS FROM X AND Y","metadata":{}},{"cell_type":"code","source":"\nX.head()","metadata":{"execution":{"iopub.status.busy":"2022-05-29T06:03:08.464252Z","iopub.execute_input":"2022-05-29T06:03:08.46462Z","iopub.status.idle":"2022-05-29T06:03:08.47608Z","shell.execute_reply.started":"2022-05-29T06:03:08.464587Z","shell.execute_reply":"2022-05-29T06:03:08.474855Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"-----","metadata":{}},{"cell_type":"code","source":"Y.head()","metadata":{"execution":{"iopub.status.busy":"2022-05-29T06:03:09.728119Z","iopub.execute_input":"2022-05-29T06:03:09.728449Z","iopub.status.idle":"2022-05-29T06:03:09.735921Z","shell.execute_reply.started":"2022-05-29T06:03:09.728419Z","shell.execute_reply":"2022-05-29T06:03:09.734707Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import PIL\nfig1=plt.figure(figsize=(12,10))\nfor i in range(0,5):\n    sample = os.path.join(IMAGE_PATH, X['image'][i])\n    img = PIL.Image.open(sample)\n    ax = fig1.add_subplot(4,3,i+1)\n    ax.imshow(img)\n    title = f\"{X['labels'][i]}\"\n    plt.title(title)\n    \n    fig1.tight_layout()","metadata":{"execution":{"iopub.status.busy":"2022-05-29T06:05:41.973869Z","iopub.execute_input":"2022-05-29T06:05:41.97425Z","iopub.status.idle":"2022-05-29T06:05:47.732174Z","shell.execute_reply.started":"2022-05-29T06:05:41.974199Z","shell.execute_reply":"2022-05-29T06:05:47.727908Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"-----","metadata":{}}]}