{"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":"#install dependencies","metadata":{"execution":{"iopub.status.busy":"2023-02-13T05:06:52.351125Z","iopub.execute_input":"2023-02-13T05:06:52.354092Z","iopub.status.idle":"2023-02-13T05:06:52.383006Z","shell.execute_reply.started":"2023-02-13T05:06:52.353617Z","shell.execute_reply":"2023-02-13T05:06:52.381922Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#import libraies\nimport pandas as pd\nimport numpy as np\nimport matplotlib.pyplot as plt\nimport pydicom\nimport glob\nimport cv2","metadata":{"execution":{"iopub.status.busy":"2023-02-13T05:06:52.385238Z","iopub.execute_input":"2023-02-13T05:06:52.386418Z","iopub.status.idle":"2023-02-13T05:06:52.747574Z","shell.execute_reply.started":"2023-02-13T05:06:52.386368Z","shell.execute_reply":"2023-02-13T05:06:52.746358Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#declare paths\nTRAIN_PATH = '/kaggle/input/rsna-breast-cancer-detection/train.csv'\nTRAIN_IMG_PATH = '/kaggle/input/rsna-breast-cancer-detection/train_images'\nTEST_PATH = '/kaggle/input/rsna-breast-cancer-detection/test.csv'\nTEST_IMG_PATH = '/kaggle/input/rsna-breast-cancer-detection/test_images'\nSUBMISSION_PATH = '/kaggle/input/rsna-breast-cancer-detection/sample_submission.csv'","metadata":{"execution":{"iopub.status.busy":"2023-02-13T05:06:52.749188Z","iopub.execute_input":"2023-02-13T05:06:52.749567Z","iopub.status.idle":"2023-02-13T05:06:52.75525Z","shell.execute_reply.started":"2023-02-13T05:06:52.749534Z","shell.execute_reply":"2023-02-13T05:06:52.754325Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#load data\ntrain = pd.read_csv(TRAIN_PATH)\ntrain = pd.read_csv(TRAIN_PATH)","metadata":{"execution":{"iopub.status.busy":"2023-02-13T05:06:52.756804Z","iopub.execute_input":"2023-02-13T05:06:52.757384Z","iopub.status.idle":"2023-02-13T05:06:53.000007Z","shell.execute_reply.started":"2023-02-13T05:06:52.757349Z","shell.execute_reply":"2023-02-13T05:06:52.99852Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train = train.drop_duplicates()\ntrain.head()","metadata":{"execution":{"iopub.status.busy":"2023-02-13T05:06:53.003477Z","iopub.execute_input":"2023-02-13T05:06:53.004046Z","iopub.status.idle":"2023-02-13T05:06:53.092228Z","shell.execute_reply.started":"2023-02-13T05:06:53.003994Z","shell.execute_reply":"2023-02-13T05:06:53.09057Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#drop duplicates on basis of patient and cancer","metadata":{"execution":{"iopub.status.busy":"2023-02-13T05:06:53.093657Z","iopub.execute_input":"2023-02-13T05:06:53.094033Z","iopub.status.idle":"2023-02-13T05:06:53.099474Z","shell.execute_reply.started":"2023-02-13T05:06:53.093998Z","shell.execute_reply":"2023-02-13T05:06:53.098003Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#build images conversion pipelins","metadata":{"execution":{"iopub.status.busy":"2023-02-13T05:06:53.101111Z","iopub.execute_input":"2023-02-13T05:06:53.101652Z","iopub.status.idle":"2023-02-13T05:06:53.119373Z","shell.execute_reply.started":"2023-02-13T05:06:53.101601Z","shell.execute_reply":"2023-02-13T05:06:53.11771Z"},"trusted":true},"execution_count":null,"outputs":[]}]}