Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read properties of undefined LSTM #899

Open
Whesu opened this issue Jun 10, 2023 · 2 comments
Open

Cannot read properties of undefined LSTM #899

Whesu opened this issue Jun 10, 2023 · 2 comments
Labels

Comments

@Whesu
Copy link

Whesu commented Jun 10, 2023

It works well in my browser (outside node environment) only with numerical data(arrays) but the string method does not work which returns
Cannot read properties of undefined LSTM.

Any reason why this fails?
Thanks.

@Whesu Whesu added the bug label Jun 10, 2023
@Vectorrent
Copy link

It sounds like you forgot to import the LSTM class:

import { recurrent } from 'brain.js'
const net = new recurrent.LSTM()

@skulldoggery
Copy link

skulldoggery commented Jul 18, 2023

It sounds like you forgot to import the LSTM class:

import { recurrent } from 'brain.js'
const net = new recurrent.LSTM()

Expanding on @LuciferianInk (🤘)'s comment, if you can provide an abbreviated snippet of your code -- at least your imports -- we can get you squared.

But all of the recurrent implementations can be accessed with the above import statement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants