← All courses

Course 3 · Deep Learning & Neural Networks · about 12 min

One neuron, three ingredients

By the end of this course you can explain what a neural network is, how it learns from its mistakes, and which kind of network suits which job.

An artificial neuron is a tiny calculator, loosely inspired by brain cells. It does three things:

Above 0.5, we say the neuron "fires". Training a network means finding good weights and biases. Here, you are the training.

Try itTurn a neuron into an AND gate

Make the neuron fire only when both inputs are 1. Every row needs a ✓.

1.0
1.0
0.0
Input 1Input 2OutputShould fire?

CheckWhat does a weight control in a neuron?

Step 2

Layers make it deep

One neuron can only draw a simple dividing line. Networks stack many neurons in layers: an input layer, one or more hidden layers, and an output layer. Each layer passes its results to the next.

"Deep" learning simply means many hidden layers. Each layer builds on the one before it, so the network learns simple patterns first and combines them into complex ones.

Try itGive the network hidden neurons

This is a real network training in your browser. Pick a pattern, then compare 0, 3, 8 and 16 hidden neurons. With 0 it can only draw a straight line. You can also click the plot to add dots.

Neural network lab2 inputs → 8 hidden neurons → 1 output
Step0
Loss—
Train—
Test—
Hidden neurons
Click the plot to add

Dots are training data; rings are test data the network never trains on. Train and Test show the share it gets right.

Try itWhat does each layer of an image network learn?

Tap them from the first layer to the last.

CheckWhat makes a neural network "deep"?

Step 3

Learning from mistakes

A network learns in a loop that repeats millions of times:

The size of each nudge is the learning rate. Think of walking down a foggy hill: small steps are slow, giant leaps can carry you past the bottom.

Geoffrey Hinton co-authored the 1986 paper that made backpropagation popular. Decades later he shared the 2018 Turing Award with Yoshua Bengio and Yann LeCun, and the 2024 Nobel Prize in Physics with John Hopfield.

Try itPick a learning rate

The ball starts on the side of the valley. Each step moves it downhill. Try small, medium and large learning rates.

0.05

CheckWhat does backpropagation work out?

Step 4

Different networks for different data

Three families of networks cover most of what you will meet:

Yann LeCun built early CNNs in the late 1980s and 1990s. One version read handwritten numbers on bank cheques.

Try itWhich network fits?

CheckWhat lets a transformer connect words that are far apart in a text?

Step 5

When deep learning is worth it

Deep learning shines on messy, unstructured data: images, audio and text. It also has costs:

Good engineers pick the simplest tool that works.

Try itDeep learning, or something simpler?

CheckYour data is a spreadsheet with 300 rows. What should you try first?

Step 6 · Recap

What you learned

Quick reviewThree questions from memory. No scrolling back.

Next up is Course 4, where you put these ideas into a real machine learning pipeline. Mark this course complete below when you're ready.