{"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":"markdown","source":"## This notebook is for verifying that sequence_id 435344989 is not found.","metadata":{"execution":{"iopub.status.busy":"2023-05-14T06:01:28.873355Z","iopub.execute_input":"2023-05-14T06:01:28.873977Z","iopub.status.idle":"2023-05-14T06:01:29.036392Z","shell.execute_reply.started":"2023-05-14T06:01:28.873936Z","shell.execute_reply":"2023-05-14T06:01:29.035026Z"}}},{"cell_type":"code","source":"import os\nimport numpy as np\nfrom tqdm import tqdm\nimport glob\nimport pandas as pd\n\nINPUT_PATH = \"../input/asl-fingerspelling/\"\nTRAIN_DF_PATH = os.path.join(INPUT_PATH, \"train.csv\")\nSPPML_DF_PATH = os.path.join(INPUT_PATH, \"supplemental_metadata.csv\")\n\nTRAIN_DATA_PATH = os.path.join(INPUT_PATH, \"train_landmarks\")\nSPPML_DATA_PATH = os.path.join(INPUT_PATH, \"supplemental_landmarks\")\n\nsequence_id = 435344989\n","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2023-05-14T06:43:29.828667Z","iopub.execute_input":"2023-05-14T06:43:29.829067Z","iopub.status.idle":"2023-05-14T06:43:29.835697Z","shell.execute_reply.started":"2023-05-14T06:43:29.829031Z","shell.execute_reply":"2023-05-14T06:43:29.834868Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"sppml_df = pd.read_csv(SPPML_DF_PATH)\nsequence_info = sppml_df.query(\"sequence_id==@sequence_id\").iloc[0]\nfile_id = sequence_info.file_id\nprint(sequence_info)\nprint(f\"file_id:{file_id}\")\n","metadata":{"execution":{"iopub.status.busy":"2023-05-14T06:43:29.852698Z","iopub.execute_input":"2023-05-14T06:43:29.853321Z","iopub.status.idle":"2023-05-14T06:43:29.932301Z","shell.execute_reply.started":"2023-05-14T06:43:29.853286Z","shell.execute_reply":"2023-05-14T06:43:29.931226Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"# load parquet\nsequences_path = os.path.join(\"/kaggle/input/asl-fingerspelling/supplemental_landmarks\",str(file_id)+\".parquet\")\nsequences = pd.read_parquet(sequences_path)\n","metadata":{"execution":{"iopub.status.busy":"2023-05-14T06:43:29.93448Z","iopub.execute_input":"2023-05-14T06:43:29.934908Z","iopub.status.idle":"2023-05-14T06:43:32.538481Z","shell.execute_reply.started":"2023-05-14T06:43:29.934869Z","shell.execute_reply":"2023-05-14T06:43:32.537488Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"sequence = sequences[sequences.index == sequence_id]\nprint(sequence.shape)","metadata":{"execution":{"iopub.status.busy":"2023-05-14T06:43:32.540657Z","iopub.execute_input":"2023-05-14T06:43:32.541157Z","iopub.status.idle":"2023-05-14T06:43:32.547816Z","shell.execute_reply.started":"2023-05-14T06:43:32.54111Z","shell.execute_reply":"2023-05-14T06:43:32.546631Z"},"trusted":true},"execution_count":null,"outputs":[]}]}