CodingTrain / Toy-Neural-Network-JS

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

Added support for multiple hidden layers #85

Closed mustafaquraish closed 2 years ago

mustafaquraish commented 6 years ago

Neural Network should now be initialized with

let nn = new NeuralNetwork(num_layers,[num_nodes_in_each_layer]);

Examples have been updated as well. For example, a 3 layer network with 2, 2 and 1 nodes in each layer respectively would be

let nn = new NeuralNetwork(3,[2,2,1]);