question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

brain.recurrent.LSTM() is not working

See original GitHub issue

Discussed 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
GoldenretriverYTcommented, Aug 26, 2022

How is that solved? Not everyone is using React, lol

2reactions
gavin-rosecommented, Oct 1, 2021

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found