Karesis commited on
Commit
9df5223
·
verified ·
1 Parent(s): 4f7a1db

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +139 -1
README.md CHANGED
@@ -16,4 +16,142 @@ tags:
16
  - pytorch
17
  - alphago-style
18
  pretty_name: Go Game Dataset for Neural Network Training
19
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  - pytorch
17
  - alphago-style
18
  pretty_name: Go Game Dataset for Neural Network Training
19
+ ---
20
+ # Dataset Card for Go Game Dataset for Neural Network Training
21
+
22
+ This is a high-quality dataset designed for Go neural network training, containing board positions extracted from curated SGF game records. The dataset is divided into three strength categories: Standard, Strong, and Elite, with approximately 1,000 samples per category.
23
+
24
+ ## Dataset Details
25
+
26
+ ### Dataset Description
27
+
28
+ This dataset contains Go board positions and corresponding moves extracted from high-quality SGF game files, specifically designed for training Go policy networks. Each sample includes a 19x19 board state (represented as a 3-channel tensor) and the corresponding next move (represented as a one-dimensional index).
29
+
30
+ The dataset is divided into three strength categories based on game quality:
31
+ - Standard level (Quality 80-85): High-level amateur and entry-level professional games
32
+ - Strong level (Quality 86-92): Mid to high-level professional games
33
+ - Elite level (Quality 93-100): Top professional player games
34
+
35
+ The dataset contains approximately 3,000 board position samples, stored in PyTorch tensor format for direct use in deep learning model training.
36
+
37
+ - **Curated by:** The dataset was compiled by the user based on publicly available Go game records
38
+ - **Language(s) (NLP):** zh, en
39
+ - **License:** Apache 2.0
40
+
41
+ ### Dataset Sources
42
+
43
+ - **Repository:** Original SGF game records from https://homepages.cwi.nl/~aeb/go/games/
44
+ - **Paper:** No related papers
45
+ - **Demo:** No demonstration site available
46
+
47
+ ## Uses
48
+
49
+ ### Direct Use
50
+
51
+ This dataset is suitable for the following uses:
52
+ - Training Go policy networks (predicting the next best move)
53
+ - Initial training of Go AI systems
54
+ - Research on Go pattern recognition and pattern mining
55
+ - Studying style and strategy differences between players of different levels
56
+ - Supervised learning pre-training phase in reinforcement learning
57
+
58
+ ### Out-of-Scope Use
59
+
60
+ The following uses are not suitable or effective:
61
+ - Building complete Go AI systems (requires techniques like Monte Carlo Tree Search)
62
+ - Training value networks (dataset does not include win probability estimates)
63
+ - Large-scale commercial Go engine training (sample size is relatively small)
64
+ - Training for non-19x19 Go boards
65
+ - Training for other board games like chess, xiangqi, etc.
66
+
67
+ ## Dataset Structure
68
+
69
+ The dataset is divided into train, val, and test subsets with approximately 80:10:10 ratio, containing the following files:
70
+
71
+ Each subset directory contains:
72
+ - `boards.pt`: Board state tensors, shape (N, 3, 19, 19)
73
+ - Channel 0: Black stone positions (1 indicates black stone, 0 indicates none)
74
+ - Channel 1: White stone positions (1 indicates white stone, 0 indicates none)
75
+ - Channel 2: Next player (all 1s for black's turn, all 0s for white's turn)
76
+ - `moves.pt`: Actual next move, shape (N,), values range 0-360 (representing positions on 19x19 board)
77
+ - `colors.pt`: Color of the next player, shape (N,), 1 for black, 0 for white
78
+ - `metadata.json`: Contains sample information such as category, game ID, etc.
79
+
80
+ The root directory also contains:
81
+ - `stats.json`: Dataset processing statistics
82
+ - `README.md`: Dataset usage instructions
83
+
84
+ ## Dataset Creation
85
+
86
+ ### Curation Rationale
87
+
88
+ The motivation for creating this dataset was to provide a high-quality, graded, and easy-to-use training resource for Go AI research. Existing Go datasets are often unfiltered or lack quality ratings. This dataset implements strict quality filtering (scores above 80) and categorizes by player strength, allowing researchers to train and analyze models for different skill levels. Additionally, providing tensor data directly in PyTorch format greatly simplifies the workflow from raw SGF files to neural network training.
89
+
90
+ ### Source Data
91
+
92
+ #### Data Collection and Processing
93
+
94
+ The data processing workflow:
95
+ 1. Using custom tool `gogames_organizer.py` to organize and quality-score original SGF files
96
+ 2. Filtering for high-quality games with scores ≥80
97
+ 3. Dividing games into three strength categories based on quality score
98
+ 4. Randomly sampling approximately 1,000 board positions from games in each strength category
99
+ 5. Converting each board position to a 3-channel tensor representation
100
+ 6. Converting corresponding next moves to one-dimensional indices in the range 0-360
101
+ 7. Using `go_dataset_builder.py` to package into PyTorch tensor format and split into train/validation/test sets
102
+
103
+ The data processing used PyTorch, NumPy, and tqdm libraries. To prevent memory overflow, a chunked processing strategy was implemented. For each game, a maximum of 10 board positions were randomly sampled from the middle phase (skipping the first 30 and last 30 moves).
104
+
105
+ #### Who are the source data producers?
106
+
107
+ The source data consists of professional and high-level amateur Go game SGF records, primarily from players in China, Japan, Korea, and Western regions. Player levels range from high-level amateurs to world champion professional 9-dans. These game records document high-level Go matches from the 1950s to the present, reflecting Go styles and techniques from different periods and schools.
108
+
109
+ ### Personal and Sensitive Information
110
+
111
+ The dataset only contains publicly available Go game data, including public information such as player names. It does not include any sensitive or private information. All data is derived from publicly published game records and belongs to the public knowledge domain.
112
+
113
+ ## Bias, Risks, and Limitations
114
+
115
+ This dataset has the following biases, risks, and limitations:
116
+
117
+ 1. **Limited sample size**: Approximately 1,000 samples per strength category, which is relatively small for modern deep learning requirements.
118
+
119
+ 2. **Era bias**: SGF game records may include games from different eras, and changes in Go style after the emergence of modern AI may not be fully captured.
120
+
121
+ 3. **Data representation limitations**: Only includes current board state, not historical information or global context.
122
+
123
+ 4. **Classification subjectivity**: Strength classification is based on quality scoring, which has some subjectivity in its criteria.
124
+
125
+ 5. **Technical limitations**: Does not include game results or win probability information, not directly suitable for training value networks.
126
+
127
+ ### Recommendations
128
+
129
+ When using this dataset, it is recommended to:
130
+
131
+ 1. View it as an entry-level or benchmark dataset, not as the sole data source for building a complete Go AI system.
132
+
133
+ 2. Combine it with other techniques such as self-play and reinforcement learning to compensate for limitations in dataset scale and representation.
134
+
135
+ 3. For research-grade models, consider expanding the training data to include more modern professional player games.
136
+
137
+ 4. Consider using time-series methods to enhance board state representation by adding historical information.
138
+
139
+ 5. Be aware that model performance is limited by dataset size and diversity, and interpret experimental results cautiously.
140
+
141
+ ## More Information
142
+
143
+ This dataset uses a custom quality scoring system, with scoring factors including:
144
+ - Player level (professional dan rank)
145
+ - Tournament importance
146
+ - Game era
147
+ - Game record details (annotations available)
148
+
149
+ The dataset processing tools support multi-process processing, but may require reduced parallelism in memory-constrained environments. For best training results, it is recommended to combine policy networks and value networks, and use Monte Carlo Tree Search for actual gameplay.
150
+
151
+ ## Dataset Card Authors
152
+
153
+ This dataset card was created by 杨亦锋(Karesis) .
154
+
155
+ ## Dataset Card Contact
156
+
157
+ For questions, please contact the dataset creator.