INITIALIZING BUNKROS IDENTITY LAB
LOC UNDERGROUND
SYS --:--:--
Learning / Neural Networks

Synapses and silicon.

"Deep learning" sounds like a locked room only mathematicians can enter. It isn't. A neural network is a stack of tiny dials that pass signals to each other and slowly tune themselves to be less wrong. This class turns that into a playground you can poke — no code, no maths anxiety, just a network you can light up with your own hands.

You'll be able to

Read a neuron

Explain inputs, weights, bias and activation in plain words.

You'll be able to

See learning

Describe how a network gets "less wrong" over time.

You'll be able to

Demystify depth

Say what "layers" and "deep" actually mean.

01 — Warm-up

True or false?

"A neural network literally works like a human brain — it has real neurons that think." Decide, then confirm.

Self-Check · True / False
02 — Foundation

The neuron

A neuron is not a brain cell. It's a tiny piece of arithmetic. It takes a few inputs, multiplies each by a weight (how much that input matters), adds a bias (a nudge), and passes the total through an activation function that decides whether to "fire" and how strongly.

The one formula worth knowing

output = activation( input₁·weight₁ + input₂·weight₂ + … + bias ) — that's the whole atom of deep learning. Stack millions of them and you get something that can recognise a face or finish your sentence.

Inputs

The signals

Numbers coming in — pixels, words-as-numbers, sensor readings.

Weights

What matters

A learned multiplier on each input. Big weight = strong influence; near-zero = ignored.

Bias

The nudge

A constant that shifts how easily the neuron fires.

Activation

The decision

A non-linear gate (ReLU, sigmoid). Without it, stacking layers would collapse to one straight line.

03 — Structure

Layers & features

Wire neurons into layers and feed one layer's output into the next. The input layer takes raw data, hidden layers transform it into increasingly useful representations, and the output layer gives the answer. "Deep" just means more than a couple of hidden layers.

Early layers

Edges

In a vision network, the first layers learn simple things — lines, edges, corners.

Middle layers

Parts

They combine edges into textures and parts — an eye, a wheel, a letter.

Late layers

Whole concepts

They assemble parts into whole objects — a face, a cat, a stop sign.

The big idea — representation learning

Nobody hand-writes those features. The network discovers the useful intermediate concepts on its own. That self-discovery is why deep nets beat hand-built rules.

04 — Interactive

The living network

Toggle the inputs, then fire a signal and watch it ripple through the layers. The output node that lights brightest is the network's "answer". Re-roll the weights to see how the same inputs can lead somewhere completely different — that's why training (finding good weights) is everything.

Sandbox · Fire a signal through the net
Inputs:
Toggle inputs and press Fire Signal.
05 — Learning

How it learns

Training is a feedback loop. The network guesses (the forward pass), a loss function measures how wrong it was, backpropagation works out how much each weight contributed to the error, and an optimizer nudges every weight a little to reduce it. Repeat millions of times and the errors shrink.

Step 1

Loss

Defines what "wrong" means — the distance from the right answer.

Step 2

Gradient descent

The loss is a landscape; the gradient points downhill. The optimizer steps the weights toward lower error.

Step 3

Backpropagation

Assigns each weight its share of the blame so it can be corrected.

Dial

Learning rate

How big each step is. Too big overshoots; too small crawls.

The real goal — generalisation

The aim isn't to memorise the training set; it's to generalise to new data. Memorising noise that doesn't transfer is overfitting. Bigger ≠ automatically better.

06 — In the Wild

The helpline triage

A queer youth helpline gets more messages than volunteers can read in real time. They train a small network to flag urgent messages first.

Inputs

Words → numbers

Each message becomes numbers. The network learns which patterns (certain words, intensity, time of night) correlate with "needs a human now."

Human in the loop

It ranks, people decide

The net only re-orders the queue. A trained volunteer still reads and responds — the model is a triage aid, never the final word.

