diff --git a/src/zeroband/utils/metric_logger.py b/src/zeroband/utils/metric_logger.py index ffa5e43d..147c9742 100644 --- a/src/zeroband/utils/metric_logger.py +++ b/src/zeroband/utils/metric_logger.py @@ -1,4 +1,3 @@ -import pickle from typing import Any, Protocol import importlib @@ -45,5 +44,5 @@ def log(self, metrics: dict[str, Any]): self.data.append(metrics) def finish(self): - with open(self.project, "wb") as f: - pickle.dump(self.data, f) + with open(self.project, "w") as f: + f.write(str(self.data))