Simon has translated Examples 10.1 (Perceptron) and 10.2 (Perceptron Steering) from Daniel Shiffman’s Nature of Code book, Chapter 10 (Neural Networks) into JavaScript in Codepen.io. Both projects are available online, you can play with them and see the code if you go to Simon’s Neural Networks collection page at https://codepen.io/collection/DbBqJj/
Simon plans to place more JavaScript translations of neural networks examples from Daniel Shiffman’s book on the same page in the course of this week.
The first of the videos below shows Simon talking about his translation of the Perceptron. In the second video, he is showing the Perception Steering project, a combination of steering behaviours and neural network (the autonomous agent in the program get a “brain” with one “neuron” that allows him to seek the target closest to the moving circle).