recurrent.LSTM() can't handle "p"?
See original GitHub issueHi, I was experimenting with LSTM yesteraday and it seems it cannot parse the letter P This is whats it throwing
/Users/didair/ai/node_modules/brain.js/dist/utilities/data-formatter.js:85
throw new Error('unrecognized character "' + character + '"');
^
Error: unrecognized character "p"
at DataFormatter.toIndexes (/Users/didair/ai/node_modules/brain.js/dist/utilities/data-formatter.js:85:17)
at DataFormatter.toIndexesInputOutput (/Users/didair/ai/node_modules/brain.js/dist/utilities/data-formatter.js:101:23)
at LSTM.formatDataIn (/Users/didair/ai/node_modules/brain.js/dist/recurrent/rnn.js:751:35)
at LSTM.run (/Users/didair/ai/node_modules/brain.js/dist/recurrent/rnn.js:374:24)
at Object.<anonymous> (/Users/didair/ai/example.js:24:22)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:12 (6 by maintainers)
Top Results From Across the Web
Understanding Stateful LSTM Recurrent Neural Networks in ...
In this post, you will discover exactly how state is maintained in LSTM networks by the Keras deep learning library. After reading this...
Read more >Recurrent Neural Network Guide: a Deep Dive in RNN
They can deal with long sequences of data, but are limited by the fact that they can't order the sequence correctly. So, how...
Read more >LSTM Recurrent Neural Network Keras Example
Long Short Term Memory (LSTM) · Day 1: Lift Weights · Day 2: Swimming · Day 3: At this point, our model must...
Read more >CS 230 - Recurrent Neural Networks Cheatsheet
Architecture of a traditional RNN Recurrent neural networks, also known as RNNs, are a class of ... Cannot consider any future input for...
Read more >Theory and Implementation of the Elman Network and LSTM
This type of network is “recurrent” in the sense that they can revisit ... As with any neural network, RNN can't take raw...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@NicolasBrondin
Thank you, but this is not correct syntax (with current version brain.js@1.0.0-rc.3).
If run as array, works:
If run as object, does not works:
If run as object with array, does not works:
Same error to predict the position 51. Does not works:
Returns this error:
This was be fixed in: https://github.com/BrainJS/brain.js/pull/241