CodingTrain / Toy-Neural-Network-JS

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

Handle errors and prepare for the implementation of hidden multi-layers #105

Closed maksuel closed 6 years ago

maksuel commented 6 years ago

Added "Rest parameters" for the future implementation of hidden multi-layers, where you will pass arguments like this: new NeuralNetwork(3,6,8,6,4) new NeuralNetwork(input, hidden_1, hidden_2, hidden_3..., output)

Added "handle errors" in constructor method.

maksuel commented 6 years ago

Follow => https://github.com/CodingTrain/Toy-Neural-Network-JS/pull/61