{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.12.12","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"},"kaggle":{"accelerator":"none","dataSources":[{"sourceType":"competition","sourceId":11848,"databundleVersionId":862157}],"dockerImageVersionId":31328,"isInternetEnabled":true,"language":"python","sourceType":"notebook","isGpuEnabled":false}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"!git clone https://github.com/mostafaayman646/Histopathologic-Cancer-Detection.git","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","trusted":true,"execution":{"iopub.status.busy":"2026-05-02T20:25:23.20988Z","iopub.execute_input":"2026-05-02T20:25:23.210116Z","iopub.status.idle":"2026-05-02T20:25:24.414536Z","shell.execute_reply.started":"2026-05-02T20:25:23.210088Z","shell.execute_reply":"2026-05-02T20:25:24.41322Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"%cd /kaggle/working/Histopathologic-Cancer-Detection\n!git pull\n%cd /kaggle/working/","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2026-05-02T20:29:09.437624Z","iopub.execute_input":"2026-05-02T20:29:09.438011Z","iopub.status.idle":"2026-05-02T20:29:09.756745Z","shell.execute_reply.started":"2026-05-02T20:29:09.43797Z","shell.execute_reply":"2026-05-02T20:29:09.755374Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"import pandas as pd\nfrom pathlib import Path\n\ntest_dir = Path('/kaggle/input/competitions/histopathologic-cancer-detection/test')\nids = [p.stem for p in test_dir.glob('*.tif')]\n\ndummy_csv = '/kaggle/working/test_dummy_labels.csv'\npd.DataFrame({'id': ids, 'label': 0}).to_csv(dummy_csv, index=False)\nprint(f'Dummy CSV created: {len(ids)} images')","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2026-05-02T20:34:49.983494Z","iopub.execute_input":"2026-05-02T20:34:49.983875Z","iopub.status.idle":"2026-05-02T20:34:52.432903Z","shell.execute_reply.started":"2026-05-02T20:34:49.983837Z","shell.execute_reply":"2026-05-02T20:34:52.431865Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"!python /kaggle/working/Histopathologic-Cancer-Detection/data_handler.py \\\n    --csv /kaggle/working/test_dummy_labels.csv \\\n    --images /kaggle/input/competitions/histopathologic-cancer-detection/test \\\n    --output_dir /kaggle/working/ \\\n    --samples -1 \\\n    --features dog color glcm lbp lbglcm glrlm sfta","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2026-05-02T20:35:08.773583Z","iopub.execute_input":"2026-05-02T20:35:08.773947Z","iopub.status.idle":"2026-05-02T21:16:00.222032Z","shell.execute_reply.started":"2026-05-02T20:35:08.773915Z","shell.execute_reply":"2026-05-02T21:16:00.220715Z"}},"outputs":[],"execution_count":null}]}