A neural network is a model built from many small "neurons". Each neuron does simple work: take input numbers, multiply each by a weight, add them up, and push the result through a function. A row of neurons is a layer; a network with many layers is deep learning.
The key idea: early layers learn simple features (edges, colours), middle layers learn parts (eyes, wheels), and late layers learn big concepts (a face, a Khmer letter). Nobody hand-writes these rules — the network learns them from examples.
During training the network compares its output with the answer and sends the error backwards through the layers — backpropagation. Every weight shifts slightly in the direction that reduces error (gradient descent, as in Course 6). Repeat millions of times and the weights start to mean something.
Play with the widget below: change the network size and watch how the layers separate two classes of points.
What to remember:
- Neuron = multiply, add, then a function
- Early layers learn simple things; late layers learn concepts
- Backpropagation = sending error backward to fix the weights