How to create a Neural Network in JavaScript in only 30 lines of code(medium.freecodecamp.org) |
How to create a Neural Network in JavaScript in only 30 lines of code(medium.freecodecamp.org) |
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.
import * as nn from 'neural-network'
nn.create()just cutting the middleman