The Artificial Neuron
A neural network is built from simple units called neurons. A neuron takes some numbers in, mixes them and gives one number out.
What a Neuron Does
- Take the inputs (x1, x2, x3 ...).
- Multiply each input by its weight (w1, w2, w3 ...).
- Add everything together, and add a bias (b).
- Pass the result through an activation function.
| Part | Meaning |
|---|---|
| Input (x) | The data the neuron receives |
| Weight (w) | How important each input is. This is what the network learns |
| Bias (b) | A shift that helps the neuron fire more or less easily |
| Activation | A function that adds non-linearity, such as ReLU or sigmoid |
A Numeric Example
Layers
Neurons are arranged in groups called layers.
| Layer | Job |
|---|---|
| Input layer | Receives the raw data (for example 784 pixels) |
| Hidden layers | Do the learning. 'Deep' means many hidden layers |
| Output layer | Gives the final answer (for example 10 digit probabilities) |
Forward Pass in Keras
Sending data through the network from input to output is called the forward pass.
Right now the answer is meaningless because the weights are random. Learning means adjusting the weights until the answers become correct.
How Does the Network Learn? (Preview)
- Make a prediction (forward pass).
- Measure how wrong it is (the loss).
- Find which weights caused the mistake (backpropagation).
- Change the weights a little in the right direction (gradient descent).
- Repeat thousands of times.
After many repetitions, the weights settle on values that give good predictions.
Conclusion
A neural network is just many simple neurons working together. Learning means finding good weights. In the next lessons you will learn about activations, loss and the learning algorithm.

