{"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 pandas as pd \nimport tensorflow as tf \nimport numpy as np\nimport torch \nimport pytorch_lightning as pl\nimport matplotlib.pyplot as plt\nimport torchvision\n\ndef read_csv(path):\n    df=pd.read_csv(path)\n    return df\n\ndef read_img(path):\n    img=torchvision.io.decode_jpeg(path)\n    return img\n\ndef plot_batch(img_paths,r,c):\n    _,axs=plt.subplots(r,c,figsize=(10,10))\n    axs=axs.flatten()\n    for n, ax in enumerate(axs):\n        ax.imshow(read_img(img_paths[n]))\n        \n    plt.tight_layout()\n        \n    plt.show()\n","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2022-01-14T07:37:56.004869Z","iopub.execute_input":"2022-01-14T07:37:56.005279Z","iopub.status.idle":"2022-01-14T07:38:05.110434Z","shell.execute_reply.started":"2022-01-14T07:37:56.005180Z","shell.execute_reply":"2022-01-14T07:38:05.109110Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_df=read_csv('../input/tensorflow-great-barrier-reef/train.csv')\nprint('train_df')\ndisplay(train_df)\nprint('test_df')\ntest_df=read_csv('../input/tensorflow-great-barrier-reef/test.csv')\ndisplay(test_df)\n","metadata":{"execution":{"iopub.status.busy":"2022-01-14T07:44:12.350319Z","iopub.execute_input":"2022-01-14T07:44:12.350594Z","iopub.status.idle":"2022-01-14T07:44:12.408939Z","shell.execute_reply.started":"2022-01-14T07:44:12.350565Z","shell.execute_reply":"2022-01-14T07:44:12.407879Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}