{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.11.11","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"},"kaggle":{"accelerator":"none","dataSources":[{"sourceId":39763,"databundleVersionId":11756775,"isSourceIdPinned":false,"sourceType":"competition"},{"sourceId":12328662,"sourceType":"datasetVersion","datasetId":7771543},{"sourceId":248204276,"sourceType":"kernelVersion"}],"dockerImageVersionId":31040,"isInternetEnabled":true,"language":"python","sourceType":"notebook","isGpuEnabled":false}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"import numpy as np\nimport pickle\nimport matplotlib.pyplot as plt","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","trusted":true,"execution":{"iopub.status.busy":"2025-07-01T07:47:19.348617Z","iopub.execute_input":"2025-07-01T07:47:19.348808Z","iopub.status.idle":"2025-07-01T07:47:21.574617Z","shell.execute_reply.started":"2025-07-01T07:47:19.348790Z","shell.execute_reply":"2025-07-01T07:47:21.573606Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"test_ensemble = pickle.load(open('/kaggle/input/gwi-ensemble-postprocessing-2/test_ensemble.p', 'br'))\nprint(test_ensemble.shape)\nprint(np.min(test_ensemble))\nprint(np.max(test_ensemble))","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2025-07-01T07:51:56.982065Z","iopub.execute_input":"2025-07-01T07:51:56.982371Z","iopub.status.idle":"2025-07-01T07:51:59.446456Z","shell.execute_reply.started":"2025-07-01T07:51:56.982319Z","shell.execute_reply":"2025-07-01T07:51:59.445618Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"test_preds_labels = pickle.load(open('/kaggle/input/gwi-test-labels/test_preds.p', 'br'))\ntest_kind_labels = np.argmax(test_preds_labels, axis = 1)\nplt.hist(test_kind_labels)","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2025-07-01T07:50:58.057896Z","iopub.execute_input":"2025-07-01T07:50:58.058200Z","iopub.status.idle":"2025-07-01T07:50:58.409436Z","shell.execute_reply.started":"2025-07-01T07:50:58.058178Z","shell.execute_reply":"2025-07-01T07:50:58.408490Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"print(test_kind_labels[0])\nplt.imshow(test_ensemble[0])","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2025-07-01T07:51:20.359008Z","iopub.execute_input":"2025-07-01T07:51:20.359325Z","iopub.status.idle":"2025-07-01T07:51:20.600731Z","shell.execute_reply.started":"2025-07-01T07:51:20.359302Z","shell.execute_reply":"2025-07-01T07:51:20.599877Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"pickle.dump(test_ensemble, open('test_ensemble.p', 'bw'))\npickle.dump(test_preds_labels, open('test_preds_labels.p', 'bw'))\npickle.dump(test_kind_labels, open('test_kind_labels.p', 'bw'))","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2025-07-01T07:52:22.833237Z","iopub.execute_input":"2025-07-01T07:52:22.833581Z","iopub.status.idle":"2025-07-01T07:52:27.831572Z","shell.execute_reply.started":"2025-07-01T07:52:22.833555Z","shell.execute_reply":"2025-07-01T07:52:27.830729Z"}},"outputs":[],"execution_count":null}]}