{"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":"# 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":"2022-09-20T03:30:51.587714Z","iopub.execute_input":"2022-09-20T03:30:51.588568Z","iopub.status.idle":"2022-09-20T03:30:51.604498Z","shell.execute_reply.started":"2022-09-20T03:30:51.588530Z","shell.execute_reply":"2022-09-20T03:30:51.603212Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import numpy as np \nimport pandas as pd \nimport glob","metadata":{"execution":{"iopub.status.busy":"2022-09-20T03:30:51.606090Z","iopub.execute_input":"2022-09-20T03:30:51.606517Z","iopub.status.idle":"2022-09-20T03:30:51.618314Z","shell.execute_reply.started":"2022-09-20T03:30:51.606483Z","shell.execute_reply":"2022-09-20T03:30:51.616938Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"paths = ['../input/lb-t15-msci-multiome-catboostregressor/submission.csv',\n         '../input/blending-of-five-submission/5in1_ensemble.csv'\n       ]","metadata":{"execution":{"iopub.status.busy":"2022-09-18T04:07:30.715437Z","iopub.execute_input":"2022-09-18T04:07:30.716224Z","iopub.status.idle":"2022-09-18T04:07:30.721926Z","shell.execute_reply.started":"2022-09-18T04:07:30.716191Z","shell.execute_reply":"2022-09-18T04:07:30.720511Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"dfs = [pd.read_csv(x) for x in paths]","metadata":{"execution":{"iopub.status.busy":"2022-09-18T04:07:30.723472Z","iopub.execute_input":"2022-09-18T04:07:30.724828Z","iopub.status.idle":"2022-09-18T04:08:36.684937Z","shell.execute_reply.started":"2022-09-18T04:07:30.724787Z","shell.execute_reply":"2022-09-18T04:08:36.683747Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"def std(x):\n    return (x - np.mean(x)) / np.std(x)","metadata":{},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#pred_ensembled = (-1)*0 * std(dfs[0]['target']) + (-1)*0 * std(dfs[1]['target']) + (1)*0 * std(dfs[2]['target']) + (1)*0.001 * std(dfs[3]['target']) + 0.999 * (dfs[4]['target'])\npred_ensembled = 0.3*(dfs[0]['target']) + 0.7* (dfs[1]['target']) ","metadata":{"execution":{"iopub.status.busy":"2022-09-18T04:08:43.461669Z","iopub.execute_input":"2022-09-18T04:08:43.462084Z","iopub.status.idle":"2022-09-18T04:08:43.850431Z","shell.execute_reply.started":"2022-09-18T04:08:43.462051Z","shell.execute_reply":"2022-09-18T04:08:43.849171Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"submit = pd.read_csv('../input/open-problems-multimodal/sample_submission.csv')\nsubmit['target'] = pred_ensembled\nsubmit.to_csv('6in1_ensemble.csv', index=False)","metadata":{"execution":{"iopub.status.busy":"2022-09-18T04:08:45.363715Z","iopub.execute_input":"2022-09-18T04:08:45.364110Z","iopub.status.idle":"2022-09-18T04:09:05.521257Z","shell.execute_reply.started":"2022-09-18T04:08:45.364078Z","shell.execute_reply":"2022-09-18T04:09:05.520293Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{"execution":{"iopub.status.busy":"2022-09-18T04:09:05.523124Z","iopub.execute_input":"2022-09-18T04:09:05.523501Z","iopub.status.idle":"2022-09-18T04:09:05.807929Z","shell.execute_reply.started":"2022-09-18T04:09:05.523470Z","shell.execute_reply":"2022-09-18T04:09:05.806326Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{"execution":{"iopub.status.busy":"2022-09-18T04:09:05.809804Z","iopub.execute_input":"2022-09-18T04:09:05.813607Z","iopub.status.idle":"2022-09-18T04:11:41.986664Z","shell.execute_reply.started":"2022-09-18T04:09:05.813562Z","shell.execute_reply":"2022-09-18T04:11:41.985384Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}