mind icon indicating copy to clipboard operation
mind copied to clipboard

Your provided example doesn't work perfectly.

Open aliwalker opened this issue 7 years ago • 2 comments

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?

aliwalker avatar Jan 07 '18 15:01 aliwalker

I totally agree, tested here and I get different results at every different learn / predict runs. I've also tried different numbers of iterations, same problem.

rosariogueli avatar Mar 04 '18 18:03 rosariogueli

To add to my previous comment, I've also tried changing the number of hidden layers and units, no different, it returns bad results.

rosariogueli avatar Mar 04 '18 18:03 rosariogueli