Neural networks, gently

Tiny calculators, wired in layers, that together can recognise a face or write a poem.

⏱ 6 min read

Neural networks are loosely inspired by brains, but don't let the name intimidate you. Each "neuron" is a very simple calculator. The magic comes from wiring thousands or billions of them together.

x₁× w₁xβ‚‚Γ— wβ‚‚x₃× w₃Σ+ biasReLUyinputsweighted sumoutput
One artificial neuron: multiply each input by a weight, add them up with a bias, then pass the total through an activation function.

βš–οΈ Weights: how much each input matters

Deciding whether to go for a run? Inputs: is it sunny, am I tired, is my friend coming.

Each input gets a weight. Sunshine might matter a lot (big weight), tiredness might count against it (negative weight).

βž• Add it up, then decide

The neuron adds up all the weighted inputs plus a bias (its baseline mood).

Then an activation function decides how strongly to "fire". A popular one, ReLU, simply says: if the total is negative, output 0; otherwise pass it through.

πŸ₯ž Layers make it powerful

Neurons are stacked in layers. The first layer sees raw input (pixels), middle ("hidden") layers build up features, and the last layer gives the answer.

In an image model, early layers might detect edges, middle layers shapes like eyes, and later layers whole faces.

🧩 Quick quiz

What are a neural network's "weights"?

πŸ“ How big are they?

A network that reads handwritten digits might have ~100,000 weights.

Modern large language models have billions to trillions. Same idea, wildly bigger.

🧩 Quick quiz

Why do we need an activation function like ReLU between layers?

✨ Before you drift off

  • A neuron = weighted sum of inputs + bias β†’ activation function.
  • Layers build from simple features up to complex ones.
  • Weights are learned during training.

πŸ“š Go deeper (free & open)