(self, statistics_path)
| 202 | |
| 203 | class StatisticsContainer(object): |
| 204 | def __init__(self, statistics_path): |
| 205 | self.statistics_path = statistics_path |
| 206 | |
| 207 | self.backup_statistics_path = "{}_{}.pkl".format( |
| 208 | os.path.splitext(self.statistics_path)[0], |
| 209 | datetime.datetime.now().strftime("%Y-%m-%d_%H-%M-%S"), |
| 210 | ) |
| 211 | |
| 212 | self.statistics_dict = {"balanced_train": [], "test": []} |
| 213 | |
| 214 | def append(self, steps, statistics, split, flush=True): |
| 215 | statistics["steps"] = steps |
nothing calls this directly
no outgoing calls
no test coverage detected