XufengDuan commited on
Commit
79cf136
1 Parent(s): d96a992

update scripts

Browse files
Files changed (1) hide show
  1. src/leaderboard/read_evals.py +3 -2
src/leaderboard/read_evals.py CHANGED
@@ -75,8 +75,9 @@ class EvalResult:
75
 
76
  #print(task.value)
77
  if isinstance(task.metric, str):
78
- accs = np.array([v.get(task.metric, None) for k, v in data["results"].items() if
79
- task.benchmark == k and isinstance(v, dict)])
 
80
 
81
  # 过滤掉 None 值,确保 accs 只包含有效的数值
82
  accs = accs[accs != None]
 
75
 
76
  #print(task.value)
77
  if isinstance(task.metric, str):
78
+ # accs = np.array([v.get(task.metric, None) for k, v in data["results"].items() if
79
+ # task.benchmark == k and isinstance(v, dict)])
80
+ accs = np.array([v for k, v in data["results"].items() if task.benchmark == k])
81
 
82
  # 过滤掉 None 值,确保 accs 只包含有效的数值
83
  accs = accs[accs != None]