Yulolam timmyburn commited on
Commit
781bd0d
·
0 Parent(s):

Duplicate from timmyburn/hexo-bootstrap-corpus

Browse files

Co-authored-by: T <timmyburn@users.noreply.huggingface.co>

Files changed (5) hide show
  1. .gitattributes +60 -0
  2. README.md +77 -0
  3. SCHEMA.md +37 -0
  4. dataset_metadata.json +20 -0
  5. hexo_human_corpus.jsonl +0 -0
.gitattributes ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.avro filter=lfs diff=lfs merge=lfs -text
4
+ *.bin filter=lfs diff=lfs merge=lfs -text
5
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
6
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
7
+ *.ftz filter=lfs diff=lfs merge=lfs -text
8
+ *.gz filter=lfs diff=lfs merge=lfs -text
9
+ *.h5 filter=lfs diff=lfs merge=lfs -text
10
+ *.joblib filter=lfs diff=lfs merge=lfs -text
11
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
12
+ *.lz4 filter=lfs diff=lfs merge=lfs -text
13
+ *.mds filter=lfs diff=lfs merge=lfs -text
14
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
15
+ *.model filter=lfs diff=lfs merge=lfs -text
16
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
17
+ *.npy filter=lfs diff=lfs merge=lfs -text
18
+ *.npz filter=lfs diff=lfs merge=lfs -text
19
+ *.onnx filter=lfs diff=lfs merge=lfs -text
20
+ *.ot filter=lfs diff=lfs merge=lfs -text
21
+ *.parquet filter=lfs diff=lfs merge=lfs -text
22
+ *.pb filter=lfs diff=lfs merge=lfs -text
23
+ *.pickle filter=lfs diff=lfs merge=lfs -text
24
+ *.pkl filter=lfs diff=lfs merge=lfs -text
25
+ *.pt filter=lfs diff=lfs merge=lfs -text
26
+ *.pth filter=lfs diff=lfs merge=lfs -text
27
+ *.rar filter=lfs diff=lfs merge=lfs -text
28
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
29
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
30
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
31
+ *.tar filter=lfs diff=lfs merge=lfs -text
32
+ *.tflite filter=lfs diff=lfs merge=lfs -text
33
+ *.tgz filter=lfs diff=lfs merge=lfs -text
34
+ *.wasm filter=lfs diff=lfs merge=lfs -text
35
+ *.xz filter=lfs diff=lfs merge=lfs -text
36
+ *.zip filter=lfs diff=lfs merge=lfs -text
37
+ *.zst filter=lfs diff=lfs merge=lfs -text
38
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
39
+ # Audio files - uncompressed
40
+ *.pcm filter=lfs diff=lfs merge=lfs -text
41
+ *.sam filter=lfs diff=lfs merge=lfs -text
42
+ *.raw filter=lfs diff=lfs merge=lfs -text
43
+ # Audio files - compressed
44
+ *.aac filter=lfs diff=lfs merge=lfs -text
45
+ *.flac filter=lfs diff=lfs merge=lfs -text
46
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
47
+ *.ogg filter=lfs diff=lfs merge=lfs -text
48
+ *.wav filter=lfs diff=lfs merge=lfs -text
49
+ # Image files - uncompressed
50
+ *.bmp filter=lfs diff=lfs merge=lfs -text
51
+ *.gif filter=lfs diff=lfs merge=lfs -text
52
+ *.png filter=lfs diff=lfs merge=lfs -text
53
+ *.tiff filter=lfs diff=lfs merge=lfs -text
54
+ # Image files - compressed
55
+ *.jpg filter=lfs diff=lfs merge=lfs -text
56
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
57
+ *.webp 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
README.md ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ pretty_name: Hexo Human Corpus (encoding-free)
4
+ task_categories:
5
+ - other
6
+ tags:
7
+ - hex
8
+ - hex-tac-toe
9
+ - board-games
10
+ - game-records
11
+ - reinforcement-learning
12
+ - alphazero
13
+ size_categories:
14
+ - 1K<n<10K
15
+ ---
16
+
17
+ # Hexo Human Corpus
18
+
19
+ Encoding-free corpus of **6,902** decisive human *Hex Tac Toe* games — hexagonal
20
+ grid, six-in-a-row to win (player 1 opens with 1 move, then both players play 2
21
+ moves per turn; the board is theoretically infinite).
22
+
23
+ Each line is one game as a **raw axial move list + outcome**. Nothing about any
24
+ neural-network encoding is baked in — no planes, no fixed board size, no action
25
+ space. Read it with the stdlib `json` module and build whatever representation
26
+ you want.
27
+
28
+ ## Files
29
+
30
+ | file | description |
31
+ |------|-------------|
32
+ | `hexo_human_corpus.jsonl` | the corpus — one game per line |
33
+ | `SCHEMA.md` | full per-line schema + conventions |
34
+ | `dataset_metadata.json` | provenance: counts, sha256, source filter |
35
+
36
+ ## Schema
37
+
38
+ One JSON object per line:
39
+
40
+ ```json
41
+ {"game_hash":"0f8c6bdfc55e7f6f","moves":[[0,0],[2,-2],[-3,3]],"winner":1,"source":"human","elo":[898,955]}
42
+ ```
43
+
44
+ | field | type | meaning |
45
+ |-------|------|---------|
46
+ | `game_hash` | string (16 hex) | SHA-256 of the move sequence — stable content/dedup key |
47
+ | `moves` | array of `[x, y]` | axial hex coords `(x,y)=(q,r)`, in play order |
48
+ | `winner` | `1` or `-1` | `1` = first player (X) wins, `-1` = second player (O) |
49
+ | `source` | string | `"human"` |
50
+ | `elo` | `[int\|null, int\|null]` | `[elo_p1, elo_p2]` |
51
+
52
+ **Conventions**
53
+
54
+ - Axial hex coordinates `(x, y)`; the board is infinite so values can be
55
+ negative. The first player's forced opener is always `(0, 0)`.
56
+ - Replay `moves` in order to reconstruct any board state.
57
+ - Only decisive (six-in-a-row) games are included — there are **no draws**.
58
+
59
+ ## Usage
60
+
61
+ ```python
62
+ import json
63
+
64
+ games = [json.loads(line) for line in open("hexo_human_corpus.jsonl")]
65
+ print(len(games), "games") # 6902
66
+ g = games[0]
67
+ print(g["moves"], g["winner"]) # [[0,0], [2,-2], ...] 1
68
+ ```
69
+
70
+ ## Provenance
71
+
72
+ Rated human games filtered to: rated, ≥20 moves, decisive by six-in-a-row.
73
+ Per-game `elo` is each player's rating at game time. Games are anonymised
74
+ (player ids dropped; only relative Elo retained). See `dataset_metadata.json`
75
+ for the exact sha256 and counts.
76
+
77
+ License: MIT.
SCHEMA.md ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Hexo human corpus — JSONL schema
2
+
3
+ Encoding-free export of scraped Hex Tac Toe human games. One JSON object per
4
+ line, readable with the stdlib `json` module — no numpy, no game engine, no
5
+ encoding dependency.
6
+
7
+ ## Per-line object
8
+
9
+ | field | type | meaning |
10
+ |-------------|-----------------|---------|
11
+ | `game_hash` | string (16 hex) | SHA-256 of the move sequence; dedup key, stable across sources |
12
+ | `moves` | array of `[x,y]` | axial hex coords, in play order |
13
+ | `winner` | `1` or `-1` | `1` = first player (X) wins, `-1` = second player (O) |
14
+ | `source` | string | always `"human"` for this dataset |
15
+ | `elo` | `[int or null, int or null]` | `[elo_p1, elo_p2]`; absent when exported with `--no-meta` |
16
+
17
+ `game_hash` is the canonical content hash used across the corpus pipeline, so
18
+ the same game scraped twice — or appearing in another source — collapses to one
19
+ key. Exact duplicates are dropped on export (`n_duplicates_dropped` in
20
+ `dataset_metadata.json`).
21
+
22
+ ## Conventions
23
+
24
+ - **Coordinate system:** axial hex `(x, y) == (q, r)`. The board is
25
+ theoretically infinite; coordinates can be negative. The first player's
26
+ forced opening move is always `(0, 0)`.
27
+ - **Move order:** `moves[0]` is the first player's opener, then players
28
+ alternate per the game's turn structure (P1 opens with 1 move, then both
29
+ sides play 2 moves per turn). Reconstruct board state by replaying in order.
30
+ - **Winner:** engine convention — `1` = first mover (X), `-1` = second (O).
31
+ Only decisive (six-in-a-row) games are included; there are no draws.
32
+
33
+ ## Provenance
34
+
35
+ - games: **6902**
36
+ - sha256 (`hexo_human_corpus.jsonl`): `54fae7aebcef2a9d19d13c1946fae36c0565e21bc726c25e2e4e230cfb42a5b7`
37
+ - source filter: rated, >=20 moves, decisive by six-in-a-row
dataset_metadata.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "hexo-human-corpus",
3
+ "schema_version": 1,
4
+ "format": "jsonl",
5
+ "encoding": "none \u2014 raw axial move lists, encoding-agnostic",
6
+ "n_games": 6902,
7
+ "n_duplicates_dropped": 0,
8
+ "dedup_key": "game_hash (16-hex SHA-256 of move sequence)",
9
+ "winner_convention": "1 = first player (X) wins, -1 = second player (O) wins",
10
+ "coordinate_system": "axial hex (x,y)=(q,r); theoretically infinite board; first player's forced opener is always (0,0)",
11
+ "source_filter": "rated, >=20 moves, decisive by six-in-a-row",
12
+ "includes_metadata": true,
13
+ "input_dirs": [
14
+ "/home/timmy/Work/hexo_rl/data/corpus/raw_human"
15
+ ],
16
+ "file": "hexo_human_corpus.jsonl",
17
+ "bytes": 3696030,
18
+ "sha256": "54fae7aebcef2a9d19d13c1946fae36c0565e21bc726c25e2e4e230cfb42a5b7",
19
+ "created_at": "2026-06-04T14:27:03.599846+00:00"
20
+ }
hexo_human_corpus.jsonl ADDED
The diff for this file is too large to render. See raw diff