Datasets:

License:
momentino commited on
Commit
e63790f
·
1 Parent(s): 76e8fac
Files changed (1) hide show
  1. planbench.py +132 -134
planbench.py CHANGED
@@ -46,161 +46,159 @@ _URLS_prefix = {
46
  }
47
  _URLS = {
48
  "blocksworld_plan_generation": {
49
- "test": _URLS_prefix["blocksworld"] + "task_1_plan_generation.json"
50
  },
51
  "blocksworld_plan_optimality": {
52
- "test": _URLS_prefix["blocksworld"] + "task_2_plan_optimality.json"
53
  },
54
  "blocksworld_plan_verification": {
55
- "test": _URLS_prefix["blocksworld"] + "task_3_plan_verification.json"
56
  },
57
  "blocksworld_plan_reuse": {
58
- "test": _URLS_prefix["blocksworld"] + "task_4_plan_reuse.json"
59
  },
60
  "blocksworld_plan_generalization": {
61
- "test": _URLS_prefix["blocksworld"] + "task_5_plan_reuse.json"
62
  },
63
  "blocksworld_replanning": {
64
- "test": _URLS_prefix["blocksworld"] + "task_6_replanning.json"
65
  },
66
  "blocksworld_plan_execution": {
67
- "test": _URLS_prefix["blocksworld"] + "task_7_plan_execution.json"
68
  },
69
  "blocksworld_plan_shuffling": {
70
- "test": _URLS_prefix["blocksworld"] + "task_8_1_goal_shuffling.json"
71
  },
72
  "blocksworld_plan_full_to_partial": {
73
- "test": _URLS_prefix["blocksworld"] + "task_8_2_full_to_partial.json"
74
  },
75
  "blocksworld_partial_to_full": {
76
- "test": _URLS_prefix["blocksworld"] + "task_8_3_partial_to_full.json"
77
- },
78
- "blocksworld_3_plan_generation": {
79
- "test": _URLS_prefix["blocksworld_3"] + "task_1_plan_generation.json"
80
- },
81
- "blocksworld_3_plan_optimality": {
82
- "test": _URLS_prefix["blocksworld_3"] + "task_2_plan_optimality.json"
83
- },
84
- "blocksworld_3_plan_verification": {
85
- "test": _URLS_prefix["blocksworld_3"] + "task_3_plan_verification.json"
86
- },
87
- "blocksworld_3_plan_reuse": {
88
- "test": _URLS_prefix["blocksworld_3"] + "task_4_plan_reuse.json"
89
- },
90
- "blocksworld_3_plan_generalization": {
91
- "test": _URLS_prefix["blocksworld_3"] + "task_5_plan_reuse.json"
92
- },
93
- "blocksworld_3_replanning": {
94
- "test": _URLS_prefix["blocksworld_3"] + "task_6_replanning.json"
95
- },
96
- "blocksworld_3_plan_execution": {
97
- "test": _URLS_prefix["blocksworld_3"] + "task_7_plan_execution.json"
98
- },
99
- "blocksworld_3_plan_shuffling": {
100
- "test": _URLS_prefix["blocksworld_3"] + "task_8_1_goal_shuffling.json"
101
- },
102
- "blocksworld_3_plan_full_to_partial": {
103
- "test": _URLS_prefix["blocksworld_3"] + "task_8_2_full_to_partial.json"
104
- },
105
- "blocksworld_3_partial_to_full": {
106
- "test": _URLS_prefix["blocksworld_3"] + "task_8_3_partial_to_full.json"
107
- },
108
-
109
- "mystery_blocksworld_plan_generation": {
110
- "test": _URLS_prefix["mystery_blocksworld"] + "task_1_plan_generation.json"
111
- },
112
- "mystery_blocksworld_plan_optimality": {
113
- "test": _URLS_prefix["mystery_blocksworld"] + "task_2_plan_optimality.json"
114
- },
115
- "mystery_blocksworld_plan_verification": {
116
- "test": _URLS_prefix["mystery_blocksworld"] + "task_3_plan_verification.json"
117
- },
118
- "mystery_blocksworld_plan_reuse": {
119
- "test": _URLS_prefix["mystery_blocksworld"] + "task_4_plan_reuse.json"
120
- },
121
- "mystery_blocksworld_plan_generalization": {
122
- "test": _URLS_prefix["mystery_blocksworld"] + "task_5_plan_reuse.json"
123
- },
124
- "mystery_blocksworld_replanning": {
125
- "test": _URLS_prefix["mystery_blocksworld"] + "task_6_replanning.json"
126
- },
127
- "mystery_blocksworld_plan_execution": {
128
- "test": _URLS_prefix["mystery_blocksworld"] + "task_7_plan_execution.json"
129
- },
130
- "mystery_blocksworld_plan_shuffling": {
131
- "test": _URLS_prefix["mystery_blocksworld"] + "task_8_1_goal_shuffling.json"
132
- },
133
- "mystery_blocksworld_plan_full_to_partial": {
134
- "test": _URLS_prefix["mystery_blocksworld"] + "task_8_2_full_to_partial.json"
135
- },
136
- "mystery_blocksworld_partial_to_full": {
137
- "test": _URLS_prefix["mystery_blocksworld"] + "task_8_3_partial_to_full.json"
138
- },
139
-
140
- "mystery_blocksworld_3_plan_generation": {
141
- "test": _URLS_prefix["mystery_blocksworld_3"] + "task_1_plan_generation.json"
142
- },
143
- "mystery_blocksworld_3_plan_optimality": {
144
- "test": _URLS_prefix["mystery_blocksworld_3"] + "task_2_plan_optimality.json"
145
- },
146
- "mystery_blocksworld_3_plan_verification": {
147
- "test": _URLS_prefix["mystery_blocksworld_3"] + "task_3_plan_verification.json"
148
- },
149
- "mystery_blocksworld_3_plan_reuse": {
150
- "test": _URLS_prefix["mystery_blocksworld_3"] + "task_4_plan_reuse.json"
151
- },
152
- "mystery_blocksworld_3_plan_generalization": {
153
- "test": _URLS_prefix["mystery_blocksworld_3"] + "task_5_plan_reuse.json"
154
- },
155
- "mystery_blocksworld_3_replanning": {
156
- "test": _URLS_prefix["mystery_blocksworld_3"] + "task_6_replanning.json"
157
- },
158
- "mystery_blocksworld_3_plan_execution": {
159
- "test": _URLS_prefix["mystery_blocksworld_3"] + "task_7_plan_execution.json"
160
- },
161
- "mystery_blocksworld_3_plan_shuffling": {
162
- "test": _URLS_prefix["mystery_blocksworld_3"] + "task_8_1_goal_shuffling.json"
163
- },
164
- "mystery_blocksworld_3_plan_full_to_partial": {
165
- "test": _URLS_prefix["mystery_blocksworld_3"] + "task_8_2_full_to_partial.json"
166
- },
167
- "mystery_blocksworld_3_partial_to_full": {
168
- "test": _URLS_prefix["mystery_blocksworld_3"] + "task_8_3_partial_to_full.json"
169
- },
170
-
171
- "logistics_plan_generation": {
172
- "test": _URLS_prefix["logistics"] + "task_1_plan_generation.json"
173
- },
174
- "logistics_plan_optimality": {
175
- "test": _URLS_prefix["logistics"] + "task_2_plan_optimality.json"
176
- },
177
- "logistics_plan_verification": {
178
- "test": _URLS_prefix["logistics"] + "task_3_plan_verification.json"
179
- },
180
- "logistics_plan_reuse": {
181
- "test": _URLS_prefix["logistics"] + "task_4_plan_reuse.json"
182
- },
183
- "logistics_plan_generalization": {
184
- "test": _URLS_prefix["logistics"] + "task_5_plan_reuse.json"
185
- },
186
- "logistics_replanning": {
187
- "test": _URLS_prefix["logistics"] + "task_6_replanning.json"
188
- },
189
- "logistics_plan_execution": {
190
- "test": _URLS_prefix["logistics"] + "task_7_plan_execution.json"
191
- },
192
- "logistics_plan_shuffling": {
193
- "test": _URLS_prefix["logistics"] + "task_8_1_goal_shuffling.json"
194
- },
195
- "logistics_plan_full_to_partial": {
196
- "test": _URLS_prefix["logistics"] + "task_8_2_full_to_partial.json"
197
- },
198
- "logistics_partial_to_full": {
199
- "test": _URLS_prefix["logistics"] + "task_8_3_partial_to_full.json"
200
- }
201
  }
