{"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":"import pandas as pd\nimport numpy as np","metadata":{"execution":{"iopub.status.busy":"2021-06-30T15:42:26.215995Z","iopub.execute_input":"2021-06-30T15:42:26.216489Z","iopub.status.idle":"2021-06-30T15:42:26.22192Z","shell.execute_reply.started":"2021-06-30T15:42:26.216379Z","shell.execute_reply":"2021-06-30T15:42:26.220979Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_labels = pd.read_csv(r\"../input/g2net-gravitational-wave-detection/training_labels.csv\")\ntrain_labels.head()","metadata":{"execution":{"iopub.status.busy":"2021-06-30T15:44:56.715356Z","iopub.execute_input":"2021-06-30T15:44:56.715922Z","iopub.status.idle":"2021-06-30T15:44:57.252383Z","shell.execute_reply.started":"2021-06-30T15:44:56.715885Z","shell.execute_reply":"2021-06-30T15:44:57.251149Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_labels.shape","metadata":{"execution":{"iopub.status.busy":"2021-06-30T16:15:06.965493Z","iopub.execute_input":"2021-06-30T16:15:06.965918Z","iopub.status.idle":"2021-06-30T16:15:06.976127Z","shell.execute_reply.started":"2021-06-30T16:15:06.965883Z","shell.execute_reply":"2021-06-30T16:15:06.975077Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_labels['target'].value_counts()","metadata":{"execution":{"iopub.status.busy":"2021-06-30T16:29:27.96203Z","iopub.execute_input":"2021-06-30T16:29:27.963394Z","iopub.status.idle":"2021-06-30T16:29:27.990805Z","shell.execute_reply.started":"2021-06-30T16:29:27.96335Z","shell.execute_reply":"2021-06-30T16:29:27.989729Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"e74ad = np.load('../input/g2net-gravitational-wave-detection/train/0/0/0/00000e74ad.npy')\ne74ad","metadata":{"execution":{"iopub.status.busy":"2021-06-30T15:47:48.056333Z","iopub.execute_input":"2021-06-30T15:47:48.05674Z","iopub.status.idle":"2021-06-30T15:47:48.071109Z","shell.execute_reply.started":"2021-06-30T15:47:48.056706Z","shell.execute_reply":"2021-06-30T15:47:48.069656Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"e74ad.shape","metadata":{"execution":{"iopub.status.busy":"2021-06-30T15:47:56.748999Z","iopub.execute_input":"2021-06-30T15:47:56.74941Z","iopub.status.idle":"2021-06-30T15:47:56.755054Z","shell.execute_reply.started":"2021-06-30T15:47:56.749375Z","shell.execute_reply":"2021-06-30T15:47:56.754254Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"f4945 = np.load('../input/g2net-gravitational-wave-detection/train/0/0/0/00001f4945.npy')\nf4945.shape","metadata":{"execution":{"iopub.status.busy":"2021-06-30T15:48:58.962966Z","iopub.execute_input":"2021-06-30T15:48:58.963371Z","iopub.status.idle":"2021-06-30T15:48:58.992746Z","shell.execute_reply.started":"2021-06-30T15:48:58.963336Z","shell.execute_reply":"2021-06-30T15:48:58.991765Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import itertools\ne74ad_merged = list(itertools.chain(*e74ad))\nlen(e74ad_merged)","metadata":{"execution":{"iopub.status.busy":"2021-06-30T16:00:02.055982Z","iopub.execute_input":"2021-06-30T16:00:02.056418Z","iopub.status.idle":"2021-06-30T16:00:02.065121Z","shell.execute_reply.started":"2021-06-30T16:00:02.056378Z","shell.execute_reply":"2021-06-30T16:00:02.063987Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{"execution":{"iopub.status.busy":"2021-06-30T16:00:10.778831Z","iopub.execute_input":"2021-06-30T16:00:10.779407Z","iopub.status.idle":"2021-06-30T16:00:10.785388Z","shell.execute_reply.started":"2021-06-30T16:00:10.779367Z","shell.execute_reply":"2021-06-30T16:00:10.784176Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}