lvwerra HF staff commited on
Commit
4d579a5
1 Parent(s): 5ab6af2

Update Space (evaluate main: c447fc8e)

Browse files
Files changed (2) hide show
  1. requirements.txt +1 -1
  2. xnli.py +1 -5
requirements.txt CHANGED
@@ -1 +1 @@
1
- git+https://github.com/huggingface/evaluate@e4a2724377909fe2aeb4357e3971e5a569673b39
 
1
+ git+https://github.com/huggingface/evaluate@c447fc8eda9c62af501bfdc6988919571050d950
xnli.py CHANGED
@@ -68,15 +68,11 @@ def simple_accuracy(preds, labels):
68
 
69
  @evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
70
  class Xnli(evaluate.Metric):
71
-
72
- ALLOWED_CONFIG_NAMES = ["default"]
73
-
74
- def _info(self, config):
75
  return evaluate.MetricInfo(
76
  description=_DESCRIPTION,
77
  citation=_CITATION,
78
  inputs_description=_KWARGS_DESCRIPTION,
79
- config=config,
80
  features=datasets.Features(
81
  {
82
  "predictions": datasets.Value("int64" if self.config_name != "sts-b" else "float32"),
 
68
 
69
  @evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
70
  class Xnli(evaluate.Metric):
71
+ def _info(self):
 
 
 
72
  return evaluate.MetricInfo(
73
  description=_DESCRIPTION,
74
  citation=_CITATION,
75
  inputs_description=_KWARGS_DESCRIPTION,
 
76
  features=datasets.Features(
77
  {
78
  "predictions": datasets.Value("int64" if self.config_name != "sts-b" else "float32"),