Why it matters · caveat

A network is only as fair as its data. If past messages skewed toward one dialect, the model may under-rank others — so the team audits its misses and keeps a human reading every flagged-low message in a crisis context.

07 — Research

Play with a real one

Visual playgrounds let you train a tiny network in your browser and watch the decision boundary form. Go find one and note what changes when you add layers.

Search for

What to look up

"TensorFlow Playground" · "neural network visualizer" · "activation function ReLU vs sigmoid".

Try: add a hidden layer and watch the boundary curve more; switch the activation and see training speed change.
Your findings
Saved locally on your device.
08 — Assignment

Explain it to a friend

In 3–4 sentences, explain a neural network to someone who's never coded — no jargon, just a clear mental model. Use a metaphor if it helps.

Your explanation
Saved locally.
Model answer — tap to compare

"A neural network is a stack of simple units that each weigh their inputs and pass on a signal. We don't program the rules — we show it many labelled examples, measure how wrong its guesses are, and automatically nudge the weights to be less wrong. Over time it discovers useful patterns by itself. That's why it's powerful, and also why it fails quietly: it only knows what its data showed it."

09 — Retrieval practice

Quiz — 5 questions

Question 1 · Easy
What does a "weight" do in a neuron?
A
It stores the final answer.
B
It sets how much an input matters to the neuron's output.
C
It deletes inputs the network dislikes.
Question 2 · Medium
Why do networks need non-linear activation functions?
A
To make training run faster.
B
To save memory on the GPU.
C
Without them, stacking layers collapses into a single straight line — depth becomes pointless.
Question 3 · Medium
What does backpropagation do?
A
It feeds the network more data automatically.
B
It works out how much each weight contributed to the error so it can be corrected.
C
It draws the network diagram on screen.
Question 4 · Easy
What is "overfitting"?
A
Memorising the training data so well it fails on new, unseen data.
B
Making the model physically too large for the server.
C
Training for too few steps.
Question 5 · Medium
What is the job of the hidden layers?
A
To display the answer to the user.
B
To transform raw input into useful internal features the network learns by itself.
C
To store the user's password.
10 — Avoid these

Common mistakes

Trap

"It thinks like a brain"

It's inspired by brains, but it's arithmetic — no understanding, no intent. Fix: picture dials and signals, not consciousness.

Trap

"Bigger always wins"

More layers can overfit and cost more without helping. Fix: match size to the problem and watch generalisation, not raw size.

Trap

"The output is objective"

A net only knows its training data. Fix: assume its blind spots mirror the data's gaps.

Trap

"Accuracy is the whole story"

High average accuracy can hide bad failures on a minority. Fix: check where it fails, not just how often it succeeds.

Debug your thinking
11 — Reflect

Dials, not magic

Now that a network is just weighted signals being tuned to be less wrong, does AI feel more controllable — or more fragile? Where would you refuse to let a statistical guess make the final call?

Private journal
Saved locally to your device.
Well done

You've opened the black box and found dials, not magic. Next, we point this machinery at pixels and learn how diffusion models turn pure noise into images.

12 — Reference

Glossary — precise words

Neuron
A tiny unit that weighs its inputs, adds a bias, and fires through an activation function.
Weight
A learned multiplier controlling how much an input matters.
Bias
A learned constant that shifts how easily a neuron fires.
Activation function
A non-linear gate (ReLU, sigmoid) that lets networks model complex patterns.
Layer
A row of neurons; outputs of one feed into the next.
Representation
A useful internal feature the network discovers on its own.
Backpropagation
The algorithm assigning each weight its share of the error.
Gradient descent
Stepping the weights "downhill" to reduce the loss.
Loss function
A measure of how wrong the model's prediction is.
Overfitting
Memorising training noise that doesn't generalise to new data.
Generalisation
Performing well on unseen data — the real goal of training.
Deep learning
Using networks with many hidden layers to learn rich representations.