Neural networks
A neural network is made of many tiny maths units called neurons, arranged in layers. Each connection has a weight: how much one neuron listens to another. The input layer takes in the data, hidden layers find patterns, and the output layer gives the answer.
Everyday analogy
A group of friends deciding whether a photo shows a cat. One notices whiskers, one notices pointy ears, one notices a tail. Each passes their opinion forward, and the friends trust some opinions more than others (the weights). Training teaches them whose opinion to trust more.
Example
Recognising a handwritten number: the input layer reads the pixels, hidden layers spot lines and curves, and the output layer says "this is a 7".
A simple neural network
How a neural network learns
Try it yourself
About 10 minDo one neuron by hand
- Decide whether to go for a walk using three inputs: sunny (1 or 0), free time (1 or 0), tired (1 or 0).
- Give each a weight, e.g. sunny = 2, free time = 3, tired = -4. Multiply and add them up.
- If the total is above 2, the answer is go. Try different days and change the weights.
What you should see: Changing the weights changes the decision. Training a network is simply finding good weights.
Use any free AI chatbot (ChatGPT, Claude, Gemini or Copilot). Never paste private or confidential information.