{"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 torch\noutput = torch.zeros((1, 14, 1024))","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2021-11-19T17:10:05.058709Z","iopub.execute_input":"2021-11-19T17:10:05.059117Z","iopub.status.idle":"2021-11-19T17:10:06.230269Z","shell.execute_reply.started":"2021-11-19T17:10:05.059011Z","shell.execute_reply":"2021-11-19T17:10:06.22925Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import gresearch_crypto\nenv = gresearch_crypto.make_env()\niter_test = env.iter_test()","metadata":{"execution":{"iopub.status.busy":"2021-11-19T17:10:06.232167Z","iopub.execute_input":"2021-11-19T17:10:06.233169Z","iopub.status.idle":"2021-11-19T17:10:06.264113Z","shell.execute_reply.started":"2021-11-19T17:10:06.233112Z","shell.execute_reply":"2021-11-19T17:10:06.263358Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"for test_df, sample_prediction_df in iter_test:\n#     for i in range(14):\n#         sample_prediction_df['Target'][i] = output[0, i, -1].cpu().item()\n    sample_prediction_df['Target'] = output[0, :, -1].data\n    print(sample_prediction_df)\n#     print(sample_prediction_df.dtypes)\n    env.predict(sample_prediction_df)","metadata":{"execution":{"iopub.status.busy":"2021-11-19T17:10:06.265415Z","iopub.execute_input":"2021-11-19T17:10:06.26593Z","iopub.status.idle":"2021-11-19T17:10:06.462489Z","shell.execute_reply.started":"2021-11-19T17:10:06.265896Z","shell.execute_reply":"2021-11-19T17:10:06.461583Z"},"trusted":true},"execution_count":null,"outputs":[]}]}