Toy-Neural-Network-JS
Toy-Neural-Network-JS copied to clipboard
a beautiful print method + real error throwing/checking
-refactored errors to JavaScript convention -created a beautiful print method (try it in Google Chrome) -cut down if statements and for statements where brackets weren't needed
Just wanted to let you know that the error checking breaks the circleci test (but it will not people's code — it makes it MORE failsafe against bad inputs. It also removes the need for an empty return statement as throwing errors automatically breaks the program).
I am submitting code that breaks the test because it is usually more conventional to throw errors in javascript (especially errors that could cause the program to go haywire).
Also, it will break the print test because the new print method does not use console.table().