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.

Unexpected behavior when referencing a NN from an array.

See original GitHub issue

What 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:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
issue-label-bot[bot]commented, Sep 1, 2020

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.

0reactions
robertleeplummerjrcommented, Apr 13, 2022

Closing due to inactivity.

Read more comments on GitHub >

github_iconTop 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 >

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