{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.11.13","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"},"kaggle":{"accelerator":"none","dataSources":[{"sourceId":59156,"databundleVersionId":13719397,"sourceType":"competition"}],"dockerImageVersionId":31089,"isInternetEnabled":false,"language":"python","sourceType":"notebook","isGpuEnabled":false}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"import numpy as np\nimport pandas as pd\nimport os","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","trusted":true,"execution":{"iopub.status.busy":"2025-09-19T05:06:25.783044Z","iopub.execute_input":"2025-09-19T05:06:25.783477Z","iopub.status.idle":"2025-09-19T05:06:26.176606Z","shell.execute_reply.started":"2025-09-19T05:06:25.783441Z","shell.execute_reply":"2025-09-19T05:06:26.175485Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"train_data = pd.read_csv('/kaggle/input/MABe-mouse-behavior-detection/train.csv')\ntest_data = pd.read_csv('/kaggle/input/MABe-mouse-behavior-detection/test.csv')\nsubmit_sample = pd.read_csv('/kaggle/input/MABe-mouse-behavior-detection/sample_submission.csv')","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2025-09-19T05:07:26.218305Z","iopub.execute_input":"2025-09-19T05:07:26.218789Z","iopub.status.idle":"2025-09-19T05:07:26.329215Z","shell.execute_reply.started":"2025-09-19T05:07:26.218739Z","shell.execute_reply":"2025-09-19T05:07:26.327926Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"submit_df = pd.DataFrame()","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2025-09-19T05:06:26.352149Z","iopub.execute_input":"2025-09-19T05:06:26.352580Z","iopub.status.idle":"2025-09-19T05:06:26.360202Z","shell.execute_reply.started":"2025-09-19T05:06:26.352547Z","shell.execute_reply":"2025-09-19T05:06:26.358889Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"mices = ['mouse1', 'mouse2']\nactions = ['submit', 'avoid', 'attack', 'chase', 'sniff', 'mount']","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2025-09-19T05:09:05.999702Z","iopub.execute_input":"2025-09-19T05:09:05.999995Z","iopub.status.idle":"2025-09-19T05:09:06.005543Z","shell.execute_reply.started":"2025-09-19T05:09:05.999975Z","shell.execute_reply":"2025-09-19T05:09:06.004582Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"submit_df['row_id'] = np.arange(0, test_data.shape[0])\nsubmit_df['video_id'] = test_data.video_id\nsubmit_df['agent_id'] = np.random.choice(mices, size = (test_data.shape[0],),  replace=True)\nsubmit_df['target_id'] = np.random.choice(mices, size = (test_data.shape[0], ),  replace=True)\nsubmit_df['action'] = 'attack' #np.random.choice(actions, size = (test_data.shape[0], ),  replace=True)\nsubmit_df['start_frame'] = 0\nsubmit_df['stop_frame'] = 10","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2025-09-19T05:11:37.599333Z","iopub.execute_input":"2025-09-19T05:11:37.599670Z","iopub.status.idle":"2025-09-19T05:11:37.607539Z","shell.execute_reply.started":"2025-09-19T05:11:37.599646Z","shell.execute_reply":"2025-09-19T05:11:37.606189Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"submit_df","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2025-09-19T05:11:37.608903Z","iopub.execute_input":"2025-09-19T05:11:37.609276Z","iopub.status.idle":"2025-09-19T05:11:37.638340Z","shell.execute_reply.started":"2025-09-19T05:11:37.609245Z","shell.execute_reply":"2025-09-19T05:11:37.637208Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"submit_df.to_csv('submission.csv')","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2025-09-19T05:09:59.958515Z","iopub.execute_input":"2025-09-19T05:09:59.958793Z","iopub.status.idle":"2025-09-19T05:09:59.965309Z","shell.execute_reply.started":"2025-09-19T05:09:59.958774Z","shell.execute_reply":"2025-09-19T05:09:59.964297Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"","metadata":{"trusted":true},"outputs":[],"execution_count":null}]}