Skip to content

Commit

Permalink
update logger, use str instead of pickle
Browse files Browse the repository at this point in the history
  • Loading branch information
samsja committed Dec 19, 2024
1 parent 79e9f17 commit 0fa14d0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/zeroband/utils/metric_logger.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import pickle
from typing import Any, Protocol
import importlib

Expand Down Expand Up @@ -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))

0 comments on commit 0fa14d0

Please sign in to comment.