Skip to content

What is stop-inputstart-output? #210

@LiamDobbelaere

Description

@LiamDobbelaere

What is wrong?

Output of my LSTM sometimes contains keywords stop-input and start-output.
I would expect if I ask it to run on my input that it just gives the expected output.
For instance, I expect:

var net = new brain.recurrent.LSTM();

net.train([
  { input: 'I feel great about the world!', output: 'happy' },
  { input: 'The world is a terrible place!', output: 'sad' },
]);
var output = net.run('I feel great about');

To output "happy" or "sad", but instead it outputs "he world is a terrible place!stop-inputstart-outputsad"

What is up with this output 'clutter' and why is it there? It's odd that I'd have to do string splitting to get the actual output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions