Unexpected behavior when referencing a NN from an array.
See original GitHub issueWhat is wrong?
Trying to call ‘train()’ method on a neural network instance from an array of type any, it throws an exception: Network error rate is unexpected NaN, check network configurations and try again. Most probably input format is not correct or training data is not enough.
Code used is basically from examples within the documentation page.
The way I reference nn seems to cause the issue.
Where does it happen?
Create an array of any, create the nn, and try to train it by nn_array[name].run(data)
Expected behavior (i.e. solution)
I expect it to run training successfully, since if I try to successfully retrieve the instance it works by nn_array[name]
Version information
Nodejs: 12
Brain.js: Latest
How important is this (1-5)?
5
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
C modifying array unexpected behaviour - Stack Overflow
An array reference IS an address (it's a misnomer to say it's a pointer, but it will behave as such). It works because...
Read more >Unexpected behavior while creating an array of arrays
Below I have a simplified example of a function that creates an array of arrays in a loop. A while back code similar...
Read more >Week 1 Quiz - Introduction to deep learning - GitHub
Week 1 Quiz - Introduction to deep learning. What does the analogy “AI is the new electricity” refer to? AI is powering personal...
Read more >Detecting unusual input to neural networks | SpringerLink
We study a method that judges the unusualness of an input by evaluating its informative content compared to the learned parameters. This ...
Read more >Arrays - The Linux Documentation Project
Array elements may be initialized with the variable[xx] notation. ... Quoting permits embedding whitespace within individual array elements. echo ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Issue-Label Bot is automatically applying the label
bug
to this issue, with a confidence of 0.78. Please mark this comment with 👍 or 👎 to give our bot feedback!Links: app homepage, dashboard and code for this bot.
Closing due to inactivity.