fix: name of variable
Browse files- planbench.py +7 -7
planbench.py
CHANGED
|
@@ -207,7 +207,7 @@ class PlanBench(datasets.GeneratorBasedBuilder):
|
|
| 207 |
|
| 208 |
BUILDER_CONFIGS = [
|
| 209 |
datasets.BuilderConfig(
|
| 210 |
-
|
| 211 |
version=datasets.Version("0.0.1"),
|
| 212 |
description=f"{config_name} task from PlanBench"
|
| 213 |
)
|
|
@@ -219,15 +219,15 @@ class PlanBench(datasets.GeneratorBasedBuilder):
|
|
| 219 |
"query": datasets.Value("string"),
|
| 220 |
"ground_truth_plan": datasets.Value("string"),
|
| 221 |
}
|
| 222 |
-
if ("plan_generation" in self.
|
| 223 |
-
"plan_optimality" in self.
|
| 224 |
"plan_generalization" in self.config_name or
|
| 225 |
-
"replanning" in self.
|
| 226 |
-
"plan_execution" in self.
|
| 227 |
features.update({"example_istance_ids": datasets.Sequence(datasets.Value("string"))})
|
| 228 |
-
if "plan_reuse" in self.
|
| 229 |
features.update({"new_instance": datasets.Value("string")})
|
| 230 |
-
if "goal_shuffling" in self.
|
| 231 |
features.update({"single_goal_instances": datasets.Value("int32")})
|
| 232 |
features = datasets.Features(features)
|
| 233 |
return datasets.DatasetInfo(
|
|
|
|
| 207 |
|
| 208 |
BUILDER_CONFIGS = [
|
| 209 |
datasets.BuilderConfig(
|
| 210 |
+
name=config_name,
|
| 211 |
version=datasets.Version("0.0.1"),
|
| 212 |
description=f"{config_name} task from PlanBench"
|
| 213 |
)
|
|
|
|
| 219 |
"query": datasets.Value("string"),
|
| 220 |
"ground_truth_plan": datasets.Value("string"),
|
| 221 |
}
|
| 222 |
+
if ("plan_generation" in self.config.name or
|
| 223 |
+
"plan_optimality" in self.config.name or
|
| 224 |
"plan_generalization" in self.config_name or
|
| 225 |
+
"replanning" in self.config.name or
|
| 226 |
+
"plan_execution" in self.config.name):
|
| 227 |
features.update({"example_istance_ids": datasets.Sequence(datasets.Value("string"))})
|
| 228 |
+
if "plan_reuse" in self.config.name or "replanning" in self.config.name:
|
| 229 |
features.update({"new_instance": datasets.Value("string")})
|
| 230 |
+
if "goal_shuffling" in self.config.name:
|
| 231 |
features.update({"single_goal_instances": datasets.Value("int32")})
|
| 232 |
features = datasets.Features(features)
|
| 233 |
return datasets.DatasetInfo(
|