This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| import sys | |
| import hashlib | |
| from typing import Any, List, Tuple | |
| def load_json_file(filepath): | |
| """Load JSON from file""" | |
| with open(filepath, 'r', encoding='utf-8') as f: | |
| return json.load(f) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pickle | |
| import numpy as np | |
| def load_outputs(file1, file2): | |
| """Load both outputs""" | |
| with open(file1, "rb") as f: | |
| original = pickle.load(f) | |
| with open(file2, "rb") as f: |