{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.10.13","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"},"kaggle":{"accelerator":"none","dataSources":[{"sourceId":56537,"databundleVersionId":8877088,"sourceType":"competition"},{"sourceId":8523424,"sourceType":"datasetVersion","datasetId":5085016},{"sourceId":188206621,"sourceType":"kernelVersion"}],"dockerImageVersionId":30746,"isInternetEnabled":true,"language":"python","sourceType":"notebook","isGpuEnabled":false}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"import pickle\nimport numpy as np\nimport os","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2024-07-14T09:26:03.481739Z","iopub.execute_input":"2024-07-14T09:26:03.482167Z","iopub.status.idle":"2024-07-14T09:26:03.522361Z","shell.execute_reply.started":"2024-07-14T09:26:03.482123Z","shell.execute_reply":"2024-07-14T09:26:03.521129Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"msm_dataset_path = '/kaggle/input/leap-msm-ds'\nmsm_notebook_path = '/kaggle/input/leap-msm-public'","metadata":{"execution":{"iopub.status.busy":"2024-07-14T09:26:03.524638Z","iopub.execute_input":"2024-07-14T09:26:03.525065Z","iopub.status.idle":"2024-07-14T09:26:03.530922Z","shell.execute_reply.started":"2024-07-14T09:26:03.525026Z","shell.execute_reply":"2024-07-14T09:26:03.52943Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"files_in_ds = os.listdir(msm_dataset_path)","metadata":{"execution":{"iopub.status.busy":"2024-07-14T09:26:03.532223Z","iopub.execute_input":"2024-07-14T09:26:03.53261Z","iopub.status.idle":"2024-07-14T09:26:03.564663Z","shell.execute_reply.started":"2024-07-14T09:26:03.53258Z","shell.execute_reply":"2024-07-14T09:26:03.563478Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"for file_name in files_in_ds:\n    ds_file = pickle.load(open(f'{msm_dataset_path}/{file_name}', 'br'))\n    notebook_file = pickle.load(open(f'{msm_notebook_path}/{file_name}', 'br'))\n    print(np.mean(ds_file == notebook_file))","metadata":{"execution":{"iopub.status.busy":"2024-07-14T09:26:03.566754Z","iopub.execute_input":"2024-07-14T09:26:03.567066Z","iopub.status.idle":"2024-07-14T09:26:03.840275Z","shell.execute_reply.started":"2024-07-14T09:26:03.56704Z","shell.execute_reply":"2024-07-14T09:26:03.838846Z"},"trusted":true},"execution_count":null,"outputs":[]}]}