use pre-commit

This commit is contained in:
hiyouga committed 2024-10-29 09:07:46 +00:00
1 parent 77666bd227
commit 21db8ed2f4
86 files changed
+1048 -1064

No files matched your search

+1 -1
View File
@@ -207,4 +207,4 @@
"name": "兽医学",
"category": "STEM"
}
}
}
+1 -1
View File
@@ -267,4 +267,4 @@
"name": "世界宗教",
"category": "Humanities"
}
}
}
+1 -1
View File
@@ -227,4 +227,4 @@
"name": "world religions",
"category": "Humanities"
}
}
}
+1 -2
View File
@@ -158,5 +158,4 @@ class MMLU(datasets.GeneratorBasedBuilder):
df = pd.read_csv(filepath, header=None)
df.columns = ["question", "A", "B", "C", "D", "answer"]
for i, instance in enumerate(df.to_dict(orient="records")):
yield i, instance
yield from enumerate(df.to_dict(orient="records"))