domain stringclasses 5
values | instance_id stringlengths 1 4 | prompt_id int64 0 9 | mistake_rate float64 0.2 0.2 | instruction stringclasses 5
values | input stringlengths 267 1.77k | output stringlengths 164 2.49k | plan_length int64 3 26 | raw_plan sequencelengths 3 26 | full_text_prompt stringlengths 1.69k 8.41k |
|---|---|---|---|---|---|---|---|---|---|
barman | 0 | 0 | 0.2 | I have to plan the actions for a robotic bartender to prepare cocktails. The bartender has two hands and works with various containers and ingredients to mix and serve drinks.
Here are the actions that can be performed:
Grasp a container (shot or shaker) from the table.
Leave a container on the table.
Fill-shot with an... | As initial conditions I have that, shaker_1 is clean, shot_1 is clean, shot_2 is clean, shot_3 is clean, cocktail_1 has ingredient_1 as its first ingredient, cocktail_1 has ingredient_2 as its second ingredient, dispenser_1 dispenses ingredient_1, dispenser_2 dispenses ingredient_2, dispenser_3 dispenses ingredient_3, ... | My plan is as follows:
<PLAN>
fill the shot_3 on right_hand with ingredient_2 using dispenser_2 when left_hand is empty WRONG
grasp the shaker_1 using left_hand
grasp the shot_3 using right_hand
leave the shaker_1 using left_hand
leave the shot_3 using right_hand WRONG
fill the shot_3 on right_hand with ingredient_1 ... | 15 | [
"(grasp left shaker1)",
"(grasp right shot3)",
"(leave left shaker1)",
"(fill-shot shot3 ingredient1 right left dispenser1)",
"(grasp left shaker1)",
"(pour-shot-to-clean-shaker shot3 ingredient1 shaker1 right l0 l1)",
"(leave left shaker1)",
"(clean-shot shot3 ingredient1 right left)",
"(fill-shot ... | I have to plan the actions for a robotic bartender to prepare cocktails. The bartender has two hands and works with various containers and ingredients to mix and serve drinks.
Here are the actions that can be performed:
Grasp a container (shot or shaker) from the table.
Leave a container on the table.
Fill-shot with an... |
barman | 0 | 1 | 0.2 | I have to plan the actions for a robotic bartender to prepare cocktails. The bartender has two hands and works with various containers and ingredients to mix and serve drinks.
Here are the actions that can be performed:
Grasp a container (shot or shaker) from the table.
Leave a container on the table.
Fill-shot with an... | As initial conditions I have that, shaker_1 is clean, shot_1 is clean, shot_2 is clean, shot_3 is clean, cocktail_1 has ingredient_1 as its first ingredient, cocktail_1 has ingredient_2 as its second ingredient, dispenser_1 dispenses ingredient_1, dispenser_2 dispenses ingredient_2, dispenser_3 dispenses ingredient_3, ... | My plan is as follows:
<PLAN>
grasp the shaker_1 using left_hand
grasp the shot_2 using left_hand WRONG
grasp the shot_3 using right_hand
pour from shot_3 containing ingredient_1 to clean shaker_1 using right_hand from level_0 to level_1 WRONG
leave the shaker_1 using left_hand
fill the shot_3 on right_hand with ingr... | 15 | [
"(grasp left shaker1)",
"(grasp right shot3)",
"(leave left shaker1)",
"(fill-shot shot3 ingredient1 right left dispenser1)",
"(grasp left shaker1)",
"(pour-shot-to-clean-shaker shot3 ingredient1 shaker1 right l0 l1)",
"(leave left shaker1)",
"(clean-shot shot3 ingredient1 right left)",
"(fill-shot ... | I have to plan the actions for a robotic bartender to prepare cocktails. The bartender has two hands and works with various containers and ingredients to mix and serve drinks.
Here are the actions that can be performed:
Grasp a container (shot or shaker) from the table.
Leave a container on the table.
Fill-shot with an... |
barman | 0 | 2 | 0.2 | I have to plan the actions for a robotic bartender to prepare cocktails. The bartender has two hands and works with various containers and ingredients to mix and serve drinks.
Here are the actions that can be performed:
Grasp a container (shot or shaker) from the table.
Leave a container on the table.
Fill-shot with an... | As initial conditions I have that, shaker_1 is clean, shot_1 is clean, shot_2 is clean, shot_3 is clean, cocktail_1 has ingredient_1 as its first ingredient, cocktail_1 has ingredient_2 as its second ingredient, dispenser_1 dispenses ingredient_1, dispenser_2 dispenses ingredient_2, dispenser_3 dispenses ingredient_3, ... | My plan is as follows:
<PLAN>
grasp the shaker_1 using left_hand WRONG
grasp the shaker_1 using left_hand
grasp the shot_3 using right_hand
leave the shaker_1 using left_hand
grasp the shaker_1 using left_hand WRONG
fill the shot_3 on right_hand with ingredient_1 using dispenser_1 when left_hand is empty
grasp the sh... | 15 | [
"(grasp left shaker1)",
"(grasp right shot3)",
"(leave left shaker1)",
"(fill-shot shot3 ingredient1 right left dispenser1)",
"(grasp left shaker1)",
"(pour-shot-to-clean-shaker shot3 ingredient1 shaker1 right l0 l1)",
"(leave left shaker1)",
"(clean-shot shot3 ingredient1 right left)",
"(fill-shot ... | I have to plan the actions for a robotic bartender to prepare cocktails. The bartender has two hands and works with various containers and ingredients to mix and serve drinks.
Here are the actions that can be performed:
Grasp a container (shot or shaker) from the table.
Leave a container on the table.
Fill-shot with an... |
barman | 0 | 3 | 0.2 | I have to plan the actions for a robotic bartender to prepare cocktails. The bartender has two hands and works with various containers and ingredients to mix and serve drinks.
Here are the actions that can be performed:
Grasp a container (shot or shaker) from the table.
Leave a container on the table.
Fill-shot with an... | As initial conditions I have that, shaker_1 is clean, shot_1 is clean, shot_2 is clean, shot_3 is clean, cocktail_1 has ingredient_1 as its first ingredient, cocktail_1 has ingredient_2 as its second ingredient, dispenser_1 dispenses ingredient_1, dispenser_2 dispenses ingredient_2, dispenser_3 dispenses ingredient_3, ... | My plan is as follows:
<PLAN>
grasp the shaker_1 using left_hand
grasp the shot_3 using right_hand
shake shaker_1 on left_hand containing ingredient_1 and ingredient_2 to get cocktail_1 when right_hand is empty WRONG
leave the shaker_1 using left_hand
fill the shot_3 on right_hand with ingredient_1 using dispenser_1 w... | 15 | [
"(grasp left shaker1)",
"(grasp right shot3)",
"(leave left shaker1)",
"(fill-shot shot3 ingredient1 right left dispenser1)",
"(grasp left shaker1)",
"(pour-shot-to-clean-shaker shot3 ingredient1 shaker1 right l0 l1)",
"(leave left shaker1)",
"(clean-shot shot3 ingredient1 right left)",
"(fill-shot ... | I have to plan the actions for a robotic bartender to prepare cocktails. The bartender has two hands and works with various containers and ingredients to mix and serve drinks.
Here are the actions that can be performed:
Grasp a container (shot or shaker) from the table.
Leave a container on the table.
Fill-shot with an... |
barman | 0 | 4 | 0.2 | I have to plan the actions for a robotic bartender to prepare cocktails. The bartender has two hands and works with various containers and ingredients to mix and serve drinks.
Here are the actions that can be performed:
Grasp a container (shot or shaker) from the table.
Leave a container on the table.
Fill-shot with an... | As initial conditions I have that, shaker_1 is clean, shot_1 is clean, shot_2 is clean, shot_3 is clean, cocktail_1 has ingredient_1 as its first ingredient, cocktail_1 has ingredient_2 as its second ingredient, dispenser_1 dispenses ingredient_1, dispenser_2 dispenses ingredient_2, dispenser_3 dispenses ingredient_3, ... | My plan is as follows:
<PLAN>
grasp the shaker_1 using left_hand
grasp the shot_3 using right_hand
leave the shaker_1 using left_hand
pour from shot_3 containing ingredient_2 to used shaker_1 using right_hand from level_1 to level_2 WRONG
shake shaker_1 on left_hand containing ingredient_1 and ingredient_2 to get cock... | 15 | [
"(grasp left shaker1)",
"(grasp right shot3)",
"(leave left shaker1)",
"(fill-shot shot3 ingredient1 right left dispenser1)",
"(grasp left shaker1)",
"(pour-shot-to-clean-shaker shot3 ingredient1 shaker1 right l0 l1)",
"(leave left shaker1)",
"(clean-shot shot3 ingredient1 right left)",
"(fill-shot ... | I have to plan the actions for a robotic bartender to prepare cocktails. The bartender has two hands and works with various containers and ingredients to mix and serve drinks.
Here are the actions that can be performed:
Grasp a container (shot or shaker) from the table.
Leave a container on the table.
Fill-shot with an... |
barman | 0 | 5 | 0.2 | I have to plan the actions for a robotic bartender to prepare cocktails. The bartender has two hands and works with various containers and ingredients to mix and serve drinks.
Here are the actions that can be performed:
Grasp a container (shot or shaker) from the table.
Leave a container on the table.
Fill-shot with an... | As initial conditions I have that, shaker_1 is clean, shot_1 is clean, shot_2 is clean, shot_3 is clean, cocktail_1 has ingredient_1 as its first ingredient, cocktail_1 has ingredient_2 as its second ingredient, dispenser_1 dispenses ingredient_1, dispenser_2 dispenses ingredient_2, dispenser_3 dispenses ingredient_3, ... | My plan is as follows:
<PLAN>
grasp the shaker_1 using left_hand
grasp the shot_3 using right_hand
leave the shaker_1 using left_hand WRONG
leave the shaker_1 using left_hand
leave the shaker_1 using left_hand WRONG
fill the shot_3 on right_hand with ingredient_1 using dispenser_1 when left_hand is empty
grasp the sh... | 15 | [
"(grasp left shaker1)",
"(grasp right shot3)",
"(leave left shaker1)",
"(fill-shot shot3 ingredient1 right left dispenser1)",
"(grasp left shaker1)",
"(pour-shot-to-clean-shaker shot3 ingredient1 shaker1 right l0 l1)",
"(leave left shaker1)",
"(clean-shot shot3 ingredient1 right left)",
"(fill-shot ... | I have to plan the actions for a robotic bartender to prepare cocktails. The bartender has two hands and works with various containers and ingredients to mix and serve drinks.
Here are the actions that can be performed:
Grasp a container (shot or shaker) from the table.
Leave a container on the table.
Fill-shot with an... |
barman | 0 | 6 | 0.2 | I have to plan the actions for a robotic bartender to prepare cocktails. The bartender has two hands and works with various containers and ingredients to mix and serve drinks.
Here are the actions that can be performed:
Grasp a container (shot or shaker) from the table.
Leave a container on the table.
Fill-shot with an... | As initial conditions I have that, shaker_1 is clean, shot_1 is clean, shot_2 is clean, shot_3 is clean, cocktail_1 has ingredient_1 as its first ingredient, cocktail_1 has ingredient_2 as its second ingredient, dispenser_1 dispenses ingredient_1, dispenser_2 dispenses ingredient_2, dispenser_3 dispenses ingredient_3, ... | My plan is as follows:
<PLAN>
grasp the shot_3 using right_hand WRONG
grasp the shaker_1 using left_hand
grasp the shot_3 using right_hand
leave the shaker_1 using left_hand
pour from shot_3 containing ingredient_1 to clean shaker_1 using right_hand from level_0 to level_1 WRONG
fill the shot_3 on right_hand with ing... | 15 | [
"(grasp left shaker1)",
"(grasp right shot3)",
"(leave left shaker1)",
"(fill-shot shot3 ingredient1 right left dispenser1)",
"(grasp left shaker1)",
"(pour-shot-to-clean-shaker shot3 ingredient1 shaker1 right l0 l1)",
"(leave left shaker1)",
"(clean-shot shot3 ingredient1 right left)",
"(fill-shot ... | I have to plan the actions for a robotic bartender to prepare cocktails. The bartender has two hands and works with various containers and ingredients to mix and serve drinks.
Here are the actions that can be performed:
Grasp a container (shot or shaker) from the table.
Leave a container on the table.
Fill-shot with an... |
barman | 0 | 7 | 0.2 | I have to plan the actions for a robotic bartender to prepare cocktails. The bartender has two hands and works with various containers and ingredients to mix and serve drinks.
Here are the actions that can be performed:
Grasp a container (shot or shaker) from the table.
Leave a container on the table.
Fill-shot with an... | As initial conditions I have that, shaker_1 is clean, shot_1 is clean, shot_2 is clean, shot_3 is clean, cocktail_1 has ingredient_1 as its first ingredient, cocktail_1 has ingredient_2 as its second ingredient, dispenser_1 dispenses ingredient_1, dispenser_2 dispenses ingredient_2, dispenser_3 dispenses ingredient_3, ... | My plan is as follows:
<PLAN>
grasp the shaker_1 using left_hand
grasp the shot_3 using right_hand
leave the shaker_1 using left_hand
fill the shot_3 on right_hand with ingredient_1 using dispenser_1 when left_hand is empty
grasp the shaker_1 using left_hand
leave the shaker_1 using left_hand WRONG
pour from shot_3 co... | 15 | [
"(grasp left shaker1)",
"(grasp right shot3)",
"(leave left shaker1)",
"(fill-shot shot3 ingredient1 right left dispenser1)",
"(grasp left shaker1)",
"(pour-shot-to-clean-shaker shot3 ingredient1 shaker1 right l0 l1)",
"(leave left shaker1)",
"(clean-shot shot3 ingredient1 right left)",
"(fill-shot ... | I have to plan the actions for a robotic bartender to prepare cocktails. The bartender has two hands and works with various containers and ingredients to mix and serve drinks.
Here are the actions that can be performed:
Grasp a container (shot or shaker) from the table.
Leave a container on the table.
Fill-shot with an... |
barman | 0 | 8 | 0.2 | I have to plan the actions for a robotic bartender to prepare cocktails. The bartender has two hands and works with various containers and ingredients to mix and serve drinks.
Here are the actions that can be performed:
Grasp a container (shot or shaker) from the table.
Leave a container on the table.
Fill-shot with an... | As initial conditions I have that, shaker_1 is clean, shot_1 is clean, shot_2 is clean, shot_3 is clean, cocktail_1 has ingredient_1 as its first ingredient, cocktail_1 has ingredient_2 as its second ingredient, dispenser_1 dispenses ingredient_1, dispenser_2 dispenses ingredient_2, dispenser_3 dispenses ingredient_3, ... | My plan is as follows:
<PLAN>
grasp the shaker_1 using left_hand
grasp the shot_3 using left_hand WRONG
grasp the shot_3 using right_hand
leave the shaker_1 using left_hand
fill the shot_3 on right_hand with ingredient_1 using dispenser_1 when left_hand is empty
grasp the shaker_1 using left_hand
pour from shot_3 cont... | 15 | [
"(grasp left shaker1)",
"(grasp right shot3)",
"(leave left shaker1)",
"(fill-shot shot3 ingredient1 right left dispenser1)",
"(grasp left shaker1)",
"(pour-shot-to-clean-shaker shot3 ingredient1 shaker1 right l0 l1)",
"(leave left shaker1)",
"(clean-shot shot3 ingredient1 right left)",
"(fill-shot ... | I have to plan the actions for a robotic bartender to prepare cocktails. The bartender has two hands and works with various containers and ingredients to mix and serve drinks.
Here are the actions that can be performed:
Grasp a container (shot or shaker) from the table.
Leave a container on the table.
Fill-shot with an... |
barman | 0 | 9 | 0.2 | I have to plan the actions for a robotic bartender to prepare cocktails. The bartender has two hands and works with various containers and ingredients to mix and serve drinks.
Here are the actions that can be performed:
Grasp a container (shot or shaker) from the table.
Leave a container on the table.
Fill-shot with an... | As initial conditions I have that, shaker_1 is clean, shot_1 is clean, shot_2 is clean, shot_3 is clean, cocktail_1 has ingredient_1 as its first ingredient, cocktail_1 has ingredient_2 as its second ingredient, dispenser_1 dispenses ingredient_1, dispenser_2 dispenses ingredient_2, dispenser_3 dispenses ingredient_3, ... | My plan is as follows:
<PLAN>
pour from shaker_1 to shot_2 containing cocktail_1 using left_hand from level_1 to level_0 WRONG
grasp the shaker_1 using left_hand
grasp the shot_3 using right_hand
fill the shot_3 on right_hand with ingredient_2 using dispenser_2 when left_hand is empty WRONG
leave the shaker_1 using l... | 15 | [
"(grasp left shaker1)",
"(grasp right shot3)",
"(leave left shaker1)",
"(fill-shot shot3 ingredient1 right left dispenser1)",
"(grasp left shaker1)",
"(pour-shot-to-clean-shaker shot3 ingredient1 shaker1 right l0 l1)",
"(leave left shaker1)",
"(clean-shot shot3 ingredient1 right left)",
"(fill-shot ... | I have to plan the actions for a robotic bartender to prepare cocktails. The bartender has two hands and works with various containers and ingredients to mix and serve drinks.
Here are the actions that can be performed:
Grasp a container (shot or shaker) from the table.
Leave a container on the table.
Fill-shot with an... |
barman | 40 | 0 | 0.2 | I have to plan the actions for a robotic bartender to prepare cocktails. The bartender has two hands and works with various containers and ingredients to mix and serve drinks.
Here are the actions that can be performed:
Grasp a container (shot or shaker) from the table.
Leave a container on the table.
Fill-shot with an... | As initial conditions I have that, shaker_1 is clean, shot_1 is clean, shot_2 is clean, shot_3 is clean, cocktail_1 has ingredient_1 as its first ingredient, cocktail_1 has ingredient_3 as its second ingredient, dispenser_1 dispenses ingredient_1, dispenser_2 dispenses ingredient_2, dispenser_3 dispenses ingredient_3, ... | My plan is as follows:
<PLAN>
grasp the shaker_1 using left_hand
grasp the shot_2 using right_hand
leave the shaker_1 using left_hand
fill the shot_2 on right_hand with ingredient_3 using dispenser_3 when left_hand is empty
pour from shot_2 containing ingredient_3 to clean shaker_1 using right_hand from level_0 to leve... | 16 | [
"(grasp left shaker1)",
"(grasp right shot2)",
"(leave left shaker1)",
"(fill-shot shot2 ingredient3 right left dispenser3)",
"(pour-shot-to-clean-shaker shot2 ingredient3 shaker1 right l0 l1)",
"(clean-shot shot2 ingredient3 right left)",
"(fill-shot shot2 ingredient1 right left dispenser1)",
"(grasp... | I have to plan the actions for a robotic bartender to prepare cocktails. The bartender has two hands and works with various containers and ingredients to mix and serve drinks.
Here are the actions that can be performed:
Grasp a container (shot or shaker) from the table.
Leave a container on the table.
Fill-shot with an... |
barman | 40 | 1 | 0.2 | I have to plan the actions for a robotic bartender to prepare cocktails. The bartender has two hands and works with various containers and ingredients to mix and serve drinks.
Here are the actions that can be performed:
Grasp a container (shot or shaker) from the table.
Leave a container on the table.
Fill-shot with an... | As initial conditions I have that, shaker_1 is clean, shot_1 is clean, shot_2 is clean, shot_3 is clean, cocktail_1 has ingredient_1 as its first ingredient, cocktail_1 has ingredient_3 as its second ingredient, dispenser_1 dispenses ingredient_1, dispenser_2 dispenses ingredient_2, dispenser_3 dispenses ingredient_3, ... | My plan is as follows:
<PLAN>
grasp the shaker_1 using left_hand
grasp the shot_2 using right_hand
leave the shaker_1 using left_hand
clean the shot_2 on right_hand used for ingredient_1 when left_hand is empty WRONG
fill the shot_2 on right_hand with ingredient_3 using dispenser_3 when left_hand is empty
pour from sh... | 16 | [
"(grasp left shaker1)",
"(grasp right shot2)",
"(leave left shaker1)",
"(fill-shot shot2 ingredient3 right left dispenser3)",
"(pour-shot-to-clean-shaker shot2 ingredient3 shaker1 right l0 l1)",
"(clean-shot shot2 ingredient3 right left)",
"(fill-shot shot2 ingredient1 right left dispenser1)",
"(grasp... | I have to plan the actions for a robotic bartender to prepare cocktails. The bartender has two hands and works with various containers and ingredients to mix and serve drinks.
Here are the actions that can be performed:
Grasp a container (shot or shaker) from the table.
Leave a container on the table.
Fill-shot with an... |
End of preview. Expand in Data Studio
This is the training dataset for the ICAPS 2025 paper "Chasing Progress, Not Perfection: Revisiting Strategies for End-to-End LLM Plan Generation".
from pathlib import Path
import os
import jsonlines
from copy import deepcopy
from datasets import load_dataset
from icecream import ic
import enum
from enum import IntEnum
from enum import auto
class CONFIG_TYPES(enum.Enum):
# "type_id": ['t0', 'accu-t1', 'accu-t2', 'accu-t3', 'accu-t4', 'accu-t4', 'accu-t1+t4', 'accu-t2+t4'] # t0 is the raw prompt, t1 is the prompt with shuffled information (data augmentation), t2 is the lite CoT in [PLAN] section, t3 is the dense CoT information in [PLAN] section, t4 contains the "scratchpad" states.
t0 = "raw prompt (t0)"
accu_t1 = "t0 + shuffled content information (t1)"
accu_t2 = "t0 + t1 + lite CoT in [PLAN] section (t2)"
accu_t3 = "t0 + t1 + t2 + dense CoT information in [PLAN] section (t3)"
accu_t4 = "t0 + t1 + t2 + t3 + error-correction scratchpad (t4)"
accu_t1_t4 = "t0 + shuffled domain information (t1) + error-correction scratchpad (t4)"
accu_t2_t4 = "t0 + t1 + lite CoT in [PLAN] section (t2) + error-correction scratchpad (t4)"
accu_t1_t3 = "t0 + shuffled domain information (t1) + dense CoT information in [PLAN] section (t3)"
accu_t1_t3_t4 = "t0 + shuffled domain information (t1) + dense CoT information in [PLAN] section (t3) + error-correction scratchpad (t4)"
PROMPT_NUM_DICT = {
CONFIG_TYPES.t0: 1,
CONFIG_TYPES.accu_t1: 10,
CONFIG_TYPES.accu_t2: 10,
CONFIG_TYPES.accu_t3: 10,
CONFIG_TYPES.accu_t4: 30, # 10 * 3
CONFIG_TYPES.accu_t1_t4: 30, # 10 * 3
CONFIG_TYPES.accu_t2_t4: 30, # 10 * 3
CONFIG_TYPES.accu_t1_t3: 10, # 10
CONFIG_TYPES.accu_t1_t3_t4: 30, # 10 * 3
}
class SPLIT_NAMES(enum.Enum):
train = "training set"
test_same_domain = "test set with the same domain"
test_unseen_domain = "test set with unseen domain"
test_longer_horizon = "test set with longer horizon"
test_mystery_domain = "test set with mystery domain"
SUBDIRS_NAME_DICT = { # * the subdirs name in the raw dataset, use it to access to instance pddl files
# "zraw_data/instances/{domain_name}/{subdir_name}/instance-{instance_id}.pddl"
SPLIT_NAMES.train.name: "generated_basic",
SPLIT_NAMES.test_longer_horizon.name: "generated_basic_longer_plan_len",
SPLIT_NAMES.test_same_domain.name: "generated_basic",
SPLIT_NAMES.test_mystery_domain.name: "generated_basic",
SPLIT_NAMES.test_unseen_domain.name: "generated_basic",
}
@enum.unique
class PLANNING_DOMAIN(enum.Enum):
"""
PLANNING_DOMAIN is an enumeration class that represents different planning domains.
"""
barman = "barman"
blocksworld = "blocksworld"
childsnack = "childsnack"
depots = "depots"
driverlog = "driverlog"
grippers = "grippers"
logistics = "logistics"
satellite = "satellite"
mystery_blocksworld = "mystery_blocksworld"
obfuscated_deceptive_logistics = "obfuscated_deceptive_logistics"
hanoi = "hanoi"
storage = "storage"
def get_splits(self):
"""
Returns the splits associated with this domain.
"""
splits_mapping = {
"barman": [SPLIT_NAMES.train, SPLIT_NAMES.test_same_domain, SPLIT_NAMES.test_longer_horizon],
"blocksworld": [SPLIT_NAMES.train, SPLIT_NAMES.test_same_domain, SPLIT_NAMES.test_longer_horizon],
"childsnack": [SPLIT_NAMES.train, SPLIT_NAMES.test_same_domain, SPLIT_NAMES.test_longer_horizon],
"depots": [SPLIT_NAMES.train, SPLIT_NAMES.test_same_domain, SPLIT_NAMES.test_longer_horizon],
"driverlog": [SPLIT_NAMES.train, SPLIT_NAMES.test_same_domain, SPLIT_NAMES.test_longer_horizon],
"grippers": [SPLIT_NAMES.train, SPLIT_NAMES.test_same_domain, SPLIT_NAMES.test_longer_horizon],
"logistics": [SPLIT_NAMES.train, SPLIT_NAMES.test_same_domain, SPLIT_NAMES.test_longer_horizon],
"satellite": [SPLIT_NAMES.train, SPLIT_NAMES.test_same_domain, SPLIT_NAMES.test_longer_horizon],
"mystery_blocksworld": [SPLIT_NAMES.test_mystery_domain],
"obfuscated_deceptive_logistics": [SPLIT_NAMES.test_mystery_domain],
"hanoi": [SPLIT_NAMES.test_unseen_domain],
"storage": [SPLIT_NAMES.test_unseen_domain]
}
return splits_mapping[self.value]
class FEATURE_CLS(enum.Enum):
domain = auto()
instance_id = auto()
prompt_id = auto()
mistake_rate = auto()
domain_text = auto()
problem_init_text = auto()
problem_goal_text = auto()
plan_text = auto()
plan_length = auto()
raw_plan = auto()
full_text_prompt = auto() # domain_text + problem_init_text + problem_goal_text + plan_text # TODO check in kedro pipeline
def create_folder_structure(mode="default"):
# create folder for each config, and for each config, create folders for each split
for config_name in CONFIG_TYPES:
config_name = config_name.name
for split_name in SPLIT_NAMES:
# # ! debug
# if split_name == SPLIT_NAMES.train:
# continue
split_name = split_name.name
folder = Path(os.path.join(
os.path.dirname(__file__), config_name, split_name
))
folder.mkdir(parents=True, exist_ok=True)
if mode == "default":
pass
elif mode == "debug":
# we will add a test jsonl file in each folder
debug_dict = {
"domain": "blocksworld",
"task": "task1",
"plan": ["action1", "action2"],
}
output_lst = []
for i in range(2):
temp = deepcopy(debug_dict)
temp.update({'id': i})
output_lst.append(temp)
with jsonlines.open(os.path.join(folder, "test.jsonl"), "w") as writer:
writer.write_all(output_lst)
elif mode == "clean":
# we will delete test jsonl file in each folder
for file in folder.glob("*.jsonl"):
file.unlink()
folder.rmdir()
def test_huggingface_dataset(config_str):
dataset_dir = os.path.dirname(__file__)
ic(dataset_dir)
dataset = load_dataset(dataset_dir, config_str)
return dataset
if __name__ == '__main__':
mode = "clean"
create_folder_structure(mode=mode)
mode = "default"
create_folder_structure(mode=mode)
if mode == "debug":
dataset = test_huggingface_dataset(CONFIG_TYPES.t0.name)
- Downloads last month
- 422