Machine Learning and JavaScript
summary
JavaScript now runs real neural nets in the browser using TensorFlow.js with WebGL acceleration and Node.js bindings, able to train, run pretrained models and do transfer learning. Demos include a head‑controlled Pac Man using retrained MobileNet, Move Mirror matching poses from ~80,000 images via PoseNet, and SketchRNN from Magenta. Typical inference benchmarks show Python CUDA <3 ms, TF.js on GPU ≈11 ms and integrated GPU ≈100 ms. Memory is managed with tf.tidy or dispose to avoid leaks.
AI-written summary · about
chapters (12)
- 0:00Introduction and background
- 1:46ML basics for developers
- 8:50Why JavaScript for ML
- 11:59TensorFlow.js explained
- 16:36What TensorFlow.js can do
- 21:04Core API and layers API
- 24:19Training models with TF.js
- 25:44Transfer learning with TF.js
- 26:48Performance comparison
- 28:12ML apps in JavaScript
- 30:21Resources and next steps
- 31:07Future of ML in JS
