Onisci commited on
Commit
aaf0408
·
verified ·
1 Parent(s): 7cec401

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +59 -3
README.md CHANGED
@@ -1,3 +1,59 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # GraSIF Repository
2
+
3
+ This folder contains three graph datasets saved as pickle files, used for the evaluation of methods. Each dataset is a list of dictionaries containing the task name, initial state, and goal state represented as NetworkX graphs. Additionally, each dictionary includes specific information relevant to the dataset.
4
+
5
+ | **Data** | **Number of Tasks** | **Mean nodes** | **Actions** |
6
+ |---------------------|-----------|-----------|-------------|
7
+ | SayPlan Office | 25 | 202.6 | 2.1 |
8
+ | Behaviour-1K | 186 | 12.1 | 4.9 |
9
+ | VirtualHome | 347 | 195.7 | 1.6 |
10
+
11
+ **Table 1:** Dataset comparison. *Actions* represent the mean number of nodes changed between the initial and goal graph.
12
+
13
+
14
+ To load a dataset, use the following code snippet:
15
+
16
+ ```python
17
+ import pickle
18
+
19
+ with open('./datasets/<name>.pkl', 'rb') as file:
20
+ tasks = pickle.load(file)
21
+
22
+ ```
23
+ ## SayPlan Office
24
+
25
+ The SayPlan Office dataset represents graphs and tasks defined in [SayPlan](https://sayplan.github.io/). Each task consists of a dictionary with the following structure:
26
+
27
+ - `name`: The name of the task.
28
+ - `human`: Human-readable task description (same as `name` for SayPlan).
29
+ - `detailed`: Detailed task description (same as `name` for SayPlan).
30
+ - `init`: Initial state as a NetworkX graph.
31
+ - `goal`: Goal state as a NetworkX graph.
32
+ - `actions`: A list of ground-truth actions to complete the task.
33
+
34
+ ## Behaviour-1K
35
+
36
+ The Behaviour-1K dataset represents tasks defined in [Behaviour1K](https://behavior.stanford.edu/knowledgebase/tasks/index.html). For each task defined in BDDL, a subgraph was constructed to represent the environment. Using this subgraph, the goal graph was created, and human-readable as well as detailed task descriptions were added.
37
+
38
+ The dataset contains a total of 186 tasks, each represented by a dictionary with the following structure:
39
+
40
+ - `name`: The name of the task from Behaviour1K.
41
+ - `human`: Human-readable task description.
42
+ - `detailed`: Detailed task description.
43
+ - `init`: Initial state as a NetworkX graph.
44
+ - `goal`: Goal state as a NetworkX graph.
45
+
46
+ ## VirtualHome RobotHow
47
+
48
+ The VirtualHome dataset represents tasks from the [RobotHow](http://virtual-home.org/tools/explore.html) dataset. For each task, the VirtualHome graph was reconstructed into a structure compatible with our methods. This was achieved using the `graph_parser.py` script available in the `utils` folder of the repository.
49
+
50
+ Additionally, an `ids` dictionary maps nodes from the initial NetworkX graph to VirtualHome IDs. For example, the node `('fridge', 1)` in the initial graph corresponds to the fridge node with ID 67 in the VirtualHome backend graph. This mapping is useful when using the dataset with the VirtualHome simulator.
51
+
52
+ Each task is represented by a dictionary with the following structure:
53
+
54
+ - `name`: The name of the task from RobotHow.
55
+ - `human`: Human-readable task description. (Same as name for RobotHow)
56
+ - `detailed`: Detailed task description.
57
+ - `init`: Initial state as a NetworkX graph.
58
+ - `goal`: Goal state as a NetworkX graph.
59
+ - `ids`: Mapping of nodes to VirtualHome IDs.