Multi-neuron neural network
One neuron draws one line. Change the 4 hidden neurons and watch the regions retrain.
Network graphRed = positive weight · Teal = negative weight
Click the graph to add the selected class. The colored map is the network's prediction.
How it learns.
give every neuron random weights
repeat:
for each point:
hidden values ← hidden neurons read x and y
guess ← output neuron reads hidden values
error ← guess − correct label
adjust output weights using the error
adjust hidden weights using the error
stop after the chosen number of training steps