File size: 5,581 Bytes
990c572 5f87c14 119f358 7e7d453 5f87c14 7e7d453 5f87c14 119f358 990c572 8eab099 5f87c14 8eab099 5f87c14 119f358 5f87c14 119f358 5f87c14 119f358 5f87c14 119f358 5f87c14 119f358 5f87c14 | 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 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 | ---
license: mit
pretty_name: Zero Evaluator High-Variance Chess Positions
language:
- en
tags:
- chess
- leela-chess-zero
- stockfish
- chess-game
- parquet
- fen
size_categories:
- 1M<n<10M
configs:
- config_name: default
data_files:
- split: train
path: data/source_split=train/**/*.parquet
- split: test
path: data/source_split=test/**/*.parquet
- config_name: stockfish_zero_wdl
data_files:
- split: train
path: stockfish-zero-wdl/source_split=train/**/*.parquet
- split: test
path: stockfish-zero-wdl/source_split=test/**/*.parquet
---
# Zero Evaluator High-Variance Chess Positions
This dataset contains **1,509,201 unique chess positions** extracted from Leela
Chess Zero's published CCRL standard corpus. Positions are stored as normalized
six-field FEN records for immediate board reconstruction without replaying a
game.
The selection deliberately balances opening, middlegame, and endgame coverage
and retains the original source train/test split. The complete variance audit
is in `variance-report.json` and `RESULTS.md`.
Two configurations are available:
- `default`: the original unlabeled positions;
- `stockfish_zero_wdl`: the same positions with immediate static Stockfish
NNUE WDL labels and per-row engine provenance.
## Data layout
The release consists of six Zstandard-compressed Parquet files partitioned by:
- `source_split`: `train` or `test`
- `phase`: `opening`, `middlegame`, or `endgame`
| Split | Opening | Middlegame | Endgame | Total |
| --- | ---: | ---: | ---: | ---: |
| Train | 182,691 | 723,841 | 295,196 | 1,201,728 |
| Test | 51,510 | 176,159 | 79,804 | 307,473 |
| Total | 234,201 | 900,000 | 375,000 | 1,509,201 |
`data/_manifest.json` contains file sizes, row counts, ID bounds, and SHA-256
checksums.
The labeled derivative mirrors the same six partitions under
`stockfish-zero-wdl/`. Its `_manifest.json` records the source Hub revision,
engine identity, binary checksum, row counts, file sizes, and checksums.
## Load the dataset
Hugging Face Datasets:
```python
from datasets import load_dataset
positions = load_dataset("Pawitt/zero-evaluator")
print(positions["train"][0]["fen"])
```
Load the Stockfish-labeled configuration with:
```python
from datasets import load_dataset
positions = load_dataset(
"Pawitt/zero-evaluator",
"stockfish_zero_wdl",
)
row = positions["train"][0]
print(row["fen"], row["wdl_win"], row["wdl_draw"], row["wdl_loss"])
```
For Hive partition columns and streaming Arrow batches, use PyArrow directly:
```python
import pyarrow.dataset as ds
positions = ds.dataset(
"data",
format="parquet",
partitioning="hive",
)
scanner = positions.scanner(
filter=ds.field("source_split") == "train",
columns=["fen", "result", "phase"],
batch_size=8192,
)
for batch in scanner.to_batches():
pass
```
When downloading from the Hub first, point `ds.dataset` at the downloaded
`data/` directory.
## Columns
Each record includes normalized `fen`, source-game provenance, ply and result,
side to move, piece and material statistics, legal-move count, check state,
castling mask, and halfmove clock. See `FORMAT.md` for exact semantics.
The source-game `result` is provenance metadata. It is **not** an lc0
depth-zero WDL label.
The `stockfish_zero_wdl` configuration adds:
| Column | Type | Meaning |
| --- | --- | --- |
| `wdl_win` | `uint16` | Static win probability on a 0–1000 scale |
| `wdl_draw` | `uint16` | Static draw probability on a 0–1000 scale |
| `wdl_loss` | `uint16` | Static loss probability on a 0–1000 scale |
| `wdl_engine_name` | string | Evaluating engine family |
| `wdl_engine_version` | string | Exact engine build identity |
| `wdl_engine_weights` | string | NNUE network identity |
WDL is from the perspective of the side to move and always sums to 1000.
## Stockfish zero-depth labeling
The labeled configuration was produced with a patched Stockfish command,
`go depth 0`. It performs one immediate NNUE evaluation without tree search,
then applies Stockfish's calibrated WDL conversion. This is a static evaluator
label, not a searched game-theoretic result or a native three-output neural
head.
Provenance:
- engine: `Stockfish dev-20260822-d95a3013-zero-wdl`;
- NNUE: `nn-1a298aa575a0.nnue`;
- engine binary SHA-256:
`57ca9adcf657338ac907b3c0c667f1f705885c06865603134f23c6e6e402682d`;
- source dataset revision:
`7e7d453311882b4b8686aeb885e1c2eb9e2911f9`;
- terminal adjudication: `python-chess outcome(claim_draw=True)`.
Across all rows, the mean WDL is `186.773 / 578.242 / 234.985`. Stockfish's
static calibration is draw-heavy: the median draw value is `875/1000`.
## Validation
- All 1,509,201 source rows were reproduced in Parquet.
- All six partition counts match the source database.
- All 26 row groups use Zstandard compression.
- All six file checksums match the manifest.
- 6,000 sampled FEN records were reconstructed successfully with python-chess.
- The Stockfish derivative contains exactly 1,509,201 rows in the same six
partitions.
- Every labeled partition matches its manifest row count, byte size, and
SHA-256 checksum.
- Every labeled row has WDL values summing to 1000.
- All labeled files carry `zero_wdl_complete=true` and consistent engine
provenance.
## Source
The source is the [Leela Chess Zero standard CCRL dataset](https://lczero.org/blog/2018/09/a-standard-dataset/),
published as 2.5 million CCRL 40/40 and 40/4 engine games with an original
80/20 train/test split.
The extraction and conversion scripts are included for reproducibility.
|