sh1gechan commited on
Commit
58bc545
·
verified ·
1 Parent(s): 3883ce1

Update src/leaderboard/read_evals.py

Browse files
Files changed (1) hide show
  1. src/leaderboard/read_evals.py +1 -1
src/leaderboard/read_evals.py CHANGED
@@ -97,7 +97,6 @@ class EvalResult:
97
  raise KeyError(f"'scores' key not found in JSON file: {json_filepath}")
98
 
99
  scores = data["scores"]
100
- print(f"Scores: {data.get('scores', {})}")
101
  results = {}
102
  for task in Tasks:
103
  task_value = task.value
@@ -162,6 +161,7 @@ class EvalResult:
162
  for task in Tasks:
163
  task_value = task.value
164
  value = self.results.get(task_value.metric)
 
165
  data_dict[task_value.col_name] = Decimal(value)
166
 
167
  return data_dict
 
97
  raise KeyError(f"'scores' key not found in JSON file: {json_filepath}")
98
 
99
  scores = data["scores"]
 
100
  results = {}
101
  for task in Tasks:
102
  task_value = task.value
 
161
  for task in Tasks:
162
  task_value = task.value
163
  value = self.results.get(task_value.metric)
164
+ print(f"Task: {task_value.metric}, Score: {value}")
165
  data_dict[task_value.col_name] = Decimal(value)
166
 
167
  return data_dict