{"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":"import pandas as pd\n\ny_pred_final = [[0.6165322 ],\n [0.58640236],\n [0.4971151 ],\n [0.5019761 ],\n [0.5997576 ],\n [0.57956463],\n [0.5738496 ],\n [0.63216007],\n [0.5724483 ],\n [0.53937215],\n [0.56800044],\n [0.50228083],\n [0.6079527 ],\n [0.5081887 ],\n [0.50012374],\n [0.49977726],\n [0.501428  ],\n [0.50888914],\n [0.48869643],\n [0.49378428],\n [0.48974982],\n [0.4845357 ],\n [0.5114134 ],\n [0.4911342 ],\n [0.48813763],\n [0.50334907],\n [0.49524227],\n [0.48749876],\n [0.49653763],\n [0.5001523 ],\n [0.4988492 ],\n [0.4910848 ],\n [0.501881  ],\n [0.48845026],\n [0.5084366 ],\n [0.48300707],\n [0.50229406],\n [0.49242106],\n [0.5514736 ],\n [0.48747385],\n [0.5158133 ],\n [0.4921757 ],\n [0.52889735],\n [0.49002138],\n [0.4959559 ],\n [0.49447787],\n [0.5082381 ],\n [0.49450946],\n [0.5024773 ],\n [0.5084077 ],\n [0.60233307],\n [0.55959904],\n [0.5977588 ],\n [0.59408635],\n [0.55726826],\n [0.6295617 ],\n [0.6263069 ],\n [0.5520878 ],\n [0.6250029 ],\n [0.56432456],\n [0.50516295],\n [0.49877504],\n [0.4982482 ],\n [0.5362271 ],\n [0.606656  ],\n [0.60515136],\n [0.5828635 ],\n [0.588209  ],\n [0.55231154],\n [0.5999524 ],\n [0.5818498 ],\n [0.60136753],\n [0.589177  ],\n [0.573055  ],\n [0.5799902 ],\n [0.5716944 ],\n [0.5593755 ],\n [0.5797691 ],\n [0.54541236],\n [0.49781844],\n [0.48018306],\n [0.50378865],\n [0.5205465 ],\n [0.51803637],\n [0.49974832],\n [0.49953797],\n [0.51519495],]","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2021-08-19T23:59:56.319572Z","iopub.execute_input":"2021-08-19T23:59:56.319885Z","iopub.status.idle":"2021-08-19T23:59:56.329726Z","shell.execute_reply.started":"2021-08-19T23:59:56.319857Z","shell.execute_reply":"2021-08-19T23:59:56.328993Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"submission = pd.read_csv(\"../input/rsna-miccai-brain-tumor-radiogenomic-classification/sample_submission.csv\", dtype=str, index_col=\"BraTS21ID\")\nsubmission[\"MGMT_value\"] = [1.0 for _ in range(len(submission))]\n\nfor i in range(len(submission)):\n    try:\n        submission[\"MGMT_value\"].iloc[i] = y_pred_final[i][0]\n    except Exception as e:\n        print(e)\n\nsubmission[\"MGMT_value\"].to_csv(\"submission.csv\")","metadata":{"execution":{"iopub.status.busy":"2021-08-20T00:04:30.652229Z","iopub.execute_input":"2021-08-20T00:04:30.652596Z","iopub.status.idle":"2021-08-20T00:04:30.672916Z","shell.execute_reply.started":"2021-08-20T00:04:30.652562Z","shell.execute_reply":"2021-08-20T00:04:30.671834Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"submission","metadata":{"execution":{"iopub.status.busy":"2021-08-20T00:04:33.964141Z","iopub.execute_input":"2021-08-20T00:04:33.964492Z","iopub.status.idle":"2021-08-20T00:04:33.974951Z","shell.execute_reply.started":"2021-08-20T00:04:33.964463Z","shell.execute_reply":"2021-08-20T00:04:33.974097Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}