{"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"}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"# This Python 3 environment comes with many helpful analytics libraries installed\n# It is defined by the kaggle/python Docker image: https://github.com/kaggle/docker-python\n# For example, here's several helpful packages to load\n\nimport numpy as np # linear algebra\nimport pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)\n\n# Input data files are available in the read-only \"../input/\" directory\n# For example, running this (by clicking run or pressing Shift+Enter) will list all files under the input directory\n\nimport os\nfor dirname, _, filenames in os.walk('/kaggle/input'):\n    for filename in filenames:\n        print(os.path.join(dirname, filename))\n\n# You can write up to 20GB to the current directory (/kaggle/working/) that gets preserved as output when you create a version using \"Save & Run All\" \n# You can also write temporary files to /kaggle/temp/, but they won't be saved outside of the current session","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2023-09-06T13:33:44.915208Z","iopub.execute_input":"2023-09-06T13:33:44.915735Z","iopub.status.idle":"2023-09-06T13:33:45.479976Z","shell.execute_reply.started":"2023-09-06T13:33:44.915689Z","shell.execute_reply":"2023-09-06T13:33:45.478705Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df_train_events = pd.read_csv('/kaggle/input/child-mind-institute-detect-sleep-states/train_events.csv')","metadata":{"execution":{"iopub.status.busy":"2023-09-06T13:33:46.986100Z","iopub.execute_input":"2023-09-06T13:33:46.987029Z","iopub.status.idle":"2023-09-06T13:33:47.042565Z","shell.execute_reply.started":"2023-09-06T13:33:46.986992Z","shell.execute_reply":"2023-09-06T13:33:47.041577Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df_train_events","metadata":{"execution":{"iopub.status.busy":"2023-09-06T13:33:49.959580Z","iopub.execute_input":"2023-09-06T13:33:49.960910Z","iopub.status.idle":"2023-09-06T13:33:49.998397Z","shell.execute_reply.started":"2023-09-06T13:33:49.960804Z","shell.execute_reply":"2023-09-06T13:33:49.997145Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df_train_events.series_id.value_counts()","metadata":{"execution":{"iopub.status.busy":"2023-09-06T13:33:54.145887Z","iopub.execute_input":"2023-09-06T13:33:54.146336Z","iopub.status.idle":"2023-09-06T13:33:54.169236Z","shell.execute_reply.started":"2023-09-06T13:33:54.146301Z","shell.execute_reply":"2023-09-06T13:33:54.167956Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df_train_events[df_train_events.series_id=='10469f6765bf']","metadata":{"execution":{"iopub.status.busy":"2023-09-06T13:33:56.969879Z","iopub.execute_input":"2023-09-06T13:33:56.970343Z","iopub.status.idle":"2023-09-06T13:33:56.998349Z","shell.execute_reply.started":"2023-09-06T13:33:56.970310Z","shell.execute_reply":"2023-09-06T13:33:56.996859Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df_test_series = pd.read_parquet('/kaggle/input/child-mind-institute-detect-sleep-states/test_series.parquet')","metadata":{"execution":{"iopub.status.busy":"2023-09-06T13:38:22.236449Z","iopub.execute_input":"2023-09-06T13:38:22.236882Z","iopub.status.idle":"2023-09-06T13:38:22.565743Z","shell.execute_reply.started":"2023-09-06T13:38:22.236847Z","shell.execute_reply":"2023-09-06T13:38:22.564172Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df_test_series","metadata":{"execution":{"iopub.status.busy":"2023-09-06T13:38:34.681178Z","iopub.execute_input":"2023-09-06T13:38:34.682648Z","iopub.status.idle":"2023-09-06T13:38:34.705137Z","shell.execute_reply.started":"2023-09-06T13:38:34.682580Z","shell.execute_reply":"2023-09-06T13:38:34.703505Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df_test_series[df_test_series.series_id=='038441c925bb'].plot(x='step', y='anglez')","metadata":{"execution":{"iopub.status.busy":"2023-09-06T13:49:20.380275Z","iopub.execute_input":"2023-09-06T13:49:20.380713Z","iopub.status.idle":"2023-09-06T13:49:20.732219Z","shell.execute_reply.started":"2023-09-06T13:49:20.380682Z","shell.execute_reply":"2023-09-06T13:49:20.730677Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df_test_series[df_test_series.series_id=='038441c925bb'].plot(x='step', y='enmo')","metadata":{"execution":{"iopub.status.busy":"2023-09-06T13:49:41.771927Z","iopub.execute_input":"2023-09-06T13:49:41.772383Z","iopub.status.idle":"2023-09-06T13:49:42.121145Z","shell.execute_reply.started":"2023-09-06T13:49:41.772350Z","shell.execute_reply":"2023-09-06T13:49:42.119708Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df_test_series.series_id.value_counts()","metadata":{"execution":{"iopub.status.busy":"2023-09-06T13:46:05.432017Z","iopub.execute_input":"2023-09-06T13:46:05.432473Z","iopub.status.idle":"2023-09-06T13:46:05.443518Z","shell.execute_reply.started":"2023-09-06T13:46:05.432436Z","shell.execute_reply":"2023-09-06T13:46:05.442072Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df_sample_submit = pd.read_csv('/kaggle/input/child-mind-institute-detect-sleep-states/sample_submission.csv')","metadata":{"execution":{"iopub.status.busy":"2023-09-06T13:39:25.959563Z","iopub.execute_input":"2023-09-06T13:39:25.959971Z","iopub.status.idle":"2023-09-06T13:39:25.972852Z","shell.execute_reply.started":"2023-09-06T13:39:25.959940Z","shell.execute_reply":"2023-09-06T13:39:25.971909Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df_sample_submit","metadata":{"execution":{"iopub.status.busy":"2023-09-06T13:39:29.127025Z","iopub.execute_input":"2023-09-06T13:39:29.127436Z","iopub.status.idle":"2023-09-06T13:39:29.143367Z","shell.execute_reply.started":"2023-09-06T13:39:29.127404Z","shell.execute_reply":"2023-09-06T13:39:29.142009Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df_train_series = pd.read_parquet('/kaggle/input/child-mind-institute-detect-sleep-states/train_series.parquet')","metadata":{"execution":{"iopub.status.busy":"2023-09-06T13:23:42.201384Z","iopub.execute_input":"2023-09-06T13:23:42.201763Z","iopub.status.idle":"2023-09-06T13:24:47.464361Z","shell.execute_reply.started":"2023-09-06T13:23:42.201733Z","shell.execute_reply":"2023-09-06T13:24:47.463390Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df_train_series","metadata":{"execution":{"iopub.status.busy":"2023-09-06T13:24:56.511396Z","iopub.execute_input":"2023-09-06T13:24:56.511818Z","iopub.status.idle":"2023-09-06T13:24:56.528360Z","shell.execute_reply.started":"2023-09-06T13:24:56.511768Z","shell.execute_reply":"2023-09-06T13:24:56.527184Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df_train_series[df_train_series.series_id=='038441c925bb']","metadata":{"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}],"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"}}