-
Notifications
You must be signed in to change notification settings - Fork 1.1k
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
LSTM is extremely slow ( 2 hours ) #470
Comments
Try to replace your outputs with |
I didn't pay more attention to your trainingSet in my previous answer, but I see that you are trying to train your network with dates in the form of strings. Maybe try to see what the similarities are in your data and use them in your trainingSet as inputs instead of a literal string Make a short script before, reviewing all your data by checking if it meets the above criteria. Then fill your trainingSet like that:
And when you want to use |
@tymmesyde That makes sense now. Thanks |
@tymmesyde thank you so much |
The training takes too long i.e. somewhere around 14 hours or even more.. Is there a way i can reduce my training time? Although i am storing the trained results in JSON and using that while retrieving the output.. Using Node with brain.js version 2.0.0-alpha.11 const trainingData = [ const network = new brain.recurrent.LSTM(); // create configuration for training network.train(trainingData, config); |
I am having the exact same problem as above. Can someone please help me?
|
@ninjaferrari90 @Paulsy10 , this is not a bot, this is a neural net, a component to build your bot. |
I am still a bit confused on what you mean by "normalizing"... Do you mean to use numbers instead of strings? |
Read the issue and my comment in response to this issue, this is explained in details. |
|
This is the same issue, you need to normalize your dataset. In your case if you just want to make a simple answers bot, you only need to create a dictionary of strings like so: Questions:
Answers:
Then normalize your data by using your dictionary to translate these values to a [0,1] range.
More on the matter here: Hope it helps. |
Hi. I'm trianing an LSTM network that takes 2 hours to train 1000 training data with only 2000 iterations. Why is it so very slow?
The text was updated successfully, but these errors were encountered: