How to create a Neural Network in JavaScript in only 30 lines of code (medium.freecodecamp.org) 22 points by valentinebm 8y ago ↗ HN
[–] e19293001 8y ago ↗ I learned backpropagation through understanding how computational graph works. Though you need a little bit of differential calculus. But it's not that hard though.
[–] altvali 8y ago ↗ Well, of course you can create a neural network in Javascript in only 30 lines of code if you use a library!
[–] chirau 8y ago ↗ Posts like these should be considered click bait. If you are using a library then technically it's not you writing from scratch.Unless you are writing vanilla JavaScript without calling other libraries, all you are doing is importing other code.So in your count, perhaps include the number of lines of the library that is actually doing the work. [–] wimagguc 8y ago ↗ Indeed, create a neural network in only two lines: import * as nn from 'neural-network' nn.create()
[–] wimagguc 8y ago ↗ Indeed, create a neural network in only two lines: import * as nn from 'neural-network' nn.create()
5 comments
[ 2.9 ms ] story [ 13.7 ms ] threadUnless you are writing vanilla JavaScript without calling other libraries, all you are doing is importing other code.
So in your count, perhaps include the number of lines of the library that is actually doing the work.
just cutting the middleman