BrainJS / BrainJS/brain.js.org
Cannot create LSTM network in brain.js
- Dominant language
- Vue
- Stars
- 22
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Description
After installing brainjs on an Apple Mac using the Terminal command:
```
npm install brainjs
```
I find the following attempt in node.js to create an LSTM network results in an error:
```
const brain = require('brainjs');
const net = new brain.recurrent.LSTM();
```
The error message shown in Terminal is:
```
const net = new brain.recurrent.LSTM();
^
TypeError: Cannot read properties of undefined (reading 'LSTM')
```
What am I doing wrong here?
I am following code example articles [here](https://dev.to/gfish94/brainjs-for-beginners-1g77) and [here](https://hackernoon.com/build-a-personal-shopping-assistant-using-brainjs-and-nodejs).
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.