brain.recurrent.LSTM() is not working #732
Answered
by
robertleeplummerjr
anastasiiamay
asked this question in
Q&A
|
I took an example from brain.js.org, but got error when tried to use it. Error occurs because of this line: |
Answered by
robertleeplummerjr
Mar 31, 2022
Replies: 2 comments 2 replies
|
Try now. There were a lot of complications when we upgraded to Typescript. Also, if you continue to have issues, post some of your training data. |
1 reply
Answer selected by
robertleeplummerjr
|
I have the same issue also import brain from "brainjs";
const trainingData = [
[1, 2, 3, 4, 5],
[5, 4, 3, 2, 1],
];
const net = new brain.recurrent.LSTM();
net.train(trainingData, {
log: (status) => {
console.log(status);
},
});
|
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try now. There were a lot of complications when we upgraded to Typescript. Also, if you continue to have issues, post some of your training data.