{"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":"markdown","source":"# This is mean ensembling with 3 amazing notebooks\n\nThanks Vuong, XiaFire, Swimmy, Fernando, and Ambros for making their amazing notebooks!","metadata":{}},{"cell_type":"code","source":"import numpy as np\nimport pandas as pd\nimport matplotlib.pyplot as plt\nimport seaborn as sns\nimport gc\n\nweights = [0.9357, 0.0459, 0.0184]","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2022-08-27T00:34:53.735488Z","iopub.execute_input":"2022-08-27T00:34:53.736440Z","iopub.status.idle":"2022-08-27T00:34:54.826821Z","shell.execute_reply.started":"2022-08-27T00:34:53.736353Z","shell.execute_reply":"2022-08-27T00:34:54.825706Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"sub = pd.read_csv('../input/open-problems-multimodal/sample_submission.csv')","metadata":{"execution":{"iopub.status.busy":"2022-08-27T00:34:54.831238Z","iopub.execute_input":"2022-08-27T00:34:54.831557Z","iopub.status.idle":"2022-08-27T00:35:11.293071Z","shell.execute_reply.started":"2022-08-27T00:34:54.831533Z","shell.execute_reply":"2022-08-27T00:35:11.292266Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"sub1 = pd.read_csv('../input/msci-preds/submission.csv')\ngc.collect()","metadata":{"execution":{"iopub.status.busy":"2022-08-27T00:35:11.294080Z","iopub.execute_input":"2022-08-27T00:35:11.294296Z","iopub.status.idle":"2022-08-27T00:35:31.422069Z","shell.execute_reply.started":"2022-08-27T00:35:11.294274Z","shell.execute_reply":"2022-08-27T00:35:31.421115Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"sub2 = pd.read_csv('../input/lgbm-baseline-msci-citeseq/submission.csv')\ngc.collect()","metadata":{"execution":{"iopub.status.busy":"2022-08-27T00:35:31.423110Z","iopub.execute_input":"2022-08-27T00:35:31.423374Z","iopub.status.idle":"2022-08-27T00:35:33.669751Z","shell.execute_reply.started":"2022-08-27T00:35:31.423351Z","shell.execute_reply":"2022-08-27T00:35:33.667180Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"sub3 = pd.read_csv('../input/cite-xgboost-v1/submission.csv')\ngc.collect()","metadata":{"execution":{"iopub.status.busy":"2022-08-27T00:35:33.670719Z","iopub.status.idle":"2022-08-27T00:35:33.671020Z","shell.execute_reply.started":"2022-08-27T00:35:33.670877Z","shell.execute_reply":"2022-08-27T00:35:33.670892Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"sub['target'] = weights[0]*sub1['target'] + weights[1]*sub2['target'] + weights[2]*sub3['target']\ngc.collect()","metadata":{"execution":{"iopub.status.busy":"2022-08-27T00:35:33.672203Z","iopub.status.idle":"2022-08-27T00:35:33.672693Z","shell.execute_reply.started":"2022-08-27T00:35:33.672441Z","shell.execute_reply":"2022-08-27T00:35:33.672461Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"del sub1, sub2, sub3, weights\ngc.collect()","metadata":{"execution":{"iopub.status.busy":"2022-08-27T00:35:33.674521Z","iopub.status.idle":"2022-08-27T00:35:33.674845Z","shell.execute_reply.started":"2022-08-27T00:35:33.674690Z","shell.execute_reply":"2022-08-27T00:35:33.674704Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"sub = sub.round(6)\ngc.collect()","metadata":{"execution":{"iopub.status.busy":"2022-08-27T00:35:33.676139Z","iopub.status.idle":"2022-08-27T00:35:33.676453Z","shell.execute_reply.started":"2022-08-27T00:35:33.676293Z","shell.execute_reply":"2022-08-27T00:35:33.676306Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"sub.to_csv('submission.csv', index=False)","metadata":{"execution":{"iopub.status.busy":"2022-08-27T00:35:33.677383Z","iopub.status.idle":"2022-08-27T00:35:33.677669Z","shell.execute_reply.started":"2022-08-27T00:35:33.677527Z","shell.execute_reply":"2022-08-27T00:35:33.677541Z"},"trusted":true},"execution_count":null,"outputs":[]}]}