{"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"},"kaggle":{"accelerator":"none","dataSources":[{"sourceId":59094,"databundleVersionId":7010844,"sourceType":"competition"},{"sourceId":7093189,"sourceType":"datasetVersion","datasetId":4087805}],"dockerImageVersionId":30587,"isInternetEnabled":true,"language":"python","sourceType":"notebook","isGpuEnabled":false}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"markdown","source":"> # Disclaimer:\nI didn't mean to disrespect anyone's intention, and I know you all have done your hard work for</br>\nthis competition and most of competitors are genuinely more skillful than me.\n\n# How I ended up with ensemble only:\n\nI joined this competition at the early stage, but I had forgetten until the day before the deadline.</br>\nI got the reminding notification where I had nothing to submit. So, I tried ensemble the best version</br>\nof top public score notebooks, which are:\n\n* https://www.kaggle.com/code/liudacheldieva/submit-only?scriptVersionId=152457701\n* https://www.kaggle.com/code/nikolenkosergei/pyboost-secret-grandmaster-s-tool-106cac?scriptVersionId=152757460\n\nNormally, when I do it in other competitions, I will end up with being killed out from the medal tier.</br>\nIt seems there's luck on my side. I took the 58th place in the private leaderboard.</br>\n","metadata":{}},{"cell_type":"code","source":"import pandas as pd\n\n\nsub_1 = pd.read_csv(\"/kaggle/input/open-problem-ensemble/submission.csv\").set_index(\"id\")\nsub_2 = pd.read_csv(\"/kaggle/input/open-problem-ensemble/submission_Pyboost_max_depth10_ntrees5000_lr001_subsample1_colsample035_n_components50.csv\").set_index(\"id\")","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2023-11-30T18:34:24.661147Z","iopub.execute_input":"2023-11-30T18:34:24.661588Z","iopub.status.idle":"2023-11-30T18:34:32.254103Z","shell.execute_reply.started":"2023-11-30T18:34:24.661550Z","shell.execute_reply":"2023-11-30T18:34:32.252866Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"sub = 0.83*sub_1 + 0.17*sub_2","metadata":{"execution":{"iopub.status.busy":"2023-11-30T18:34:32.256080Z","iopub.execute_input":"2023-11-30T18:34:32.256541Z","iopub.status.idle":"2023-11-30T18:34:32.304366Z","shell.execute_reply.started":"2023-11-30T18:34:32.256488Z","shell.execute_reply":"2023-11-30T18:34:32.303302Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"sub\n","metadata":{"execution":{"iopub.status.busy":"2023-11-30T18:34:38.187332Z","iopub.execute_input":"2023-11-30T18:34:38.187722Z","iopub.status.idle":"2023-11-30T18:34:38.219274Z","shell.execute_reply.started":"2023-11-30T18:34:38.187694Z","shell.execute_reply":"2023-11-30T18:34:38.218116Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"sub.to_csv(\"submission.csv\")","metadata":{"execution":{"iopub.status.busy":"2023-11-30T18:34:41.573332Z","iopub.execute_input":"2023-11-30T18:34:41.574024Z","iopub.status.idle":"2023-11-30T18:34:51.043432Z","shell.execute_reply.started":"2023-11-30T18:34:41.573984Z","shell.execute_reply":"2023-11-30T18:34:51.042469Z"},"trusted":true},"execution_count":null,"outputs":[]}]}