I'm new to brain js and I'm trying to make it predict if a combination of words is a complete sentence. https://codepen.io/AtanasBobev/pen/zQzZrP?editors=0010
const config = {
hiddenLayers: [3]
};
const net = new brain.NeuralNetwork(config);
net.train([{input: ["Hello, I'm John Walker."], output: [1]},
{input: ["This is on you!"], output: [1]},
{input: ["Who are you?"], output: [1]},
{input: ["Let's go."], output: [1]},
{input: ["John kik"], output: [0]},
{input: ["This is"], output: [0]}
]);
const output = net.run(["I'm Stil."]);
alert(output);
//Output: NaN
I know that the data is not enough for a good prediction, but still I expect a value between 0-1 . What can the problem be?