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.

Can I use stream training with LSTM network?

See original GitHub issue

What is wrong?

Iā€™m not sure am I able to use Training stream while training LTSM network. When I try to do that i get this error:

var trainStream = net.createTrainStream({
                      ^

TypeError: net.createTrainStream is not a function
    at Object.<anonymous> (C:\Users\Username\Desktop\brain-tst\app.js:5:23)
    at Module._compile (internal/modules/cjs/loader.js:702:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
    at Module.load (internal/modules/cjs/loader.js:612:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
    at Function.Module._load (internal/modules/cjs/loader.js:543:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:744:10)
    at startup (internal/bootstrap/node.js:238:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:572:3)

Where does it happen?

It happens when trying to use createTrainStream() with LTSM network

How do we replicate the issue?

Just try to train LTSM network

var brain = require('brain.js');
var net = new brain.recurrent.LSTM();
var trainStream = net.createTrainStream();

First error will be not existing function so we donā€™t need to care about whatā€™s inside it.

How important is this (1-5)?

4

Expected behavior (i.e. solution)

Stream Training is possible with LTSM network

Other Comments

Itā€™s possible that I messed up something because Iā€™m not familiar with Brain.js

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:3
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
robertleeplummerjrcommented, Dec 14, 2022

I can take a look this week.

0reactions
harrysayerscommented, Dec 15, 2022

I can take a look this week.

Thank you šŸ‘

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to process data in a data stream for a LSTM
How can a data stream for a RNN (LSTM) be handled, when the stream contains data sets belonging to different prediction classes? Training...
Read more >
How to Update LSTM Networks During Training for Time ...
A benefit of using neural network models for time series forecasting is that the weights can be updated as new data becomes available....
Read more >
Tracking of Humans in Video Stream Using LSTM Recurrent ...
Online training videos can be used to train entirely from scratch online during test time and teach the tracker to handle complex challenges...
Read more >
A Three-Stream CNN-LSTM Network for Automatic Modulation ...
We propose a three-stream network combining CNN and LSTM. CNN can extract the spatial features of the signal, and LSTM can extract the...
Read more >
Non-Stationary Real Time Data Stream Forecasting
In this particular use case, we show the ability of a novel modified LSTM Neural Network to outperform ARIMA modeling for nonlinear andĀ ......
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