brain.recurrent.LSTM() is not working
See original GitHub issueDiscussed in https://github.com/BrainJS/brain.js/discussions/732
<div type='discussions-op-text'>Originally posted by anastasiiamay September 24, 2021
I took an example from brain.js.org, but got error when tried to use it. Error occurs because of this line:
const lstm = new brain.recurrent.LSTM();
Error is:
Cannot read property 'LSTM' of undefined
So I tried to run your example on your website. And also got error:
Uncaught TypeError: Cannot read properties of undefined (reading 'LSTM')
Can someone tell me please am I doing something wrong?</div>
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:12 (1 by maintainers)
Top Results From Across the Web
brain.js problem with importing LSTM network from json
When I tried running your code, I saw the same error you saw. Using JSON.parse() seemed to fix the issue. In other words,...
Read more >brain.js - npm
brain.js is a GPU accelerated library for Neural Networks written in JavaScript. This is a continuation of the harthur/brain, which is not ......
Read more >brain-js/Lobby - Gitter
Just out of curiosity, is it a technical limitation/feasibility problem that train stream doesn't work with LSTM? The LSTM should work fine with...
Read more >Long short-term memory - Wikipedia
Unlike standard feedforward neural networks, LSTM has feedback connections. Such a recurrent neural network (RNN) can process not only single data points (such ......
Read more >Useful LSTM network example using brain.js
Fortunately the library does solve this kind of problem very easily and that is through common machine learning model called RNN (Recurrent ......
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
How is that solved? Not everyone is using React, lol
@anastasiiamay, I got it working by installing the second-most recent package. npm install brain.js@2.0.0-beta.2
Didn’t realize how much space my previous reply would take up.