ncoop57 commited on
Commit
b5a4c50
1 Parent(s): 02be328

Remove reliance on external files

Browse files
Files changed (1) hide show
  1. mmmlu.py +59 -3
mmmlu.py CHANGED
@@ -52,8 +52,65 @@ _URLS = {
52
  "dev": list((ROOT / "dev").glob("*.csv")),
53
  "test": list((ROOT / "test").glob("*.csv")),
54
  }
55
- CONFIG_NAMES = [str(task.name).replace("_test.csv", "") for task in _URLS["test"]]
56
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
 
58
  # TODO: Name of the dataset usually matches the script name with CamelCase instead of snake_case
59
  class NewDataset(datasets.GeneratorBasedBuilder):
@@ -110,7 +167,6 @@ class NewDataset(datasets.GeneratorBasedBuilder):
110
  )
111
 
112
  def _split_generators(self, dl_manager):
113
- split_generators = []
114
  return [
115
  datasets.SplitGenerator(
116
  name="dev",
 
52
  "dev": list((ROOT / "dev").glob("*.csv")),
53
  "test": list((ROOT / "test").glob("*.csv")),
54
  }
55
+ CONFIG_NAMES = [
56
+ "abstract_algebra",
57
+ "high_school_mathematics",
58
+ "nutrition",
59
+ "high_school_macroeconomics",
60
+ "world_religions",
61
+ "high_school_statistics",
62
+ "clinical_knowledge",
63
+ "medical_genetics",
64
+ "college_physics",
65
+ "professional_law",
66
+ "virology",
67
+ "astronomy",
68
+ "moral_disputes",
69
+ "electrical_engineering",
70
+ "high_school_psychology",
71
+ "public_relations",
72
+ "college_biology",
73
+ "college_mathematics",
74
+ "econometrics",
75
+ "anatomy",
76
+ "miscellaneous",
77
+ "international_law",
78
+ "management",
79
+ "prehistory",
80
+ "formal_logic",
81
+ "high_school_world_history",
82
+ "conceptual_physics",
83
+ "high_school_microeconomics",
84
+ "high_school_computer_science",
85
+ "elementary_mathematics",
86
+ "human_aging",
87
+ "logical_fallacies",
88
+ "sociology",
89
+ "us_foreign_policy",
90
+ "moral_scenarios",
91
+ "human_sexuality",
92
+ "high_school_us_history",
93
+ "computer_security",
94
+ "marketing",
95
+ "high_school_european_history",
96
+ "security_studies",
97
+ "college_computer_science",
98
+ "jurisprudence",
99
+ "high_school_geography",
100
+ "high_school_physics",
101
+ "philosophy",
102
+ "machine_learning",
103
+ "high_school_chemistry",
104
+ "high_school_biology",
105
+ "professional_accounting",
106
+ "business_ethics",
107
+ "professional_psychology",
108
+ "high_school_government_and_politics",
109
+ "college_medicine",
110
+ "professional_medicine",
111
+ "college_chemistry",
112
+ "global_facts"
113
+ ]
114
 
115
  # TODO: Name of the dataset usually matches the script name with CamelCase instead of snake_case
116
  class NewDataset(datasets.GeneratorBasedBuilder):
 
167
  )
168
 
169
  def _split_generators(self, dl_manager):
 
170
  return [
171
  datasets.SplitGenerator(
172
  name="dev",