christopher
commited on
Commit
•
917fc2d
1
Parent(s):
a004998
Update README.md
Browse files
README.md
CHANGED
@@ -43,26 +43,30 @@ tags:
|
|
43 |
|
44 |
4,062,423 chess puzzles, rated and tagged. See them in action on [Lichess](https://lichess.org/training/themes).
|
45 |
|
46 |
-
## Dataset
|
|
|
|
|
47 |
|
48 |
```python
|
49 |
-
|
50 |
-
|
51 |
-
num_rows: 4062423
|
52 |
-
})
|
53 |
```
|
54 |
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
'
|
62 |
-
'
|
63 |
-
'
|
64 |
-
'
|
65 |
-
'
|
|
|
|
|
|
|
|
|
66 |
```
|
67 |
|
68 |
### Dataset Creation
|
|
|
43 |
|
44 |
4,062,423 chess puzzles, rated and tagged. See them in action on [Lichess](https://lichess.org/training/themes).
|
45 |
|
46 |
+
## Dataset Usage
|
47 |
+
|
48 |
+
Using the `datasets` library:
|
49 |
|
50 |
```python
|
51 |
+
from datasets import load_dataset
|
52 |
+
dset = load_dataset("Lichess/puzzles", split="train")
|
|
|
|
|
53 |
```
|
54 |
|
55 |
+
## Dataset Details
|
56 |
+
|
57 |
+
One row of the dataset looks like this:
|
58 |
+
|
59 |
+
```python
|
60 |
+
{'PuzzleId': '0009B',
|
61 |
+
'FEN': 'r2qr1k1/b1p2ppp/pp4n1/P1P1p3/4P1n1/B2P2Pb/3NBP1P/RN1QR1K1 b - - 1 16',
|
62 |
+
'Moves': 'b6c5 e2g4 h3g4 d1g4',
|
63 |
+
'Rating': 1112,
|
64 |
+
'RatingDeviation': 74,
|
65 |
+
'Popularity': 87,
|
66 |
+
'NbPlays': 569,
|
67 |
+
'Themes': 'advantage middlegame short',
|
68 |
+
'GameUrl': 'https://lichess.org/4MWQCxQ6/black#31',
|
69 |
+
'OpeningTags': 'Kings_Pawn_Game Kings_Pawn_Game_Leonardis_Variation'}
|
70 |
```
|
71 |
|
72 |
### Dataset Creation
|