{"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\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":"2022-08-25T03:04:59.468192Z","iopub.execute_input":"2022-08-25T03:04:59.468655Z","iopub.status.idle":"2022-08-25T03:04:59.606283Z","shell.execute_reply.started":"2022-08-25T03:04:59.468615Z","shell.execute_reply":"2022-08-25T03:04:59.605249Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import numpy as np\nimport pandas as pd\nimport os\nimport tensorflow as tf\nfrom tqdm import tqdm\nfrom tensorflow.keras.preprocessing.image import ImageDataGenerator, load_img, img_to_array\nfrom tensorflow.keras.preprocessing.text import Tokenizer\nfrom tensorflow.keras.preprocessing.sequence import pad_sequences\nfrom tensorflow.keras.utils import Sequence\nfrom tensorflow.keras.utils import to_categorical\nfrom tensorflow.keras.models import Sequential, Model\nfrom tensorflow.keras.layers import Conv2D, MaxPooling2D, GlobalAveragePooling2D, Activation, Dropout, Flatten, Dense, Input, Layer\nfrom tensorflow.keras.layers import Embedding, LSTM, add, Concatenate, Reshape, concatenate, Bidirectional\nfrom tensorflow.keras.applications import VGG16, ResNet50, DenseNet201\nfrom tensorflow.keras.optimizers import Adam\nfrom tensorflow.keras.callbacks import ModelCheckpoint, EarlyStopping, ReduceLROnPlateau\nimport warnings\nimport matplotlib.pyplot as plt\nimport seaborn as sns\nfrom textwrap import wrap\n\nplt.rcParams['font.size'] = 12\nsns.set_style(\"dark\")\nwarnings.filterwarnings('ignore')","metadata":{"execution":{"iopub.status.busy":"2022-08-25T03:05:11.848277Z","iopub.execute_input":"2022-08-25T03:05:11.848647Z","iopub.status.idle":"2022-08-25T03:05:17.740729Z","shell.execute_reply.started":"2022-08-25T03:05:11.848608Z","shell.execute_reply":"2022-08-25T03:05:17.73975Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"image_Path = \"/kaggle/input/mayo-clinic-strip-ai/Images\"","metadata":{"execution":{"iopub.status.busy":"2022-08-25T03:05:26.375168Z","iopub.execute_input":"2022-08-25T03:05:26.376032Z","iopub.status.idle":"2022-08-25T03:05:26.380786Z","shell.execute_reply.started":"2022-08-25T03:05:26.375964Z","shell.execute_reply":"2022-08-25T03:05:26.379608Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"data = pd.read_csv(\"/kaggle/input/mayo-clinic-strip-ai/train.csv\")\ndata.head ()","metadata":{"execution":{"iopub.status.busy":"2022-08-25T03:05:34.404646Z","iopub.execute_input":"2022-08-25T03:05:34.405219Z","iopub.status.idle":"2022-08-25T03:05:34.441097Z","shell.execute_reply.started":"2022-08-25T03:05:34.405171Z","shell.execute_reply":"2022-08-25T03:05:34.440013Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"data = pd.read_csv(\"/kaggle/input/mayo-clinic-strip-ai/test.csv\")\ndata.head ()","metadata":{"execution":{"iopub.status.busy":"2022-08-25T03:05:37.477318Z","iopub.execute_input":"2022-08-25T03:05:37.477762Z","iopub.status.idle":"2022-08-25T03:05:37.50119Z","shell.execute_reply.started":"2022-08-25T03:05:37.477723Z","shell.execute_reply":"2022-08-25T03:05:37.50024Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"data = pd.read_csv(\"/kaggle/input/mayo-clinic-strip-ai/other.csv\")\ndata.head ()","metadata":{"execution":{"iopub.status.busy":"2022-08-25T03:05:40.627863Z","iopub.execute_input":"2022-08-25T03:05:40.628368Z","iopub.status.idle":"2022-08-25T03:05:40.652719Z","shell.execute_reply.started":"2022-08-25T03:05:40.628325Z","shell.execute_reply":"2022-08-25T03:05:40.651749Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"data = pd.read_csv(\"/kaggle/input/mayo-clinic-strip-ai/train.csv\")\ndata.head ()","metadata":{"execution":{"iopub.status.busy":"2022-08-25T03:06:03.332539Z","iopub.execute_input":"2022-08-25T03:06:03.332899Z","iopub.status.idle":"2022-08-25T03:06:03.349527Z","shell.execute_reply.started":"2022-08-25T03:06:03.332868Z","shell.execute_reply":"2022-08-25T03:06:03.348474Z"},"trusted":true},"execution_count":null,"outputs":[]}]}