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

train-stream does not support the Recurrent class #2

Open
Vectorrent opened this issue Jun 25, 2023 · 0 comments
Open

train-stream does not support the Recurrent class #2

Vectorrent opened this issue Jun 25, 2023 · 0 comments

Comments

@Vectorrent
Copy link

I tried to configure a Recurrent network to use train-stream, but ran into the following error:

one-brain-1  | node:internal/event_target:1037
one-brain-1  |   process.nextTick(() => { throw err; });
one-brain-1  |                            ^
one-brain-1  | 
one-brain-1  | TypeError [Error]: neuralNetwork.updateTrainingOptions is not a function
one-brain-1  |     at new TrainStream (/one/node_modules/train-stream/dist/index.js:41:23)
one-brain-1  |     at MessagePort.<anonymous> (file:///one/src/encoder.js:57:29)
one-brain-1  |     at [nodejs.internal.kHybridDispatch] (node:internal/event_target:762:20)
one-brain-1  |     at exports.emitMessage (node:internal/per_context/messageport:23:28)
one-brain-1  | Emitted 'error' event on Worker instance at:
one-brain-1  |     at [kOnErrorMessage] (node:internal/worker:326:10)
one-brain-1  |     at [kOnMessage] (node:internal/worker:337:37)
one-brain-1  |     at MessagePort.<anonymous> (node:internal/worker:232:57)
one-brain-1  |     at [nodejs.internal.kHybridDispatch] (node:internal/event_target:762:20)
one-brain-1  |     at exports.emitMessage (node:internal/per_context/messageport:23:28)
one-brain-1  | 
one-brain-1  | Node.js v20.3.1

I was unsure if this was a known issue. The docs say nothing about supporting the Recurrent class, nor do I even think the class is ready, in vanilla Brain.js? I'm not sure, but I've struggled to make one of these networks work in any environment.

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

No branches or pull requests

1 participant