Skip to content

Commit

Permalink
add dashboard-progress id in metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
samsja committed Feb 4, 2025
1 parent 0fba3ac commit 21306bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/genesys/data.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
from typing import Generator
from pydantic_config import BaseConfig
from datasets import load_dataset
Expand Down Expand Up @@ -135,4 +136,6 @@ def __iter__(self) -> Generator[tuple, None, None]:
def log_progress_prime(self, paths: list[str], dataset_counters: list[int]):
metric = {path: counter for path, counter in zip(paths, dataset_counters)}
metric.update({"total": sum(dataset_counters)})

metric = {os.path.join("dashbord-progress", key): value for key, value in metric.items()}
self.prime_metric.log_prime(metric)

0 comments on commit 21306bb

Please sign in to comment.