Neural Networks in Plain JavaScript
summary
Builds a neural network from scratch in plain JavaScript that predict(front/back) from three test scores on a dataset of ~1,000 developers, training on 800 examples. Implements predict, a learn step using gradient descent, epochs and a bias neuron, and adds a learning rate to speed convergence. Starts at ~51% raw, training without bias reaches ~71%, adding bias hits zero training error after ~101 epochs and ~98% test accuracy; tuning learning rate cuts epochs to under 20 with ~92% test accuracy.
AI-written summary · about
chapters (16)
- 0:00Introduction and motivation
- 3:05Neural networks mimic nature
- 5:15Predicting developer roles
- 7:23Building a neuron in JavaScript
- 9:12Why the network failed
- 10:59Learning with gradient descent
- 13:08Training the network
- 15:18Adding bias for power
- 17:51Noise and training challenges
- 19:37Optimizing learning rate
- 21:28Testing the improved network
- 22:51Scaling to big networks
- 24:38Architectural pitfalls
- 26:46Using neural network frameworks
- 28:10Data preparation matters
- 29:18Live demo and results
