Week 02 lab · hidden layers
Multi-neuron neural network
One neuron draws one straight line. This network combines 4 hidden neurons to learn more useful regions.
Network graphRed = positive weight · Teal = negative weight
Click the graph to add the selected class. The colored map is the network's prediction.
Pseudocode
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