{"cells":[{"metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","trusted":true},"cell_type":"code","source":"!ls ../input/combining-your-model-with-a-model-without-o-0d991a/","execution_count":null,"outputs":[]},{"metadata":{"_cell_guid":"79c7e3d0-c299-4dcb-8224-4455121ee9b0","_uuid":"d629ff2d2480ee46fbb7e2d37f6b5fab8052498a","trusted":true},"cell_type":"code","source":"import numpy as np # linear algebra\nimport pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)\n\n","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"ba75cec005f475edc957bb9e5fd89b74da9d5e03"},"cell_type":"code","source":"df1 = pd.read_csv('../input/combining-your-model-with-a-model-without-o-0d991a/combining_submission.csv')\ndf2 = pd.read_csv('../input/simple-lightgbm-without-blending/submission.csv')","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"c779bdf4aa845dceeee522eacac0bae463271353"},"cell_type":"code","source":"df2.head()","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"014817e35f9fc7981ee33b8fd169b47ace5a18b7"},"cell_type":"code","source":"df1['target'] = .5*df1['target'] + .5*df2['target']","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"77ed8fe91e09f0bcafa91fece0f8125eb97ef18b"},"cell_type":"code","source":"df1.head()","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"e09468ddc773a317c4aa4c5a1f1472132e8c19b6"},"cell_type":"code","source":"df1.to_csv('ens.csv',index=False)","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"_uuid":"9fbe93991fae5fc466c538eb64da8cce6c466a31"},"cell_type":"code","source":"","execution_count":null,"outputs":[]}],"metadata":{"kernelspec":{"display_name":"Python 3","language":"python","name":"python3"},"language_info":{"name":"python","version":"3.6.6","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"}},"nbformat":4,"nbformat_minor":1}