{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.7.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":37077,"databundleVersionId":4333111,"sourceType":"competition"}],"dockerImageVersionId":30301,"isInternetEnabled":false,"language":"python","sourceType":"notebook","isGpuEnabled":false}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"import pandas as pd\nimport numpy as np \nimport seaborn as sns\nfrom sklearn import preprocessing\nimport matplotlib.pyplot as plt\n%matplotlib inline\n","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2022-11-26T03:54:03.496473Z","iopub.execute_input":"2022-11-26T03:54:03.496988Z","iopub.status.idle":"2022-11-26T03:54:03.503808Z","shell.execute_reply.started":"2022-11-26T03:54:03.496942Z","shell.execute_reply":"2022-11-26T03:54:03.502864Z"},"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"df=pd.read_csv('/kaggle/input/g2net-detecting-continuous-gravitational-waves/sample_submission.csv')\n","metadata":{"execution":{"iopub.status.busy":"2022-11-26T03:54:03.516088Z","iopub.execute_input":"2022-11-26T03:54:03.516665Z","iopub.status.idle":"2022-11-26T03:54:03.526659Z","shell.execute_reply.started":"2022-11-26T03:54:03.516606Z","shell.execute_reply":"2022-11-26T03:54:03.525939Z"},"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"df1=pd.read_csv('/kaggle/input/g2net-detecting-continuous-gravitational-waves/train_labels.csv')\n","metadata":{"execution":{"iopub.status.busy":"2022-11-26T03:54:03.538989Z","iopub.execute_input":"2022-11-26T03:54:03.539452Z","iopub.status.idle":"2022-11-26T03:54:03.546245Z","shell.execute_reply.started":"2022-11-26T03:54:03.539423Z","shell.execute_reply":"2022-11-26T03:54:03.545443Z"},"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"print (df)\n","metadata":{"execution":{"iopub.status.busy":"2022-11-26T03:54:03.570861Z","iopub.execute_input":"2022-11-26T03:54:03.571346Z","iopub.status.idle":"2022-11-26T03:54:03.580345Z","shell.execute_reply.started":"2022-11-26T03:54:03.571316Z","shell.execute_reply":"2022-11-26T03:54:03.579439Z"},"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"print (df1)\n","metadata":{"execution":{"iopub.status.busy":"2022-11-26T03:54:03.585858Z","iopub.execute_input":"2022-11-26T03:54:03.586319Z","iopub.status.idle":"2022-11-26T03:54:03.593548Z","shell.execute_reply.started":"2022-11-26T03:54:03.586289Z","shell.execute_reply":"2022-11-26T03:54:03.592765Z"},"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"df.head()\n","metadata":{"execution":{"iopub.status.busy":"2022-11-26T03:54:03.613864Z","iopub.execute_input":"2022-11-26T03:54:03.61474Z","iopub.status.idle":"2022-11-26T03:54:03.624533Z","shell.execute_reply.started":"2022-11-26T03:54:03.614694Z","shell.execute_reply":"2022-11-26T03:54:03.62357Z"},"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"df1.head()\n","metadata":{"execution":{"iopub.status.busy":"2022-11-26T03:54:03.636679Z","iopub.execute_input":"2022-11-26T03:54:03.63697Z","iopub.status.idle":"2022-11-26T03:54:03.646201Z","shell.execute_reply.started":"2022-11-26T03:54:03.636942Z","shell.execute_reply":"2022-11-26T03:54:03.645073Z"},"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"df.shape\n","metadata":{"execution":{"iopub.status.busy":"2022-11-26T03:54:03.650414Z","iopub.execute_input":"2022-11-26T03:54:03.65074Z","iopub.status.idle":"2022-11-26T03:54:03.656649Z","shell.execute_reply.started":"2022-11-26T03:54:03.65071Z","shell.execute_reply":"2022-11-26T03:54:03.655566Z"},"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"df1.shape\n","metadata":{"execution":{"iopub.status.busy":"2022-11-26T03:54:03.674988Z","iopub.execute_input":"2022-11-26T03:54:03.675438Z","iopub.status.idle":"2022-11-26T03:54:03.680838Z","shell.execute_reply.started":"2022-11-26T03:54:03.67541Z","shell.execute_reply":"2022-11-26T03:54:03.679992Z"},"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"df.dtypes\n","metadata":{"execution":{"iopub.status.busy":"2022-11-26T03:54:03.690773Z","iopub.execute_input":"2022-11-26T03:54:03.691207Z","iopub.status.idle":"2022-11-26T03:54:03.69667Z","shell.execute_reply.started":"2022-11-26T03:54:03.69118Z","shell.execute_reply":"2022-11-26T03:54:03.695982Z"},"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"df1.shape\n","metadata":{"execution":{"iopub.status.busy":"2022-11-26T03:54:03.709934Z","iopub.execute_input":"2022-11-26T03:54:03.710361Z","iopub.status.idle":"2022-11-26T03:54:03.715278Z","shell.execute_reply.started":"2022-11-26T03:54:03.710334Z","shell.execute_reply":"2022-11-26T03:54:03.71443Z"},"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"df.isnull().sum()\n","metadata":{"execution":{"iopub.status.busy":"2022-11-26T03:54:03.722764Z","iopub.execute_input":"2022-11-26T03:54:03.723183Z","iopub.status.idle":"2022-11-26T03:54:03.730983Z","shell.execute_reply.started":"2022-11-26T03:54:03.723156Z","shell.execute_reply":"2022-11-26T03:54:03.729969Z"},"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"df1.isnull().sum()\n","metadata":{"execution":{"iopub.status.busy":"2022-11-26T03:54:03.744701Z","iopub.execute_input":"2022-11-26T03:54:03.744974Z","iopub.status.idle":"2022-11-26T03:54:03.752581Z","shell.execute_reply.started":"2022-11-26T03:54:03.744947Z","shell.execute_reply":"2022-11-26T03:54:03.751667Z"},"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"df.info()\n","metadata":{"execution":{"iopub.status.busy":"2022-11-26T03:54:03.76799Z","iopub.execute_input":"2022-11-26T03:54:03.768264Z","iopub.status.idle":"2022-11-26T03:54:03.789368Z","shell.execute_reply.started":"2022-11-26T03:54:03.768239Z","shell.execute_reply":"2022-11-26T03:54:03.788316Z"},"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"df1.info()\n","metadata":{"execution":{"iopub.status.busy":"2022-11-26T03:54:03.791187Z","iopub.execute_input":"2022-11-26T03:54:03.791502Z","iopub.status.idle":"2022-11-26T03:54:03.805389Z","shell.execute_reply.started":"2022-11-26T03:54:03.791473Z","shell.execute_reply":"2022-11-26T03:54:03.804492Z"},"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"df.describe()\n","metadata":{"execution":{"iopub.status.busy":"2022-11-26T03:54:03.806846Z","iopub.execute_input":"2022-11-26T03:54:03.807194Z","iopub.status.idle":"2022-11-26T03:54:03.825713Z","shell.execute_reply.started":"2022-11-26T03:54:03.807146Z","shell.execute_reply":"2022-11-26T03:54:03.824904Z"},"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"df1.describe()\n","metadata":{"execution":{"iopub.status.busy":"2022-11-26T03:54:03.826762Z","iopub.execute_input":"2022-11-26T03:54:03.827015Z","iopub.status.idle":"2022-11-26T03:54:03.838897Z","shell.execute_reply.started":"2022-11-26T03:54:03.82699Z","shell.execute_reply":"2022-11-26T03:54:03.837946Z"},"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"c=df.corr()\nprint(c)\n","metadata":{"execution":{"iopub.status.busy":"2022-11-26T03:54:34.163272Z","iopub.execute_input":"2022-11-26T03:54:34.16365Z","iopub.status.idle":"2022-11-26T03:54:34.173364Z","shell.execute_reply.started":"2022-11-26T03:54:34.163604Z","shell.execute_reply":"2022-11-26T03:54:34.172145Z"},"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"c1=df1.corr()\nprint(c1)","metadata":{"execution":{"iopub.status.busy":"2022-11-26T03:54:38.182005Z","iopub.execute_input":"2022-11-26T03:54:38.18271Z","iopub.status.idle":"2022-11-26T03:54:38.189667Z","shell.execute_reply.started":"2022-11-26T03:54:38.182676Z","shell.execute_reply":"2022-11-26T03:54:38.188525Z"},"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"sns.heatmap(c)\n","metadata":{"execution":{"iopub.status.busy":"2022-11-26T03:54:42.891797Z","iopub.execute_input":"2022-11-26T03:54:42.892807Z","iopub.status.idle":"2022-11-26T03:54:43.113955Z","shell.execute_reply.started":"2022-11-26T03:54:42.892767Z","shell.execute_reply":"2022-11-26T03:54:43.113005Z"},"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"sns.heatmap(c1)\n","metadata":{"execution":{"iopub.status.busy":"2022-11-26T03:54:56.0019Z","iopub.execute_input":"2022-11-26T03:54:56.002275Z","iopub.status.idle":"2022-11-26T03:54:56.402466Z","shell.execute_reply.started":"2022-11-26T03:54:56.002244Z","shell.execute_reply":"2022-11-26T03:54:56.401683Z"},"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"sns.heatmap(c,annot=True)\n","metadata":{"execution":{"iopub.status.busy":"2022-11-26T03:55:00.316054Z","iopub.execute_input":"2022-11-26T03:55:00.316932Z","iopub.status.idle":"2022-11-26T03:55:00.537272Z","shell.execute_reply.started":"2022-11-26T03:55:00.316896Z","shell.execute_reply":"2022-11-26T03:55:00.536144Z"},"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"sns.heatmap(c1,annot=True)\n","metadata":{"execution":{"iopub.status.busy":"2022-11-26T03:55:07.800951Z","iopub.execute_input":"2022-11-26T03:55:07.801502Z","iopub.status.idle":"2022-11-26T03:55:08.026359Z","shell.execute_reply.started":"2022-11-26T03:55:07.801468Z","shell.execute_reply":"2022-11-26T03:55:08.025356Z"},"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"sns.pairplot(df)\n","metadata":{"execution":{"iopub.status.busy":"2022-11-26T03:55:12.883563Z","iopub.execute_input":"2022-11-26T03:55:12.884812Z","iopub.status.idle":"2022-11-26T03:55:13.126527Z","shell.execute_reply.started":"2022-11-26T03:55:12.884772Z","shell.execute_reply":"2022-11-26T03:55:13.125671Z"},"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"sns.pairplot(df1)\n","metadata":{"execution":{"iopub.status.busy":"2022-11-26T03:54:03.891259Z","iopub.execute_input":"2022-11-26T03:54:03.891543Z","iopub.status.idle":"2022-11-26T03:54:04.181142Z","shell.execute_reply.started":"2022-11-26T03:54:03.891513Z","shell.execute_reply":"2022-11-26T03:54:04.180252Z"},"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"df.to_csv('submission.csv')","metadata":{"execution":{"iopub.status.busy":"2022-11-26T03:55:24.203761Z","iopub.execute_input":"2022-11-26T03:55:24.20415Z","iopub.status.idle":"2022-11-26T03:55:24.22502Z","shell.execute_reply.started":"2022-11-26T03:55:24.204118Z","shell.execute_reply":"2022-11-26T03:55:24.224174Z"},"trusted":true},"outputs":[],"execution_count":null}]}