| import torch | |
| # Example dictionaries | |
| dict1 = torch.load("/new-stg/home/young/ppi-data/gold_standard_embedded/Intra2_dictionary_1500_or_less/protein_dictionary.pt") | |
| dict2 = torch.load("/new-stg/home/young/ppi-data/gold_standard_embedded/Intra2_dictionary_1500_greater/protein_dictionary.pt") | |
| # Combine dictionaries | |
| combined_dict = {**dict1, **dict2} | |
| torch.save(combined_dict, "protein_dictionary.pt") | |