File size: 1,480 Bytes
42862cd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
license: mit
task_categories:
  - tabular-classification
  - other
tags:
  - chess
  - game-ai
  - evaluation
size_categories:
  - 1B<n<10B
---

# ChessBenchmate Aggregated Dataset

This dataset is a transformed version of the ChessBenchmate dataset, aggregating all legal moves and their Stockfish evaluations per chess position.

## Dataset Structure

Each record contains:
- `fen`: Chess position in FEN notation
- `moves`: Dictionary mapping UCI moves to their evaluations
  - `win_prob`: Win probability from 0.0 to 1.0 (Stockfish evaluation)
  - `mate`: Mate indicator (None = no forced mate, '#' = immediate checkmate, integer = mate-in-N)

## File Format

- Format: MessagePack binary (streamed records)
- Files: 1024 shards (`train-XXXXX-of-01024.msgpack`)
- Estimated: ~3.6B unique positions

## Usage

```python
import msgpack

def load_positions(filepath):
    """Stream positions from a msgpack file."""
    with open(filepath, 'rb') as f:
        unpacker = msgpack.Unpacker(f, raw=False)
        for record in unpacker:
            yield record

# Example
for record in load_positions('train-00000-of-01024.msgpack'):
    fen = record['fen']
    moves = record['moves']
    for move, eval in moves.items():
        print(f"{move}: win_prob={eval['win_prob']:.3f}, mate={eval['mate']}")
    break
```

## Source

Transformed from [ChessBenchmate](https://huggingface.co/datasets/Lichess/chessbenchmate) dataset.

## License

MIT License (same as source dataset)