Spaces:
Runtime error
Runtime error
pre 1
Browse files- functions.py +45 -45
functions.py
CHANGED
@@ -38,69 +38,69 @@ def get_query_url(repo):
|
|
38 |
|
39 |
def get_task_summary(results):
|
40 |
return {
|
41 |
-
"
|
42 |
-
{"dataset_type":"
|
43 |
-
"dataset_name":"
|
44 |
-
"metric_type":"
|
45 |
-
"metric_value":results["
|
46 |
-
"dataset_config":
|
47 |
-
"dataset_split":
|
48 |
"dataset_revision":None,
|
49 |
-
"dataset_args":{"num_few_shot":
|
50 |
-
"metric_name":"
|
51 |
},
|
52 |
-
"
|
53 |
-
{"dataset_type":"
|
54 |
-
"dataset_name":"
|
55 |
"metric_type":"acc_norm",
|
56 |
-
"metric_value":results["
|
57 |
-
"dataset_config":None,
|
58 |
-
"dataset_split":
|
59 |
"dataset_revision":None,
|
60 |
-
"dataset_args":{"num_few_shot":
|
61 |
"metric_name":"normalized accuracy"
|
62 |
},
|
63 |
-
"
|
64 |
{
|
65 |
-
"dataset_type":"
|
66 |
-
"dataset_name":"
|
67 |
-
"metric_type":"
|
68 |
-
"metric_value":results["
|
69 |
-
"dataset_config":
|
70 |
-
"dataset_split":
|
71 |
"dataset_revision":None,
|
72 |
-
"dataset_args":{"num_few_shot":
|
73 |
-
"metric_name":"
|
74 |
},
|
75 |
-
"
|
76 |
{
|
77 |
-
"dataset_type":"
|
78 |
-
"dataset_name":"
|
79 |
-
"metric_type":"
|
80 |
-
"metric_value":results["
|
81 |
-
"dataset_config":
|
82 |
-
"dataset_split":
|
83 |
"dataset_revision":None,
|
84 |
"dataset_args":{"num_few_shot": 0},
|
85 |
-
"metric_name":
|
86 |
},
|
87 |
-
"
|
88 |
{
|
89 |
-
"dataset_type":"
|
90 |
"dataset_name":"Winogrande (5-shot)",
|
91 |
-
"metric_type":"
|
92 |
-
"metric_value":results["
|
93 |
-
"dataset_config":
|
94 |
-
"dataset_split":
|
95 |
-
"dataset_args":{"num_few_shot":
|
96 |
-
"metric_name":"
|
97 |
},
|
98 |
-
"
|
99 |
{
|
100 |
-
"dataset_type":"
|
101 |
-
"dataset_name":"
|
102 |
"metric_type":"acc",
|
103 |
-
"metric_value":results["
|
104 |
"dataset_config":"main",
|
105 |
"dataset_split":"test",
|
106 |
"dataset_args":{"num_few_shot": 5},
|
|
|
38 |
|
39 |
def get_task_summary(results):
|
40 |
return {
|
41 |
+
"IFEval":
|
42 |
+
{"dataset_type":"HuggingFaceH4/ifeval",
|
43 |
+
"dataset_name":"IFEval (0-Shot)",
|
44 |
+
"metric_type":"inst_level_strict_acc",
|
45 |
+
"metric_value":results["IFEval"],
|
46 |
+
"dataset_config": None, # don't know
|
47 |
+
"dataset_split": None, # don't know
|
48 |
"dataset_revision":None,
|
49 |
+
"dataset_args":{"num_few_shot": 0},
|
50 |
+
"metric_name":"strict accuracy"
|
51 |
},
|
52 |
+
"BBH":
|
53 |
+
{"dataset_type":"BBH",
|
54 |
+
"dataset_name":"BBH (3-Shot)",
|
55 |
"metric_type":"acc_norm",
|
56 |
+
"metric_value":results["BBH"],
|
57 |
+
"dataset_config": None, # don't know
|
58 |
+
"dataset_split": None, # don't know
|
59 |
"dataset_revision":None,
|
60 |
+
"dataset_args":{"num_few_shot": 3},
|
61 |
"metric_name":"normalized accuracy"
|
62 |
},
|
63 |
+
"MATH Lvl 5":
|
64 |
{
|
65 |
+
"dataset_type":"hendrycks/competition_math",
|
66 |
+
"dataset_name":"MATH Lvl 5 (4-Shot)",
|
67 |
+
"metric_type":"exact_match",
|
68 |
+
"metric_value":results["MATH Lvl 5"],
|
69 |
+
"dataset_config": None, # don't know
|
70 |
+
"dataset_split": None, # don't know
|
71 |
"dataset_revision":None,
|
72 |
+
"dataset_args":{"num_few_shot": 4},
|
73 |
+
"metric_name":"exact match"
|
74 |
},
|
75 |
+
"GPQA":
|
76 |
{
|
77 |
+
"dataset_type":"Idavidrein/gpqa",
|
78 |
+
"dataset_name":"GPQA (0-shot)",
|
79 |
+
"metric_type":"acc_norm",
|
80 |
+
"metric_value":results["GPQA"],
|
81 |
+
"dataset_config": None, # don't know
|
82 |
+
"dataset_split": None, # don't know
|
83 |
"dataset_revision":None,
|
84 |
"dataset_args":{"num_few_shot": 0},
|
85 |
+
"metric_name":"acc_norm"
|
86 |
},
|
87 |
+
"MUSR":
|
88 |
{
|
89 |
+
"dataset_type":"TAUR-Lab/MuSR",
|
90 |
"dataset_name":"Winogrande (5-shot)",
|
91 |
+
"metric_type":"acc_norm",
|
92 |
+
"metric_value":results["MUSR"],
|
93 |
+
"dataset_config": None, # don't know
|
94 |
+
"dataset_split": None, # don't know
|
95 |
+
"dataset_args":{"num_few_shot": 0},
|
96 |
+
"metric_name":"acc_norm"
|
97 |
},
|
98 |
+
"MMLU-PRO":
|
99 |
{
|
100 |
+
"dataset_type":"TIGER-Lab/MMLU-Pro",
|
101 |
+
"dataset_name":"MMLU-PRO (5-shot)",
|
102 |
"metric_type":"acc",
|
103 |
+
"metric_value":results["MMLU-PRO"],
|
104 |
"dataset_config":"main",
|
105 |
"dataset_split":"test",
|
106 |
"dataset_args":{"num_few_shot": 5},
|