Skip to content

Your provided example doesn't work perfectly. #58

@aliwalker

Description

@aliwalker

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions