InterwebAlchemy commited on
Commit
057486a
·
verified ·
1 Parent(s): 44904b7

Upload folder using huggingface_hub

Browse files
README.md CHANGED
@@ -1,59 +1,18 @@
1
  ---
2
  license: cc0-1.0
3
  language:
4
- - en
5
  tags:
6
- - chess
7
- - pgn
8
- - puzzles
9
- - tactics
10
- pretty_name: Chess Puzzles from Lichess with PGN Context
11
  size_categories:
12
- - 1K<n<10K
13
- dataset_info:
14
- features:
15
- - name: puzzle_id
16
- dtype: string
17
- - name: game_id
18
- dtype: string
19
- - name: rating
20
- dtype: int32
21
- - name: themes
22
- sequence: string
23
- - name: pgn_context
24
- dtype: string
25
- - name: fen
26
- dtype: string
27
- - name: best_move_uci
28
- dtype: string
29
- - name: best_move_san
30
- dtype: string
31
- splits:
32
- - name: train
33
- num_bytes: 1672201.6
34
- num_examples: 4000
35
- - name: validation
36
- num_bytes: 209025.2
37
- num_examples: 500
38
- - name: test
39
- num_bytes: 209025.2
40
- num_examples: 500
41
- download_size: 1179666
42
- dataset_size: 2090252.0
43
- configs:
44
- - config_name: default
45
- data_files:
46
- - split: train
47
- path: data/train-*
48
- - split: validation
49
- path: data/validation-*
50
- - split: test
51
- path: data/test-*
52
  ---
53
 
54
- # Lichess Puzzles with PGN Context
55
-
56
- **Note**: _This is a work in progress dataset..._
57
 
58
  Tactical chess puzzles drawn from the [Lichess Open Puzzle Database](https://database.lichess.org/#puzzles),
59
  augmented with full PGN game context reconstructed from the source Lichess games.
@@ -64,23 +23,23 @@ with the engine-validated best move as the label.
64
 
65
  ## Dataset Summary
66
 
67
- - **416 puzzles** with reconstructed PGN context
68
- - Rating range: 1201–1900 (mean: 1552)
69
- - Themes: `middlegame`, `short`, `advantage`, `crushing`, `long`, `mate`, `fork`, `master` (middlegame only; opening/endgame excluded)
70
  - Splits: 80% train / 10% validation / 10% test
71
 
72
  ## Schema
73
 
74
- | Column | Type | Description |
75
- | --------------- | ------------ | --------------------------------------------------- |
76
- | `puzzle_id` | string | Lichess puzzle ID |
77
- | `game_id` | string | Lichess game ID (source of PGN context) |
78
- | `rating` | int32 | Puzzle difficulty (Lichess Glicko-2 rating) |
79
- | `themes` | list[string] | Tactical theme tags (e.g. `fork`, `pin`, `skewer`) |
80
- | `pgn_context` | string | PGN move text up to (not including) the puzzle move |
81
- | `fen` | string | Board position at start of puzzle in FEN notation |
82
- | `best_move_uci` | string | Correct first move in UCI notation |
83
- | `best_move_san` | string | Correct first move in SAN notation |
84
 
85
  ## Usage
86
 
@@ -99,7 +58,6 @@ ds = load_dataset("InterwebAlchemy/chess-puzzles-pgn")
99
  ## How PGN context is reconstructed
100
 
101
  For each Lichess puzzle:
102
-
103
  1. The source game PGN is fetched from `lichess.org/api/game/<id>`
104
  2. The game is replayed move by move until the board FEN matches the puzzle FEN
105
  3. The move-text up to that point is stored as `pgn_context`
 
1
  ---
2
  license: cc0-1.0
3
  language:
4
+ - en
5
  tags:
6
+ - chess
7
+ - pgn
8
+ - puzzles
9
+ - tactics
10
+ pretty_name: Chess Puzzles with PGN Context
11
  size_categories:
12
+ - 1K<n<10K
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  ---
14
 
15
+ # Chess Puzzles with PGN Context
 
 
16
 
17
  Tactical chess puzzles drawn from the [Lichess Open Puzzle Database](https://database.lichess.org/#puzzles),
18
  augmented with full PGN game context reconstructed from the source Lichess games.
 
23
 
24
  ## Dataset Summary
25
 
26
+ - **5,000 puzzles** with reconstructed PGN context
27
+ - Rating range: 1200–1900 (mean: 1540)
28
+ - Themes: `middlegame`, `short`, `advantage`, `crushing`, `long`, `mate`, `fork`, `kingsideAttack` (middlegame only; opening/endgame excluded)
29
  - Splits: 80% train / 10% validation / 10% test
30
 
31
  ## Schema
32
 
33
+ | Column | Type | Description |
34
+ |---|---|---|
35
+ | `puzzle_id` | string | Lichess puzzle ID |
36
+ | `game_id` | string | Lichess game ID (source of PGN context) |
37
+ | `rating` | int32 | Puzzle difficulty (Lichess Glicko-2 rating) |
38
+ | `themes` | list[string] | Tactical theme tags (e.g. `fork`, `pin`, `skewer`) |
39
+ | `pgn_context` | string | PGN move text up to (not including) the puzzle move |
40
+ | `fen` | string | Board position at start of puzzle in FEN notation |
41
+ | `best_move_uci` | string | Correct first move in UCI notation |
42
+ | `best_move_san` | string | Correct first move in SAN notation |
43
 
44
  ## Usage
45
 
 
58
  ## How PGN context is reconstructed
59
 
60
  For each Lichess puzzle:
 
61
  1. The source game PGN is fetched from `lichess.org/api/game/<id>`
62
  2. The game is replayed move by move until the board FEN matches the puzzle FEN
63
  3. The move-text up to that point is stored as `pgn_context`
test/data-00000-of-00001.arrow CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:37ef0050bf83be52ea0c5259ef7042c62d43db907af3e54cc2c766685170dea0
3
- size 18344
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:81b2f0b9295645a8f907797b5dbdf23d92db48d7a90f4afa99fdd9a06b9d5305
3
+ size 207656
test/state.json CHANGED
@@ -4,7 +4,7 @@
4
  "filename": "data-00000-of-00001.arrow"
5
  }
6
  ],
7
- "_fingerprint": "85226a0c40226d34",
8
  "_format_columns": null,
9
  "_format_kwargs": {},
10
  "_format_type": null,
 
4
  "filename": "data-00000-of-00001.arrow"
5
  }
6
  ],
7
+ "_fingerprint": "690607741f261813",
8
  "_format_columns": null,
9
  "_format_kwargs": {},
10
  "_format_type": null,
train/data-00000-of-00001.arrow CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2f57a04ec333b6ebb87dd52201d259ae270331742d169b870fd8d85c6a3feb27
3
- size 134176
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:850d9e10cd6be46eb8765059a94b6b0d3396f2411d429312edec1585318357a8
3
+ size 1677600
train/state.json CHANGED
@@ -4,7 +4,7 @@
4
  "filename": "data-00000-of-00001.arrow"
5
  }
6
  ],
7
- "_fingerprint": "588b2e528fd83ddd",
8
  "_format_columns": null,
9
  "_format_kwargs": {},
10
  "_format_type": null,
 
4
  "filename": "data-00000-of-00001.arrow"
5
  }
6
  ],
7
+ "_fingerprint": "e231c3d00995592e",
8
  "_format_columns": null,
9
  "_format_kwargs": {},
10
  "_format_type": null,
validation/data-00000-of-00001.arrow CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:53a046a96b683c9e00dc6ffc0025c1bfa077e323ea628ad5372cdc0690e6675d
3
- size 18040
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:05194e435e305bf4361b832953dfea24cbaaf733c9d7487bd0a787febb4259b3
3
+ size 212456
validation/state.json CHANGED
@@ -4,7 +4,7 @@
4
  "filename": "data-00000-of-00001.arrow"
5
  }
6
  ],
7
- "_fingerprint": "6345b00f44eaad61",
8
  "_format_columns": null,
9
  "_format_kwargs": {},
10
  "_format_type": null,
 
4
  "filename": "data-00000-of-00001.arrow"
5
  }
6
  ],
7
+ "_fingerprint": "e726982d1ea95783",
8
  "_format_columns": null,
9
  "_format_kwargs": {},
10
  "_format_type": null,