202
 
203
 
 
204
  class PlanBench(datasets.GeneratorBasedBuilder):
205
  """ LMentry is a benchmark for measuring language model performance on tasks that are trivial to humans. LMentry consists of 25 tasks which humans are generally expected to perform perfectly, e.g. writing a sentence containing a specific word, identifying which words in a list belong to a specific category, choosing which of two words is longer, or identifying which of two words rhymes with a third word.
206
  """
 
46
  }
47
  _URLS = {
48
  "blocksworld_plan_generation": {
49
+ "test": _URLS_prefix["blocksworld"] + "/task_1_plan_generation.json"
50
  },
51
  "blocksworld_plan_optimality": {
52
+ "test": _URLS_prefix["blocksworld"] + "/task_2_plan_optimality.json"
53
  },
54
  "blocksworld_plan_verification": {
55
+ "test": _URLS_prefix["blocksworld"] + "/task_3_plan_verification.json"
56
  },
57
  "blocksworld_plan_reuse": {
58
+ "test": _URLS_prefix["blocksworld"] + "/task_4_plan_reuse.json"
59
  },
60
  "blocksworld_plan_generalization": {
61
+ "test": _URLS_prefix["blocksworld"] + "/task_5_plan_reuse.json"
62
  },
63
  "blocksworld_replanning": {
64
+ "test": _URLS_prefix["blocksworld"] + "/task_6_replanning.json"
65
  },
66
  "blocksworld_plan_execution": {
67
+ "test": _URLS_prefix["blocksworld"] + "/task_7_plan_execution.json"
68
  },
69
  "blocksworld_plan_shuffling": {
70
+ "test": _URLS_prefix["blocksworld"] + "/task_8_1_goal_shuffling.json"
71
  },
72
  "blocksworld_plan_full_to_partial": {
73
+ "test": _URLS_prefix["blocksworld"] + "/task_8_2_full_to_partial.json"
74
  },
75
  "blocksworld_partial_to_full": {
76
+ "test": _URLS_prefix["blocksworld"] + "/task_8_3_partial_to_full.json"
77
+ },
78
+ "blocksworld_3_plan_generation": {
79
+ "test": _URLS_prefix["blocksworld_3"] + "/task_1_plan_generation.json"
80
+ },
81
+ "blocksworld_3_plan_optimality": {
82
+ "test": _URLS_prefix["blocksworld_3"] + "/task_2_plan_optimality.json"
83
+ },
84
+ "blocksworld_3_plan_verification": {
85
+ "test": _URLS_prefix["blocksworld_3"] + "/task_3_plan_verification.json"
86
+ },
87
+ "blocksworld_3_plan_reuse": {
88
+ "test": _URLS_prefix["blocksworld_3"] + "/task_4_plan_reuse.json"
89
+ },
90
+ "blocksworld_3_plan_generalization": {
91
+ "test": _URLS_prefix["blocksworld_3"] + "/task_5_plan_reuse.json"
92
+ },
93
+ "blocksworld_3_replanning": {
94
+ "test": _URLS_prefix["blocksworld_3"] + "/task_6_replanning.json"
95
+ },
96
+ "blocksworld_3_plan_execution": {
97
+ "test": _URLS_prefix["blocksworld_3"] + "/task_7_plan_execution.json"
98
+ },
99
+ "blocksworld_3_plan_shuffling": {
100
+ "test": _URLS_prefix["blocksworld_3"] + "/task_8_1_goal_shuffling.json"
101
+ },
102
+ "blocksworld_3_plan_full_to_partial": {
103
+ "test": _URLS_prefix["blocksworld_3"] + "/task_8_2_full_to_partial.json"
104
+ },
105
+ "blocksworld_3_partial_to_full": {
106
+ "test": _URLS_prefix["blocksworld_3"] + "/task_8_3_partial_to_full.json"
107
+ },
108
+ "mystery_blocksworld_plan_generation": {
109
+ "test": _URLS_prefix["mystery_blocksworld"] + "/task_1_plan_generation.json"
110
+ },
111
+ "mystery_blocksworld_plan_optimality": {
112
+ "test": _URLS_prefix["mystery_blocksworld"] + "/task_2_plan_optimality.json"
113
+ },
114
+ "mystery_blocksworld_plan_verification": {
115
+ "test": _URLS_prefix["mystery_blocksworld"] + "/task_3_plan_verification.json"
116
+ },
117
+ "mystery_blocksworld_plan_reuse": {
118
+ "test": _URLS_prefix["mystery_blocksworld"] + "/task_4_plan_reuse.json"
119
+ },
120
+ "mystery_blocksworld_plan_generalization": {
121
+ "test": _URLS_prefix["mystery_blocksworld"] + "/task_5_plan_reuse.json"
122
+ },
123
+ "mystery_blocksworld_replanning": {
124
+ "test": _URLS_prefix["mystery_blocksworld"] + "/task_6_replanning.json"
125
+ },
126
+ "mystery_blocksworld_plan_execution": {
127
+ "test": _URLS_prefix["mystery_blocksworld"] + "/task_7_plan_execution.json"
128
+ },
129
+ "mystery_blocksworld_plan_shuffling": {
130
+ "test": _URLS_prefix["mystery_blocksworld"] + "/task_8_1_goal_shuffling.json"
131
+ },
132
+ "mystery_blocksworld_plan_full_to_partial": {
133
+ "test": _URLS_prefix["mystery_blocksworld"] + "/task_8_2_full_to_partial.json"
134
+ },
135
+ "mystery_blocksworld_partial_to_full": {
136
+ "test": _URLS_prefix["mystery_blocksworld"] + "/task_8_3_partial_to_full.json"
137
+ },
138
+ "mystery_blocksworld_3_plan_generation": {
139
+ "test": _URLS_prefix["mystery_blocksworld_3"] + "/task_1_plan_generation.json"
140
+ },
141
+ "mystery_blocksworld_3_plan_optimality": {
142
+ "test": _URLS_prefix["mystery_blocksworld_3"] + "/task_2_plan_optimality.json"
143
+ },
144
+ "mystery_blocksworld_3_plan_verification": {
145
+ "test": _URLS_prefix["mystery_blocksworld_3"] + "/task_3_plan_verification.json"
146
+ },
147
+ "mystery_blocksworld_3_plan_reuse": {
148
+ "test": _URLS_prefix["mystery_blocksworld_3"] + "/task_4_plan_reuse.json"
149
+ },
150
+ "mystery_blocksworld_3_plan_generalization": {
151
+ "test": _URLS_prefix["mystery_blocksworld_3"] + "/task_5_plan_reuse.json"
152
+ },
153
+ "mystery_blocksworld_3_replanning": {
154
+ "test": _URLS_prefix["mystery_blocksworld_3"] + "/task_6_replanning.json"
155
+ },
156
+ "mystery_blocksworld_3_plan_execution": {
157
+ "test": _URLS_prefix["mystery_blocksworld_3"] + "/task_7_plan_execution.json"
158
+ },
159
+ "mystery_blocksworld_3_plan_shuffling": {
160
+ "test": _URLS_prefix["mystery_blocksworld_3"] + "/task_8_1_goal_shuffling.json"
161
+ },
162
+ "mystery_blocksworld_3_plan_full_to_partial": {
163
+ "test": _URLS_prefix["mystery_blocksworld_3"] + "/task_8_2_full_to_partial.json"
164
+ },
165
+ "mystery_blocksworld_3_partial_to_full": {
166
+ "test": _URLS_prefix["mystery_blocksworld_3"] + "/task_8_3_partial_to_full.json"
167
+ },
168
+ "logistics_plan_generation": {
169
+ "test": _URLS_prefix["logistics"] + "/task_1_plan_generation.json"
170
+ },
171
+ "logistics_plan_optimality": {
172
+ "test": _URLS_prefix["logistics"] + "/task_2_plan_optimality.json"
173
+ },
174
+ "logistics_plan_verification": {
175
+ "test": _URLS_prefix["logistics"] + "/task_3_plan_verification.json"
176
+ },
177
+ "logistics_plan_reuse": {
178
+ "test": _URLS_prefix["logistics"] + "/task_4_plan_reuse.json"
179
+ },
180
+ "logistics_plan_generalization": {
181
+ "test": _URLS_prefix["logistics"] + "/task_5_plan_reuse.json"
182
+ },
183
+ "logistics_replanning": {
184
+ "test": _URLS_prefix["logistics"] + "/task_6_replanning.json"
185
+ },
186
+ "logistics_plan_execution": {
187
+ "test": _URLS_prefix["logistics"] + "/task_7_plan_execution.json"
188
+ },
189
+ "logistics_plan_shuffling": {
190
+ "test": _URLS_prefix["logistics"] + "/task_8_1_goal_shuffling.json"
191
+ },
192
+ "logistics_plan_full_to_partial": {
193
+ "test": _URLS_prefix["logistics"] + "/task_8_2_full_to_partial.json"
194
+ },
195
+ "logistics_partial_to_full": {
196
+ "test": _URLS_prefix["logistics"] + "/task_8_3_partial_to_full.json"
197
+ }
 
 
 
198
  }
199
 
200
 
201
+
202
  class PlanBench(datasets.GeneratorBasedBuilder):
203
  """ LMentry is a benchmark for measuring language model performance on tasks that are trivial to humans. LMentry consists of 25 tasks which humans are generally expected to perform perfectly, e.g. writing a sentence containing a specific word, identifying which words in a list belong to a specific category, choosing which of two words is longer, or identifying which of two words rhymes with a third word.
204
  """