Live data from Hacker News

How to create a Neural Network in JavaScript in only 30 lines of code

medium.freecodecamp.org

1–6 of 6 posts

Re: How to create a Neural Network in JavaScript in only 30 lines of code

#4
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 lines of code

#5
post #4

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.

Indeed, create a neural network in only two lines:

  import * as nn from 'neural-network'  
  nn.create()