lvwerra HF staff commited on
Commit
2b526b7
·
1 Parent(s): 3ccaeb0

Update Space (evaluate main: 5aa3982a)

Browse files
Files changed (2) hide show
  1. recall.py +1 -1
  2. requirements.txt +1 -1
recall.py CHANGED
@@ -132,4 +132,4 @@ class Recall(evaluate.Metric):
132
  sample_weight=sample_weight,
133
  zero_division=zero_division,
134
  )
135
- return {"recall": float(score) if score.size == 1 else score}
 
132
  sample_weight=sample_weight,
133
  zero_division=zero_division,
134
  )
135
+ return {"recall": score if getattr(score, "size", 1) > 1 else float(score)}
requirements.txt CHANGED
@@ -1,2 +1,2 @@
1
- git+https://github.com/huggingface/evaluate@b3f3c02ce2d972bc0e59e346b3318ca2f537e060
2
  scikit-learn
 
1
+ git+https://github.com/huggingface/evaluate@5aa3982a9a8c86e506860e381d428a64b0cce73b
2
  scikit-learn