Datasets:
File size: 1,801 Bytes
137ada3 4687b8d 137ada3 4687b8d 137ada3 4687b8d 137ada3 4687b8d 35b6c33 4687b8d 35b6c33 4687b8d 35b6c33 4687b8d 35b6c33 4687b8d 35b6c33 4687b8d 35b6c33 4687b8d 35b6c33 4687b8d 35b6c33 4687b8d 35b6c33 4687b8d a12d2de 16f81b7 a12d2de 35b6c33 a12d2de 35b6c33 | 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 | ---
license: apache-2.0
task_categories:
- reinforcement-learning
language:
- en
- ru
tags:
- chess
- deep-learning
- stockfish
- pytorch
- multi-pv
- chess-engine
- reinforcement-learning
size_categories:
- 100K<n<1M
---
# Strategic Chess Dataset: Multi-PV (700K+)
Dataset containing 706,000 chess positions evaluated by Stockfish 16.1. Built for training policy-value networks (AlphaZero / Leela Chess Zero style architectures).
## Dataset Summary
* 706,000 unique board positions with Multi-PV evaluations (top 3 candidate moves per position).
* 15-channel board encoding: 12 piece channels, 1 active-color channel, 2 move-history channels.
* 5,000 targeted blunder-recovery positions extracted from reinforcement learning self-play.
* Normalized evaluations: Stockfish centipawns mapped to [-1, 1] range using tanh(cp / 300.0).
## Data Structure
Format: compressed `.npz` archive.
* `states`: float32 array of shape (N, 15, 8, 8).
* `plans`: int64 array of shape (N, 3, 1) with candidate move indices (`from_square * 64 + to_square`).
* `evals`: float32 array of shape (N,) containing normalized position scores.
## PyTorch Loading Example
```python
import numpy as np
import torch
from torch.utils.data import Dataset
class StrategicChessDataset(Dataset):
def __init__(self, npz_path):
data = np.load(npz_path)
self.states = data["states"]
self.evals = data["evals"]
self.best_moves = data["plans"][:, 0, 0]
def __len__(self):
return len(self.states)
def __getitem__(self, idx):
state = torch.from_numpy(self.states[idx]).float()
move = torch.tensor(self.best_moves[idx], dtype=torch.long)
val = torch.tensor(self.evals[idx], dtype=torch.float32)
return state, move, val
```
## License
Apache 2.0.
|