CodingTrain / Toy-Neural-Network-JS

Neural Network JavaScript library for Coding Train tutorials
MIT License
425 stars 242 forks source link

Add simple NN test #66

Open arisanguinetti opened 6 years ago

arisanguinetti commented 6 years ago

I'm a noobie on testing, not even sure if what I made is correct. I've created a random NN and saved the initial status. then trained the NN 100 times and compared the output with a stored target NN. I think this was mentioned in issue #53 by @shiffman

GhostRabbit commented 6 years ago

Tests of nn.js is desperatly needed but I fear that running a network for 100 iterations can quickly result in the smell of slow tests. But slow tests are better then no tests!