maryxm commited on
Commit
2ab6891
·
verified ·
1 Parent(s): 02c2648

Update code_eval.py

Browse files
Files changed (1) hide show
  1. code_eval.py +1 -1
code_eval.py CHANGED
@@ -190,7 +190,7 @@ class CodeEval(evaluate.Metric):
190
  correct = np.array(correct)
191
 
192
  ks = k
193
- pass_at_k = {f"pass@{k}": estimate_pass_at_k(total, correct, k).mean() for k in ks if (total >= k).all()}
194
 
195
  return pass_at_k, results
196
 
 
190
  correct = np.array(correct)
191
 
192
  ks = k
193
+ pass_at_k = {f"pass@{k}": estimate_pass_at_k(total, correct, k).mean().item() for k in ks if (total >= k).all()}
194
 
195
  return pass_at_k, results
196