Spaces:
Sleeping
Sleeping
Update Space (evaluate main: e4a27243)
Browse files- competition_math.py +4 -1
- requirements.txt +1 -1
competition_math.py
CHANGED
@@ -67,11 +67,14 @@ Examples:
|
|
67 |
class CompetitionMathMetric(evaluate.Metric):
|
68 |
"""Accuracy metric for the MATH dataset."""
|
69 |
|
70 |
-
|
|
|
|
|
71 |
return evaluate.MetricInfo(
|
72 |
description=_DESCRIPTION,
|
73 |
citation=_CITATION,
|
74 |
inputs_description=_KWARGS_DESCRIPTION,
|
|
|
75 |
features=datasets.Features(
|
76 |
{
|
77 |
"predictions": datasets.Value("string"),
|
|
|
67 |
class CompetitionMathMetric(evaluate.Metric):
|
68 |
"""Accuracy metric for the MATH dataset."""
|
69 |
|
70 |
+
ALLOWED_CONFIG_NAMES = ["default"]
|
71 |
+
|
72 |
+
def _info(self, config):
|
73 |
return evaluate.MetricInfo(
|
74 |
description=_DESCRIPTION,
|
75 |
citation=_CITATION,
|
76 |
inputs_description=_KWARGS_DESCRIPTION,
|
77 |
+
config=config,
|
78 |
features=datasets.Features(
|
79 |
{
|
80 |
"predictions": datasets.Value("string"),
|
requirements.txt
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
git+https://github.com/huggingface/evaluate@
|
2 |
git+https://github.com/hendrycks/math.git
|
|
|
1 |
+
git+https://github.com/huggingface/evaluate@e4a2724377909fe2aeb4357e3971e5a569673b39
|
2 |
git+https://github.com/hendrycks/math.git
|