import torch, os

pred_path = "/mnt/shared-storage-user/caipengxiang/H200-ai4chem/ChemBOMAS_results/eval_results/suzuki_50/cluster_pretrain_yields.pt"
basename = os.path.basename(pred_path).split(".pt")[0] + "_merged.pt"
data = torch.load(pred_path, map_location='cpu')

split_path = "split_idx.pt"
split_data = torch.load(split_path)

data['train_idx'] = split_data['train']
data['val_idx'] = split_data['test']
torch.save(data, basename)
