CodingTrain / Toy-Neural-Network-JS

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

Made the matrix methods return the matrix, making them chainable, and added a test. #24

Closed mdatsev closed 6 years ago

mdatsev commented 6 years ago

This commit allows stuff like m.add(x).multiply(y).print() possible, as well as for example return m.map(e => e*2) which will simplify some stuff later down the road. The test I added does not cover all the functions so some additions may be needed.

musabkilic commented 6 years ago

Looks great!

shiffman commented 6 years ago

Awesome!