{"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 numpy as np\nimport pandas as pd","metadata":{"execution":{"iopub.status.busy":"2023-11-09T00:42:44.208256Z","iopub.execute_input":"2023-11-09T00:42:44.208886Z","iopub.status.idle":"2023-11-09T00:42:44.218160Z","shell.execute_reply.started":"2023-11-09T00:42:44.208851Z","shell.execute_reply":"2023-11-09T00:42:44.217101Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"sample_submission_path = '/kaggle/input/predict-ai-model-runtime/sample_submission.csv'\ndf = pd.read_csv(sample_submission_path)\ndf","metadata":{"execution":{"iopub.status.busy":"2023-11-09T00:42:44.223596Z","iopub.execute_input":"2023-11-09T00:42:44.224354Z","iopub.status.idle":"2023-11-09T00:42:44.255737Z","shell.execute_reply.started":"2023-11-09T00:42:44.224324Z","shell.execute_reply":"2023-11-09T00:42:44.254744Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"def generate_random_config():\n    return \";\".join(map(str, np.random.choice(range(10), 5, replace=False)))\n\nnp.random.seed(1)\nbaseline_submission = pd.DataFrame({\n    'ID': df['ID'],\n    'TopConfigs': [generate_random_config() for _ in range(len(df))]\n})\n\nbaseline_submission","metadata":{"execution":{"iopub.status.busy":"2023-11-09T00:42:44.256980Z","iopub.execute_input":"2023-11-09T00:42:44.257299Z","iopub.status.idle":"2023-11-09T00:42:44.308357Z","shell.execute_reply.started":"2023-11-09T00:42:44.257271Z","shell.execute_reply":"2023-11-09T00:42:44.307305Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"baseline_submission.to_csv('submission.csv', index=False)","metadata":{"execution":{"iopub.status.busy":"2023-11-09T00:42:44.310616Z","iopub.execute_input":"2023-11-09T00:42:44.310939Z","iopub.status.idle":"2023-11-09T00:42:44.319705Z","shell.execute_reply.started":"2023-11-09T00:42:44.310911Z","shell.execute_reply":"2023-11-09T00:42:44.318858Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}