{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.7.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":45533,"databundleVersionId":5748852,"sourceType":"competition"}],"dockerImageVersionId":30458,"isInternetEnabled":false,"language":"python","sourceType":"notebook","isGpuEnabled":false}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"markdown","source":"This is the sample submission notebook to validate the usage of API.","metadata":{}},{"cell_type":"code","source":"import pandas as pd\n\nimport jo_wilder\nenv = jo_wilder.make_env()\niter_test = env.iter_test()","metadata":{"execution":{"iopub.status.busy":"2023-11-28T20:02:47.302800Z","iopub.execute_input":"2023-11-28T20:02:47.303912Z","iopub.status.idle":"2023-11-28T20:02:47.362620Z","shell.execute_reply.started":"2023-11-28T20:02:47.303872Z","shell.execute_reply":"2023-11-28T20:02:47.361079Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"iter_test","metadata":{"execution":{"iopub.status.busy":"2023-11-28T20:01:32.330391Z","iopub.execute_input":"2023-11-28T20:01:32.330766Z","iopub.status.idle":"2023-11-28T20:01:32.337946Z","shell.execute_reply.started":"2023-11-28T20:01:32.330735Z","shell.execute_reply":"2023-11-28T20:01:32.336790Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"counter = 0\n# The API will deliver two dataframes in this specific order,\n# for every session+level grouping (one group per session for each checkpoint)\nfor (test, sample_submission) in iter_test:\n    print(test)\n    if counter == 0:\n#         print(sample_submission.head())\n        print(test.head())\n        print(test.shape)\n        \n    ## users make predictions here using the test data\n    sample_submission['correct'] = 0\n    \n    ## env.predict appends the session+level sample_submission to the overall\n    ## submission\n#     env.predict(sample_submission)\n#     counter += 1","metadata":{"execution":{"iopub.status.busy":"2023-11-28T20:02:39.226213Z","iopub.execute_input":"2023-11-28T20:02:39.226562Z","iopub.status.idle":"2023-11-28T20:02:39.234069Z","shell.execute_reply.started":"2023-11-28T20:02:39.226532Z","shell.execute_reply":"2023-11-28T20:02:39.233060Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}