Skip to content

Your provided example doesn't work perfectly. #58

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
aliwalker opened this issue Jan 7, 2018 · 2 comments
Open

Your provided example doesn't work perfectly. #58

aliwalker opened this issue Jan 7, 2018 · 2 comments

Comments

@aliwalker
Copy link

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?

@rosariogueli
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants