junxiaosong / AlphaZero_Gomoku

An implementation of the AlphaZero algorithm for Gomoku (also called Gobang or Five in a Row)
MIT License
3.23k stars 962 forks source link

为什么要在'play_data'中反转输入特征? #125

Open Michi-123 opened 2 years ago

Michi-123 commented 2 years ago

为什么要在'play_data'中反转 input features?

play_data 1:

[[0,0,0], [0,1,0], [0,0,0]] # white
[[0,0,0], [0,0,0], [0,0,0]] # black
[[0,0,0], [0,1,0], [0,0,0]] # action
[[0,0,0], [0,0,0], [0,0,0]] # player

play_data 2:

[[1,0,0], [0,0,0], [0,0,0]] # black
[[0,0,0], [0,1,0], [0,0,0]] # white
[[1,0,0], [0,0,0], [0,0,0]] # action
[[1,1,1], [1,1,1], [1,1,1]] # player