(self, steps, statistics, split, flush=True)
| 212 | self.statistics_dict = {"balanced_train": [], "test": []} |
| 213 | |
| 214 | def append(self, steps, statistics, split, flush=True): |
| 215 | statistics["steps"] = steps |
| 216 | self.statistics_dict[split].append(statistics) |
| 217 | |
| 218 | if flush: |
| 219 | self.flush() |
| 220 | |
| 221 | def flush(self): |
| 222 | pickle.dump(self.statistics_dict, open(self.statistics_path, "wb")) |
no test coverage detected