Brain.js Network Training Pixel Array and training Error

I was working on a small brain.js pattern identification project. I tried, the project isn't working fine. Each time I run `net.run ([...<pixelarray>])`, It gives me result more than 0.93, whatever the pixel pattern is. How to solve it? In this code, you should train pixelarray 3 times and in 4th time, the pixelarray is ran by net.run () method. https://code.sololearn.com/W25U8vMJG0Zd/?ref=app

1/20/2020 4:03:50 PM

Sarthak 🇳🇵

5 Answers

New Answer


Maybe something like this? https://youtu.be/aircAruvnKk


add an intermediate layer of Nodes.


Gordon I updated the code, added hidden layers. Not working still


I have watched that before. And not only chapter 1, but upto chapter 4


Gordon Hidden Network Layers?