Create README.md
Browse files
README.md
CHANGED
@@ -1,19 +1,101 @@
|
|
1 |
---
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
- other
|
6 |
-
language:
|
7 |
-
- code
|
8 |
-
tags:
|
9 |
-
- crafter
|
10 |
-
- craftax
|
11 |
-
- expert-demonstrations
|
12 |
-
- skill-segmentation
|
13 |
-
- action-segmentation
|
14 |
-
- object-centric
|
15 |
-
pretty_name: Craftax Skill Segmentation Dataset
|
16 |
-
size_categories:
|
17 |
-
- 1K<n<10K
|
18 |
-
num_of_elements: 2354
|
19 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
# For reference on dataset card metadata, see the spec: https://github.com/huggingface/hub-docs/blob/main/datasetcard.md?plain=1
|
3 |
+
# Doc / guide: https://huggingface.co/docs/hub/datasets-cards
|
4 |
+
{}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
---
|
6 |
+
|
7 |
+
# Dataset Card for Craftax Expert Skill Data
|
8 |
+
This dataset consists of expert demonstration trajectories from the Crafter (Craftax) environment. Each trajectory includes ground-truth skill segmentation annotations, enabling research into action segmentation, skill discovery, imitation learning, and reinforcement learning with temporally-structured data.
|
9 |
+
|
10 |
+
## Dataset Details
|
11 |
+
|
12 |
+
### Dataset Description
|
13 |
+
|
14 |
+
The **Craftax Skill Segmentation Dataset** contains gameplay trajectories from an expert policy in the Crafter environment. Each trajectory is labeled with ground-truth skill boundaries and skill identifiers, allowing users to train and evaluate models for temporal segmentation, behavior cloning, and skill-based representation learning.
|
15 |
+
|
16 |
+
- **Curated by:** Damio
|
17 |
+
- **License:** Apache 2.0
|
18 |
+
- **Language(s) (NLP):** Not applicable (code/visual)
|
19 |
+
|
20 |
+
### Dataset Sources
|
21 |
+
|
22 |
+
- **Repository:** https://huggingface.co/datasets/dami2106/Craftax-Skill-Data
|
23 |
+
- **Environment:** [CraftAX](https://craftaxenv.github.io/)
|
24 |
+
|
25 |
+
## Uses
|
26 |
+
|
27 |
+
### Direct Use
|
28 |
+
|
29 |
+
This dataset is designed for use in:
|
30 |
+
- Training models to segment long-horizon behaviors into reusable skills.
|
31 |
+
- Evaluating action segmentation or hierarchical RL approaches.
|
32 |
+
- Studying object-centric or spatially grounded RL methods.
|
33 |
+
- Pretraining representations from visual expert data.
|
34 |
+
|
35 |
+
### Out-of-Scope Use
|
36 |
+
|
37 |
+
- Language-based tasks (no natural language data is included).
|
38 |
+
- Real-world robotics (simulation-only data).
|
39 |
+
- Tasks requiring raw image pixels if they are not included in your setup.
|
40 |
+
|
41 |
+
## Dataset Structure
|
42 |
+
|
43 |
+
Each data file includes:
|
44 |
+
- A sequence of states (top-down pixels, symbolic, pixel-obs, or PCA features).
|
45 |
+
- Corresponding actions (no-op action appended for final state).
|
46 |
+
- Skill labels marking where each skill begins and ends.
|
47 |
+
|
48 |
+
Example structure:
|
49 |
+
Example structure:
|
50 |
+
```json
|
51 |
+
{
|
52 |
+
"task_id": "name of the task",
|
53 |
+
"pixel_obs": [...], // Raw visual observations (e.g., RGB frames)
|
54 |
+
"top_down_obs": [...], // Environment state from a top-down view
|
55 |
+
"pca_features": [...], // Compressed feature vectors
|
56 |
+
"actions": [...], // Agent actions
|
57 |
+
"groundTruth": [...], // Ground-truth skill segmentation labels
|
58 |
+
"mapping": // Mapping metadata for skill ID -> groundTruth
|
59 |
+
|
60 |
+
}
|
61 |
+
```
|
62 |
+
|
63 |
+
## Dataset Creation
|
64 |
+
|
65 |
+
### Curation Rationale
|
66 |
+
|
67 |
+
This dataset was created to support research in skill discovery and temporal abstraction in visual reinforcement learning environments. The Craftax environment provides meaningful high-level tasks and object interactions, making it a suitable benchmark.
|
68 |
+
|
69 |
+
### Source Data
|
70 |
+
|
71 |
+
#### Data Collection and Processing
|
72 |
+
|
73 |
+
- The expert trajectories were generated using a scripted or trained expert policy in the Craftax environment.
|
74 |
+
- Skill labels were annotated using environment signals (e.g., task success or inventory changes) and manual rules.
|
75 |
+
|
76 |
+
#### Who are the source data producers?
|
77 |
+
|
78 |
+
The data was generated programmatically in the Craftax simulation environment by an expert agent.
|
79 |
+
|
80 |
+
### Annotations
|
81 |
+
|
82 |
+
#### Annotation process
|
83 |
+
|
84 |
+
Skill annotations were added using heuristics based on inventory changes, environment triggers, and task events. They were verified for consistency across episodes.
|
85 |
+
|
86 |
+
#### Who are the annotators?
|
87 |
+
|
88 |
+
Automated heuristics with manual inspection during development.
|
89 |
+
|
90 |
+
|
91 |
+
|
92 |
+
## Bias, Risks, and Limitations
|
93 |
+
|
94 |
+
- The dataset is based on simulation, so real-world transferability may be limited.
|
95 |
+
- Skill labels are heuristically defined, which may not reflect a true underlying skill taxonomy.
|
96 |
+
- The expert behavior might be biased toward one specific strategy or task order.
|
97 |
+
|
98 |
+
### Recommendations
|
99 |
+
|
100 |
+
Researchers should consider validating learned skills on diverse evaluation tasks. Skill segmentation boundaries are approximations and might not generalize well to different agents or environments.
|
101 |
+
|