{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.10.12","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"},"kaggle":{"accelerator":"none","dataSources":[{"sourceId":59093,"databundleVersionId":7469972,"sourceType":"competition"}],"dockerImageVersionId":30635,"isInternetEnabled":true,"language":"python","sourceType":"notebook","isGpuEnabled":false}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"import pandas as pd\nfrom pathlib import Path","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2024-01-16T18:03:09.490928Z","iopub.execute_input":"2024-01-16T18:03:09.491368Z","iopub.status.idle":"2024-01-16T18:03:09.496905Z","shell.execute_reply.started":"2024-01-16T18:03:09.491333Z","shell.execute_reply":"2024-01-16T18:03:09.495722Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"data_dir = Path(\"/kaggle/input/hms-harmful-brain-activity-classification\")\n\neeg_ids_as_parquet = set([int(_path.stem) for _path in data_dir.glob(\"train_eegs/*.parquet\")])\neeg_ids_in_csv = set(pd.read_csv(data_dir / \"train.csv\")[\"eeg_id\"].to_list())","metadata":{"execution":{"iopub.status.busy":"2024-01-16T18:03:09.502581Z","iopub.execute_input":"2024-01-16T18:03:09.503219Z","iopub.status.idle":"2024-01-16T18:03:09.814863Z","shell.execute_reply.started":"2024-01-16T18:03:09.503184Z","shell.execute_reply":"2024-01-16T18:03:09.813789Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"print(f\"eeg_ids provided as parquet file but not in train.csv: {len(set(eeg_ids_as_parquet) - set(eeg_ids_in_csv))}\")","metadata":{"execution":{"iopub.status.busy":"2024-01-16T18:03:09.817147Z","iopub.execute_input":"2024-01-16T18:03:09.817622Z","iopub.status.idle":"2024-01-16T18:03:09.829157Z","shell.execute_reply.started":"2024-01-16T18:03:09.817569Z","shell.execute_reply":"2024-01-16T18:03:09.827792Z"},"trusted":true},"execution_count":null,"outputs":[]}]}