Document Stockfish zero-depth WDL configuration
Browse files
README.md
CHANGED
|
@@ -6,6 +6,7 @@ language:
|
|
| 6 |
tags:
|
| 7 |
- chess
|
| 8 |
- leela-chess-zero
|
|
|
|
| 9 |
- chess-game
|
| 10 |
- parquet
|
| 11 |
- fen
|
|
@@ -19,6 +20,12 @@ configs:
|
|
| 19 |
path: data/source_split=train/**/*.parquet
|
| 20 |
- split: test
|
| 21 |
path: data/source_split=test/**/*.parquet
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
---
|
| 23 |
|
| 24 |
# Zero Evaluator High-Variance Chess Positions
|
|
@@ -32,6 +39,12 @@ The selection deliberately balances opening, middlegame, and endgame coverage
|
|
| 32 |
and retains the original source train/test split. The complete variance audit
|
| 33 |
is in `variance-report.json` and `RESULTS.md`.
|
| 34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
## Data layout
|
| 36 |
|
| 37 |
The release consists of six Zstandard-compressed Parquet files partitioned by:
|
|
@@ -48,6 +61,10 @@ The release consists of six Zstandard-compressed Parquet files partitioned by:
|
|
| 48 |
`data/_manifest.json` contains file sizes, row counts, ID bounds, and SHA-256
|
| 49 |
checksums.
|
| 50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
## Load the dataset
|
| 52 |
|
| 53 |
Hugging Face Datasets:
|
|
@@ -59,6 +76,19 @@ positions = load_dataset("Pawitt/zero-evaluator")
|
|
| 59 |
print(positions["train"][0]["fen"])
|
| 60 |
```
|
| 61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
For Hive partition columns and streaming Arrow batches, use PyArrow directly:
|
| 63 |
|
| 64 |
```python
|
|
@@ -88,8 +118,41 @@ side to move, piece and material statistics, legal-move count, check state,
|
|
| 88 |
castling mask, and halfmove clock. See `FORMAT.md` for exact semantics.
|
| 89 |
|
| 90 |
The source-game `result` is provenance metadata. It is **not** an lc0
|
| 91 |
-
depth-zero WDL label.
|
| 92 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
|
| 94 |
## Validation
|
| 95 |
|
|
@@ -98,6 +161,13 @@ through an lc0 zero-search evaluation pass.
|
|
| 98 |
- All 26 row groups use Zstandard compression.
|
| 99 |
- All six file checksums match the manifest.
|
| 100 |
- 6,000 sampled FEN records were reconstructed successfully with python-chess.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 101 |
|
| 102 |
## Source
|
| 103 |
|
|
|
|
| 6 |
tags:
|
| 7 |
- chess
|
| 8 |
- leela-chess-zero
|
| 9 |
+
- stockfish
|
| 10 |
- chess-game
|
| 11 |
- parquet
|
| 12 |
- fen
|
|
|
|
| 20 |
path: data/source_split=train/**/*.parquet
|
| 21 |
- split: test
|
| 22 |
path: data/source_split=test/**/*.parquet
|
| 23 |
+
- config_name: stockfish_zero_wdl
|
| 24 |
+
data_files:
|
| 25 |
+
- split: train
|
| 26 |
+
path: stockfish-zero-wdl/source_split=train/**/*.parquet
|
| 27 |
+
- split: test
|
| 28 |
+
path: stockfish-zero-wdl/source_split=test/**/*.parquet
|
| 29 |
---
|
| 30 |
|
| 31 |
# Zero Evaluator High-Variance Chess Positions
|
|
|
|
| 39 |
and retains the original source train/test split. The complete variance audit
|
| 40 |
is in `variance-report.json` and `RESULTS.md`.
|
| 41 |
|
| 42 |
+
Two configurations are available:
|
| 43 |
+
|
| 44 |
+
- `default`: the original unlabeled positions;
|
| 45 |
+
- `stockfish_zero_wdl`: the same positions with immediate static Stockfish
|
| 46 |
+
NNUE WDL labels and per-row engine provenance.
|
| 47 |
+
|
| 48 |
## Data layout
|
| 49 |
|
| 50 |
The release consists of six Zstandard-compressed Parquet files partitioned by:
|
|
|
|
| 61 |
`data/_manifest.json` contains file sizes, row counts, ID bounds, and SHA-256
|
| 62 |
checksums.
|
| 63 |
|
| 64 |
+
The labeled derivative mirrors the same six partitions under
|
| 65 |
+
`stockfish-zero-wdl/`. Its `_manifest.json` records the source Hub revision,
|
| 66 |
+
engine identity, binary checksum, row counts, file sizes, and checksums.
|
| 67 |
+
|
| 68 |
## Load the dataset
|
| 69 |
|
| 70 |
Hugging Face Datasets:
|
|
|
|
| 76 |
print(positions["train"][0]["fen"])
|
| 77 |
```
|
| 78 |
|
| 79 |
+
Load the Stockfish-labeled configuration with:
|
| 80 |
+
|
| 81 |
+
```python
|
| 82 |
+
from datasets import load_dataset
|
| 83 |
+
|
| 84 |
+
positions = load_dataset(
|
| 85 |
+
"Pawitt/zero-evaluator",
|
| 86 |
+
"stockfish_zero_wdl",
|
| 87 |
+
)
|
| 88 |
+
row = positions["train"][0]
|
| 89 |
+
print(row["fen"], row["wdl_win"], row["wdl_draw"], row["wdl_loss"])
|
| 90 |
+
```
|
| 91 |
+
|
| 92 |
For Hive partition columns and streaming Arrow batches, use PyArrow directly:
|
| 93 |
|
| 94 |
```python
|
|
|
|
| 118 |
castling mask, and halfmove clock. See `FORMAT.md` for exact semantics.
|
| 119 |
|
| 120 |
The source-game `result` is provenance metadata. It is **not** an lc0
|
| 121 |
+
depth-zero WDL label.
|
| 122 |
+
|
| 123 |
+
The `stockfish_zero_wdl` configuration adds:
|
| 124 |
+
|
| 125 |
+
| Column | Type | Meaning |
|
| 126 |
+
| --- | --- | --- |
|
| 127 |
+
| `wdl_win` | `uint16` | Static win probability on a 0–1000 scale |
|
| 128 |
+
| `wdl_draw` | `uint16` | Static draw probability on a 0–1000 scale |
|
| 129 |
+
| `wdl_loss` | `uint16` | Static loss probability on a 0–1000 scale |
|
| 130 |
+
| `wdl_engine_name` | string | Evaluating engine family |
|
| 131 |
+
| `wdl_engine_version` | string | Exact engine build identity |
|
| 132 |
+
| `wdl_engine_weights` | string | NNUE network identity |
|
| 133 |
+
|
| 134 |
+
WDL is from the perspective of the side to move and always sums to 1000.
|
| 135 |
+
|
| 136 |
+
## Stockfish zero-depth labeling
|
| 137 |
+
|
| 138 |
+
The labeled configuration was produced with a patched Stockfish command,
|
| 139 |
+
`go depth 0`. It performs one immediate NNUE evaluation without tree search,
|
| 140 |
+
then applies Stockfish's calibrated WDL conversion. This is a static evaluator
|
| 141 |
+
label, not a searched game-theoretic result or a native three-output neural
|
| 142 |
+
head.
|
| 143 |
+
|
| 144 |
+
Provenance:
|
| 145 |
+
|
| 146 |
+
- engine: `Stockfish dev-20260822-d95a3013-zero-wdl`;
|
| 147 |
+
- NNUE: `nn-1a298aa575a0.nnue`;
|
| 148 |
+
- engine binary SHA-256:
|
| 149 |
+
`57ca9adcf657338ac907b3c0c667f1f705885c06865603134f23c6e6e402682d`;
|
| 150 |
+
- source dataset revision:
|
| 151 |
+
`7e7d453311882b4b8686aeb885e1c2eb9e2911f9`;
|
| 152 |
+
- terminal adjudication: `python-chess outcome(claim_draw=True)`.
|
| 153 |
+
|
| 154 |
+
Across all rows, the mean WDL is `186.773 / 578.242 / 234.985`. Stockfish's
|
| 155 |
+
static calibration is draw-heavy: the median draw value is `875/1000`.
|
| 156 |
|
| 157 |
## Validation
|
| 158 |
|
|
|
|
| 161 |
- All 26 row groups use Zstandard compression.
|
| 162 |
- All six file checksums match the manifest.
|
| 163 |
- 6,000 sampled FEN records were reconstructed successfully with python-chess.
|
| 164 |
+
- The Stockfish derivative contains exactly 1,509,201 rows in the same six
|
| 165 |
+
partitions.
|
| 166 |
+
- Every labeled partition matches its manifest row count, byte size, and
|
| 167 |
+
SHA-256 checksum.
|
| 168 |
+
- Every labeled row has WDL values summing to 1000.
|
| 169 |
+
- All labeled files carry `zero_wdl_complete=true` and consistent engine
|
| 170 |
+
provenance.
|
| 171 |
|
| 172 |
## Source
|
| 173 |
|