Spaces:
Running
Running
Commit
·
afe6d40
1
Parent(s):
79b3508
revert test
Browse files- evaluation-suite-ci.py +26 -27
evaluation-suite-ci.py
CHANGED
@@ -8,30 +8,29 @@ class Suite(evaluate.EvaluationSuite):
|
|
8 |
super().__init__(name)
|
9 |
|
10 |
self.preprocessor = lambda x: {"text": x["text"].lower()}
|
11 |
-
self.suite = [
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
# ]
|
|
|
8 |
super().__init__(name)
|
9 |
|
10 |
self.preprocessor = lambda x: {"text": x["text"].lower()}
|
11 |
+
self.suite = [
|
12 |
+
SubTask(
|
13 |
+
task_type="text-classification",
|
14 |
+
data="imdb",
|
15 |
+
split="test[:2]",
|
16 |
+
data_preprocessor=self.preprocessor,
|
17 |
+
args_for_task={
|
18 |
+
"metric": "accuracy",
|
19 |
+
"input_column": "text",
|
20 |
+
"label_column": "label",
|
21 |
+
"label_mapping": {"NEGATIVE": 0.0, "POSITIVE": 1.0}
|
22 |
+
}
|
23 |
+
),
|
24 |
+
SubTask(
|
25 |
+
task_type="text-classification",
|
26 |
+
data="imdb",
|
27 |
+
split="test[:2]",
|
28 |
+
data_preprocessor=None,
|
29 |
+
args_for_task={
|
30 |
+
"metric": "accuracy",
|
31 |
+
"input_column": "text",
|
32 |
+
"label_column": "label",
|
33 |
+
"label_mapping": {"NEGATIVE": 0.0, "POSITIVE": 1.0}
|
34 |
+
}
|
35 |
+
)
|
36 |
+
]
|
|