brainjs_examples icon indicating copy to clipboard operation
brainjs_examples copied to clipboard

Weird unexpected behavior

Open jochemstoel opened this issue 6 years ago • 2 comments

When I run your example 02_hardware-software.js I sometimes (not always) get weird unpredictable characters from the training data input prepended to the output. I did not modify the script or the training data.

When I run the file I get stuff stuff like: Category: plyhardware Category: ore memoryhardware Category: soma pwae minghardware Category: nit test failedsoftware

I don't understand this. Do you?

Node 11.5.0 Windows 10

jochemstoel avatar Dec 30 '18 16:12 jochemstoel

Very interesting - I got the same thing on the 3rd run of 02_hardware-software.js

Category: ofted a lystop-inputstart-outputhardware

Node 11.2.0 Windows 10

birksy89 avatar Jan 04 '19 12:01 birksy89

I think the reason behind is that somehow the LSTM model is also training itself with the text in the category section. To solve this issue we need to represent our categories with the help of the dummy variables like replace software with [0] and replace hardware with [1] After replacing and re-training your model you will find it working fine.

Praneet460 avatar Feb 14 '19 23:02 Praneet460