Datasets:
Upload folder using huggingface_hub
Browse files- .gitattributes +3 -0
- LICENSE.txt +26 -0
- README.md +65 -0
- games.jsonl +3 -0
- train.jsonl +3 -0
- val.jsonl +3 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
games.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
train.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
val.jsonl filter=lfs diff=lfs merge=lfs -text
|
LICENSE.txt
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
The MIT License (MIT)
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2014 Gabriele Cirulli
|
| 4 |
+
Copyright (c) 2026 Yeth (yeth.dev)
|
| 5 |
+
|
| 6 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 7 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 8 |
+
in the Software without restriction, including without limitation the rights
|
| 9 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 10 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 11 |
+
furnished to do so, subject to the following conditions:
|
| 12 |
+
|
| 13 |
+
1. The above copyright notice and this permission notice shall be included in
|
| 14 |
+
all copies or substantial portions of the Software.
|
| 15 |
+
|
| 16 |
+
2. Credit must be given to Yeth as the original
|
| 17 |
+
author of the AI model, training code, and dataset in any derivative work,
|
| 18 |
+
publication, or distribution that uses them.
|
| 19 |
+
|
| 20 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 21 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 22 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 23 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 24 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 25 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
| 26 |
+
THE SOFTWARE.
|
README.md
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- reinforcement-learning
|
| 5 |
+
tags:
|
| 6 |
+
- "2048"
|
| 7 |
+
- game-ai
|
| 8 |
+
- supervised-learning
|
| 9 |
+
- imitation-learning
|
| 10 |
+
size_categories:
|
| 11 |
+
- 10K<n<100K
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# 2048 Expert Gameplay Dataset
|
| 15 |
+
|
| 16 |
+
State-action pairs from an expert N-Tuple Network agent playing 2048.
|
| 17 |
+
Can be used for imitation learning / supervised training of 2048 agents.
|
| 18 |
+
|
| 19 |
+
## Stats
|
| 20 |
+
|
| 21 |
+
- Source games: 10,000
|
| 22 |
+
- Games after filtering: 9,000
|
| 23 |
+
- Total moves: 54,010,983
|
| 24 |
+
- Average score: 143,847
|
| 25 |
+
- Win rate (>= 2048): 100% (losing games removed)
|
| 26 |
+
- Score floor: 62,152 (bottom 10% removed)
|
| 27 |
+
|
| 28 |
+
## Files
|
| 29 |
+
|
| 30 |
+
- `train.jsonl` - 8,100 games (48,592,790 moves) for training
|
| 31 |
+
- `val.jsonl` - 900 games (5,418,193 moves) for validation
|
| 32 |
+
- `games.jsonl` - original unfiltered dataset (10,000 games)
|
| 33 |
+
|
| 34 |
+
## Filtering
|
| 35 |
+
|
| 36 |
+
The raw dataset was filtered to improve supervised learning quality:
|
| 37 |
+
1. Removed games that did not reach the 2048 tile (losing games with desperate end-moves)
|
| 38 |
+
2. Removed bottom 10% by score (bad-luck games with messy board patterns)
|
| 39 |
+
3. Split 90/10 into train/validation (every 10th kept game to validation)
|
| 40 |
+
|
| 41 |
+
## Format
|
| 42 |
+
|
| 43 |
+
JSONL format, one game per line. Each game object:
|
| 44 |
+
|
| 45 |
+
```json
|
| 46 |
+
{
|
| 47 |
+
"game_id": 0,
|
| 48 |
+
"score": 142056,
|
| 49 |
+
"max_tile": 8192,
|
| 50 |
+
"num_moves": 2341,
|
| 51 |
+
"moves": [
|
| 52 |
+
{
|
| 53 |
+
"board": [0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0],
|
| 54 |
+
"action": 0,
|
| 55 |
+
"action_name": "up",
|
| 56 |
+
"reward": 0,
|
| 57 |
+
"move_number": 0
|
| 58 |
+
}
|
| 59 |
+
]
|
| 60 |
+
}
|
| 61 |
+
```
|
| 62 |
+
|
| 63 |
+
- `board`: 16 tile values in row-major order (0=empty, 2/4/8/...)
|
| 64 |
+
- `action`: 0=up, 1=right, 2=down, 3=left
|
| 65 |
+
- `reward`: points from merges on this move
|
games.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:526ddf3239bd747a591f9e66d26d1acc68435751bf9434efdb9622ac35fe3028
|
| 3 |
+
size 6562770344
|
train.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:008274131d4e0a786504070ca06543c128e75b207eac4b9971fb802f9d3477c6
|
| 3 |
+
size 5712671092
|
val.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d822a524da71be6d4e35678f3e642df68d86466db26c0877e1645d2edb49caf9
|
| 3 |
+
size 637045167
|