amphora commited on
Commit
7a5ec2e
1 Parent(s): 7ff25ef

Update csatqa.py

Browse files
Files changed (1) hide show
  1. csatqa.py +3 -3
csatqa.py CHANGED
@@ -43,7 +43,7 @@ class CSATQA(datasets.GeneratorBasedBuilder):
43
  "option#5": datasets.Value("string"),
44
  "gold": datasets.Value("int8"),
45
  "category": datasets.Value("string"),
46
- # "human_performance": datasets.Value("float16"),
47
  }
48
  )
49
  return datasets.DatasetInfo(
@@ -81,7 +81,7 @@ class CSATQA(datasets.GeneratorBasedBuilder):
81
  "option#5": data["option#5"],
82
  "gold": data["gold"],
83
  "category":"N/A",
84
- # "human_performance":0.0
85
  })
86
 
87
  elif data["Category"] == self.config.name:
@@ -95,7 +95,7 @@ class CSATQA(datasets.GeneratorBasedBuilder):
95
  "option#5": data["option#5"],
96
  "gold": data["gold"],
97
  "category": data["Category"],
98
- #"human_performance": data["Human_Peformance"]
99
  })
100
 
101
  for idx, dat in enumerate(buffer):
 
43
  "option#5": datasets.Value("string"),
44
  "gold": datasets.Value("int8"),
45
  "category": datasets.Value("string"),
46
+ "human_performance": datasets.Value("float32"),
47
  }
48
  )
49
  return datasets.DatasetInfo(
 
81
  "option#5": data["option#5"],
82
  "gold": data["gold"],
83
  "category":"N/A",
84
+ "human_performance":0.0
85
  })
86
 
87
  elif data["Category"] == self.config.name:
 
95
  "option#5": data["option#5"],
96
  "gold": data["gold"],
97
  "category": data["Category"],
98
+ "human_performance": data["Human_Peformance"]
99
  })
100
 
101
  for idx, dat in enumerate(buffer):