训练误差: 具有数值的 NaN
作者: lucydjo创建于 2019年6月24日更新于 2019年7月2日
你好, 我试着学习检测名字的性别。 TrainingData 如下:
{ input: [ 2, 26, 11, 8, 13, 4 ], output: { h: 0, f: 1 } }, { input: [ 2, 4, 17, 8, 18, 4 ], output: { h: 0, f: 1 } }, { input: [ 2, 4, 18, 0, 8, 17, 4 ], output: { h: 1, f: 0 } }, { input: [ 2, 26, 18, 0, 17 ], output: { h: 1, f: 0 } }, { input: [ 2, 7, 0, 13, 19, 0, 11 ], output: { h: 0, f: 1 } }, { input: [ 2, 7, 0, 13, 19, 26 ], output: { h: 0, f: 1 } }, { input: [ 2, 7, 0, 17, 11, 8, 13, 4 ], output: { h: 0, f: 1 } }, { input: [ 2, 7, 0, 17, 11, 14, 19 ], output: { h: 1, f: 0 } },
我的代码:https://gist.GitHub.com/lucaspojo/1a4c7c848f18074ccd195eb8d7828b6a
内容来源: harthur/brain