mathemakitten commited on
Commit
555a15f
1 Parent(s): 20130cb
Files changed (1) hide show
  1. glue-suite-v2.py +29 -34
glue-suite-v2.py CHANGED
@@ -10,39 +10,34 @@ class Suite(evaluate.EvaluationSuite):
10
  description="dummy metric for tests",
11
  citation="insert citation here",
12
  features=Features({"predictions": Value("int64"), "references": Value("int64")}))
13
-
14
- def temp(self):
15
- # def __init__(self):
16
- # super().__init__()
17
- self.preprocessor = None #lambda x: x["text"].lower()
18
-
19
- self.suite = [
20
- evaluate.evaluation_suite.SubTask(
21
- data="imdb",
22
- split="test",
23
- data_preprocessor=self.preprocessor,
24
- args_for_task={
25
- "metric": "accuracy",
26
- "input_column": "text",
27
- "label_column": "label",
28
- "label_mapping": {
29
- "LABEL_0": 0.0,
30
- "LABEL_1": 1.0
31
- }
32
  }
33
- ),
34
- evaluate.evaluation_suite.SubTask(
35
- data="sst2",
36
- split="test[:10]",
37
- data_preprocessor=self.preprocessor,
38
- args_for_task={
39
- "metric": "accuracy",
40
- "input_column": "sentence",
41
- "label_column": "label",
42
- "label_mapping": {
43
- "LABEL_0": 0.0,
44
- "LABEL_1": 1.0
45
- }
46
  }
47
- )
48
- ]
 
 
10
  description="dummy metric for tests",
11
  citation="insert citation here",
12
  features=Features({"predictions": Value("int64"), "references": Value("int64")}))
13
+ preprocessor = None #lambda x: x["text"].lower()
14
+ suite = [
15
+ evaluate.evaluation_suite.SubTask(
16
+ data="imdb",
17
+ split="test",
18
+ data_preprocessor=preprocessor,
19
+ args_for_task={
20
+ "metric": "accuracy",
21
+ "input_column": "text",
22
+ "label_column": "label",
23
+ "label_mapping": {
24
+ "LABEL_0": 0.0,
25
+ "LABEL_1": 1.0
 
 
 
 
 
 
26
  }
27
+ }
28
+ ),
29
+ evaluate.evaluation_suite.SubTask(
30
+ data="sst2",
31
+ split="test[:10]",
32
+ data_preprocessor=preprocessor,
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
+ ]