1. Single Neurone
- Set the inputs by pressing the buttons marked input 1 and input 2 (Red is off(False or 0) and Green is on(True or 1))
- Change the weights by changing weights 1 to 3, wx goes with input x and weight 3 is the bias.
- To activate the neuron you need to click on the the yellow ball ('the neuron').
The video below show it in action and explains the code.
To see the code go to https://scratch.mit.edu/projects/131892234/ .
A slight modification click on the bell to change the weights
The code is available at https://scratch.mit.edu/projects/171190294/
2. Training a Neurone
In this part, the training of a neuron all written in Scratch is tackled. The video shows it action and you can have a go at using the software yourself at the end of the post. The Scratch code can be found at https://scratch.mit.edu/projects/132915502/
All opinions in this blog are the Author's and should not in any way be seen as reflecting the views of any organisation the Author has any association with. Twitter @scottturneruon