Spaces:
Running
Running
Commit
·
733a570
1
Parent(s):
e36ceda
for CI
Browse files- evaluation-suite-ci.py +2 -17
evaluation-suite-ci.py
CHANGED
@@ -13,7 +13,7 @@ class Suite(evaluate.EvaluationSuite):
|
|
13 |
SubTask(
|
14 |
task_type="text-classification",
|
15 |
data="imdb",
|
16 |
-
split="test[:
|
17 |
data_preprocessor=self.preprocessor,
|
18 |
args_for_task={
|
19 |
"metric": "accuracy",
|
@@ -24,20 +24,5 @@ class Suite(evaluate.EvaluationSuite):
|
|
24 |
"LABEL_1": 1.0
|
25 |
}
|
26 |
}
|
27 |
-
),
|
28 |
-
SubTask(
|
29 |
-
task_type="text-classification",
|
30 |
-
data="sst2",
|
31 |
-
split="test[:10]",
|
32 |
-
data_preprocessor=lambda x: {"sentence": x["sentence"].lower()},
|
33 |
-
args_for_task={
|
34 |
-
"metric": "accuracy",
|
35 |
-
"input_column": "sentence",
|
36 |
-
"label_column": "label",
|
37 |
-
"label_mapping": {
|
38 |
-
"LABEL_0": 0.0,
|
39 |
-
"LABEL_1": 1.0
|
40 |
-
}
|
41 |
-
}
|
42 |
)
|
43 |
-
]
|
|
|
13 |
SubTask(
|
14 |
task_type="text-classification",
|
15 |
data="imdb",
|
16 |
+
split="test[:1]",
|
17 |
data_preprocessor=self.preprocessor,
|
18 |
args_for_task={
|
19 |
"metric": "accuracy",
|
|
|
24 |
"LABEL_1": 1.0
|
25 |
}
|
26 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
)
|
28 |
+
]
|