{"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\n\nimport jo_wilder\nenv = jo_wilder.make_env()\niter_test = env.iter_test()","metadata":{"execution":{"iopub.status.busy":"2023-03-25T05:36:17.558685Z","iopub.execute_input":"2023-03-25T05:36:17.559318Z","iopub.status.idle":"2023-03-25T05:36:17.604978Z","shell.execute_reply.started":"2023-03-25T05:36:17.559277Z","shell.execute_reply":"2023-03-25T05:36:17.604034Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"all_lvgp_at_once_leak = False\n\nfor (test, sample_submission) in iter_test:\n#     n_lvgps_per_sess = test[\"level_group\"].nunique()\n#     if n_lvgps_per_sess > 1:\n#         all_lvgp_at_once_leak = True\n        \n#     if all_lvgp_at_once_leak:\n#         sample_submission['correct'] = 1\n#     else:\n    sample_submission['correct'] = 0\n    \n    env.predict(sample_submission)","metadata":{"execution":{"iopub.status.busy":"2023-03-25T05:38:43.244204Z","iopub.execute_input":"2023-03-25T05:38:43.244607Z","iopub.status.idle":"2023-03-25T05:38:43.323573Z","shell.execute_reply.started":"2023-03-25T05:38:43.244571Z","shell.execute_reply":"2023-03-25T05:38:43.322491Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"print(sample_submission[\"correct\"].mean())","metadata":{"execution":{"iopub.status.busy":"2023-03-25T05:38:43.355240Z","iopub.execute_input":"2023-03-25T05:38:43.355998Z","iopub.status.idle":"2023-03-25T05:38:43.361949Z","shell.execute_reply.started":"2023-03-25T05:38:43.355957Z","shell.execute_reply":"2023-03-25T05:38:43.360881Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}