I've tested several times on your provided example:
let train_data = [
{ input: a, output: map('a') },
{ input: b, output: map('b')},
{ input: c, output: map('c')}
]
mind.learn(train_data)
console.log('From mind: ', mind.predict(character(
'#######' +
'#......' +
'#......' +
'#......' +
'#......' +
'##.....' +
'#######'
)))
And each time, I got different results ranging from 0.6 ~ 0.9, which were expected to be 0.5. Here are several of them:
1. From mind: [ 0.8690720414762252 ]
2. From mind: [ 0.9931120996113908 ]
3. From mind: [ 0.6954245636611965 ]
4. From mind: [ 0.9677281776279311 ]
5. From mind: [ -0.2278222080355501 ]
6. From mind: [ 0.9054097880591 ]
Was there anything wrong?
I've tested several times on your provided example:
And each time, I got different results ranging from 0.6 ~ 0.9, which were expected to be 0.5. Here are several of them:
Was there anything wrong?