我正在使用 Brain.js 制作五子棋 AI,即使 Input 的大小固定为 225,它也没有经过训练。(所有值均为空,训练误差仅为 NaN。)
在填充数据的过程中放入'00'以将Input的大小扁平化为225是否正确?
训练数据编写如下:
[
{
input: [
'00', '00', '00', '00', ... fill '00' in to empty space to fit 225 size
],
output: { '88': 1 } //The winning player's move have 1 value
},
{
input: [
'88', '00', '00', '00', ... fill '00' in to empty space to fit 225 size
],
output: { '89': 0 } //The losing player's move have 0 value
},
{
input: [
'88', '89', '00', '00', ... fill '00' in to empty space to fit 225 size
],
output: { '68': 1 }
}
]
我应该如何修复它以使火车成功?
这是我的代码。
对不起我的英语不好。