News for hackers. Stuff that matters.
Re:How to create a Neural Network in JavaScript in only 30 l... by chirau on Tuesday September 05, 2017 @05:38AM (#15173687)
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.

Re:How to create a Neural Network in JavaScript in only 30 l... by wimagguc on Tuesday September 05, 2017 @05:58AM (#15173766)
Indeed, create a neural network in only two lines:

  import * as nn from 'neural-network'  
  nn.create()
Re:How to create a Neural Network in JavaScript in only 30 l... by altvali on Tuesday September 05, 2017 @05:34AM (#15173668)
Well, of course you can create a neural network in Javascript in only 30 lines of code if you use a library!
Re:How to create a Neural Network in JavaScript in only 30 l... by zimzim on Tuesday September 05, 2017 @06:11AM (#15173818)
https://synaptic.juancazala.com/#/xor

just cutting the middleman

Re:How to create a Neural Network in JavaScript in only 30 l... by e19293001 on Tuesday September 05, 2017 @05:29AM (#15173641)
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.