Neural networks, one neuron at a time 🧠

2026-11-30 · interactive · ~40 min · every figure is live, and every figure has its math and runnable Python underneath

Have you ever read that a neural network "learns like a brain", nodded along, and come away knowing exactly as much as before? Or opened a tutorial that throws model.fit() at you on line three, and the magic stays magic?

Let's fix that. In this article we build a neural network from nothing, one small piece at a time, and every piece is something you can drag, click and break. Under each demo there are two drawers: ∑ Math with the exact formulas, and 🐍 Python with NumPy code you can edit and run right here in the browser. The Python sees the same data as the demo, and what it learns flows back into the picture. ✨


The whole idea in one picture

input function with lots of knobs guess right answer ≠ ? how wrong? → nudge every knob a little

A neural network is a function with a lot of knobs (called parameters or weights). Feed it an input, it produces a guess. Training means turning those knobs, automatically, until its guesses match a pile of examples where we already know the answer. Everything else in this article answers one of three questions:

  1. What is the function? Neurons, layers and activations.
  2. How do we measure "wrong"? The loss.
  3. Which way should each knob turn? Gradient descent and backpropagation.

About the 🐍 Python drawers: once this page has loaded, it downloads Pyodide (CPython compiled to WebAssembly) plus NumPy in the background, about 10 MB, so by the time you open a drawer Python is usually ready. Your code runs entirely in your browser; nothing is sent to a server.

A neuron is a weighted vote

Your email app has to decide, for every incoming message, whether it's spam. Say it looks at two clues: how many links the email contains, and how many emails you've exchanged with the sender before. Lots of links smells like spam. A sender you talk to all the time doesn't. And the app has a baseline attitude before looking at anything, like "most email is fine". A neuron is exactly this kind of decision:

z = w₁·x₁ + w₂·x₂ + b   →   output = σ(z)

A single neuron answers a single question. But nothing stops us from asking several questions about the same email at once: is it spam? is it from a friend? is it a newsletter? Each question is its own neuron, with its own weights, reading the same inputs. A group of neurons side by side like that is called a layer. Use the buttons to add neurons:

Demo 1 · A neuron, then a layer
neurons
The email (inputs)
Try an email with 8 links from someone you've written to 10 times. Then flip the sign of a weight and see the neuron's "opinion" invert. The inputs describe this email; the weights and bias are the neuron's personality, and in a real network the personality is what gets learned.
▦ Numbers

The same layer as matrices with the current values; move a slider and watch them change. Each row of W is one neuron. Shading: red positive, teal negative, darker = bigger.

∑ Math

One neuron with inputs \(x_1, x_2\):

$$z = w_1x_1 + w_2x_2 + b = \mathbf{w}\cdot\mathbf{x} + b, \qquad p = \sigma(z) = \frac{1}{1+e^{-z}}$$

A layer of \(k\) neurons stacks their weight vectors as the rows of a matrix \(W \in \mathbb{R}^{k\times 2}\), so the whole layer is one matrix multiply:

$$\mathbf{z} = W\mathbf{x} + \mathbf{b}, \qquad \mathbf{p} = \sigma(\mathbf{z}) \quad\text{(}\sigma\text{ applied to each entry)}$$

With the current numbers:

This is why GPUs matter for deep learning: a layer of neurons is a matrix multiplication, and GPUs are machines for multiplying matrices.

🐍 Python

  

Notice the split: inputs change with every email, weights stay fixed while the network is in use. Training a network means finding good weights. Right now you're the trainer, turning knobs by hand. Soon the computer will do it.

What one neuron can see

Let's look at a single neuron from a different angle. Instead of one email, we have a whole dataset: each dot is an example with two numbers (x₁, x₂), drawn as a position on the plane, with its label as the color, red for 1 and teal for 0.

The background shows the neuron's answer at every position: redder means "probably 1", tealer means "probably 0". The dashed line is where it's exactly 50/50, where z = 0. The small red arrow is the weight vector (w₁, w₂).

Demo 2 · One neuron, a whole dataset
data
accuracy loss
Hover (or tap) a point to see the neuron's math there.
Try to reach 100% accuracy on two blobs by hand. Then press let it learn to watch the computer do it (we'll see how in a bit). Then switch to XOR or circle and try again. Can you get there?
∑ Math

The boundary is the set of points where the neuron is exactly undecided:

$$w_1x_1 + w_2x_2 + b = 0 \quad\Longleftrightarrow\quad x_2 = -\frac{w_1x_1 + b}{w_2}$$

That's the equation of a straight line, whatever the weights are. The vector \(\mathbf{w} = (w_1, w_2)\) is perpendicular to it and points toward the "1" side; the line sits at distance \(|b| / \lVert\mathbf{w}\rVert\) from the origin. A bigger \(\lVert\mathbf{w}\rVert\) doesn't move the line, it makes the transition sharper (more confident).

Let it learn runs gradient descent on the average cross-entropy loss (both explained below). For one sigmoid neuron the slopes come out beautifully simple:

$$\frac{\partial L}{\partial w_j} = \frac{1}{N}\sum_{n=1}^{N} (p_n - y_n)\,x_{n,j}, \qquad \frac{\partial L}{\partial b} = \frac{1}{N}\sum_{n=1}^{N} (p_n - y_n)$$ $$w_j \leftarrow w_j - \eta\,\frac{\partial L}{\partial w_j}, \qquad b \leftarrow b - \eta\,\frac{\partial L}{\partial b}, \qquad \eta = 1.5$$

This one-neuron model has a name you'll see everywhere: logistic regression.

▦ Numbers

All points at once: each row of X is one point, so z = X·w + b scores every point in a single matrix multiply. Hover a point on the plot to put it in the first row (◎).

🐍 Python

  

You can't. And it's not because you're bad at knobs: one neuron can only draw a straight line. The weights set the line's angle and the bias slides it back and forth. Since z is a linear expression, the set of points where z = 0 is always a line, and no line separates the XOR checkerboard or wraps around a circle.

This was a famous embarrassment. In 1969 Minsky and Papert pointed out that single-layer networks can't even compute XOR, and interest in neural networks cooled for more than a decade. The fix is to use more neurons, stacked. But first we need to look at that σ.

The squash: activation functions

The function that turns the score z into the output is called the activation function. We've been using the sigmoid, which smoothly maps any number into 0 to 1. Here are the common choices:

Demo 3 · Activation functions
∑ Math $$\sigma(z) = \frac{1}{1+e^{-z}}, \qquad \sigma'(z) = \sigma(z)\,\big(1-\sigma(z)\big)$$ $$\tanh(z) = \frac{e^{z}-e^{-z}}{e^{z}+e^{-z}}, \qquad \tanh'(z) = 1-\tanh^2(z)$$ $$\mathrm{ReLU}(z) = \max(0, z), \qquad \mathrm{ReLU}'(z) = \begin{cases}1 & z>0\\ 0 & z<0\end{cases}$$

Notice that each derivative can be computed from the output alone (\(\sigma' = \sigma(1-\sigma)\)), which backpropagation exploits: values saved on the forward pass are reused on the backward pass.

Why linear layers collapse: two layers without an activation are

$$W_2(W_1\mathbf{x} + \mathbf{b}_1) + \mathbf{b}_2 = \underbrace{(W_2W_1)}_{W}\,\mathbf{x} + \underbrace{(W_2\mathbf{b}_1 + \mathbf{b}_2)}_{\mathbf{b}}$$

which is just one layer with weights \(W\) and bias \(\mathbf{b}\). No matter how many you stack.

🐍 Python

  

Why have an activation at all? A weighted sum of weighted sums is still one weighted sum, so a hundred layers of linear neurons collapse into a single one. The bend in the activation is what lets neurons build on each other. To see that, let's build things out of several neurons.

Many neurons, one curve

Before going back to 2-D, let's watch neurons team up on the simplest possible problem: one input x, one output, and a target curve to imitate. Each hidden neuron computes f(w·x + b), one bent shape, and the output adds them up with weights v:

ŷ(x) = c + v₁·f(w₁x + b₁) + v₂·f(w₂x + b₂) + … + vk·f(wkx + bk)
Demo 4 · Building a curve out of neurons
neurons activation
target
edit neuron
error knobs
The thin teal curves are each neuron's contribution v·f(w·x + b); the thick red curve is their sum. Press fit with 1 neuron, then 2, then 4 or 8. Then pick linear: no matter how many neurons, you only ever get a straight line. With ReLU, count the kinks: one per neuron.
▦ Numbers

The parameters of each neuron, then the curve evaluated at five inputs: row n of H is every neuron's output for that input.

∑ Math $$\hat y(x) = c + \sum_{i=1}^{k} v_i\, f(w_i x + b_i)$$

Each neuron contributes one "feature" of the curve, placed at \(x = -b_i/w_i\): a smooth step for sigmoid and tanh (steepness \(w_i\), height \(v_i\)), a kink for ReLU. Two opposite steps make a bump; enough bumps make any shape. That's the intuition behind the universal approximation theorem: one hidden layer with enough neurons can approximate any continuous function on a bounded range as closely as you like.

Fit minimizes the mean squared error over the sample points with gradient descent:

$$L = \frac{1}{N}\sum_{n}\big(\hat y(x_n) - y_n\big)^2, \qquad e_n = \frac{2}{N}\big(\hat y(x_n) - y_n\big)$$ $$\frac{\partial L}{\partial v_i} = \sum_n e_n\, f(z_{n,i}), \quad \frac{\partial L}{\partial w_i} = \sum_n e_n\, v_i\, f'(z_{n,i})\, x_n, \quad \frac{\partial L}{\partial b_i} = \sum_n e_n\, v_i\, f'(z_{n,i}), \quad \frac{\partial L}{\partial c} = \sum_n e_n$$

where \(z_{n,i} = w_i x_n + b_i\). The current model:

🐍 Python

  

Two things to take away. First, more neurons means more expressive power: one neuron gives one bend, eight neurons can trace a wave. Second, the activation's bend is essential: with linear neurons, eight of them are no better than one.

Stacking neurons: hidden layers

Back to the 2-D plane and the problem one neuron couldn't solve. Put a few neurons side by side, each looking at the input and drawing its own line. Then add one more neuron that takes their outputs as its inputs. The middle neurons are a hidden layer: nobody tells them what to compute, they only exist to help the final neuron.

With 2 hidden neurons on XOR, the network starts with weights I chose by hand. Each small box shows what that neuron outputs across the whole plane (red = active). Drag the white probe to follow one input through the network.

Demo 5 · A hidden layer
hidden neurons data
edit
accuracy
With 2 neurons on XOR: h₁ fires in the bottom-right corner, h₂ in the top-left, and the output says "red if h₁ or h₂". Switch one off and the output collapses back to a single line. Try 1 hidden neuron (still one line, no better than Demo 2), then circle with 2 (a band, not quite) versus circle with 3 (a triangle around the center).
▦ Numbers

The forward pass at the probe point (drag the ◎ on the plot) as two matrix steps: hidden layer, then output.

∑ Math

With \(k\) hidden neurons, \(W_1 \in \mathbb{R}^{k\times2}\) holds one row per hidden neuron and \(\mathbf{w}_2 \in \mathbb{R}^{k}\) the weights into the output:

$$\mathbf{h} = \sigma(W_1\mathbf{x} + \mathbf{b}_1), \qquad p = \sigma(\mathbf{w}_2\cdot\mathbf{h} + b_2)$$

Current weights and the values at the probe:

The hand-wired XOR solution uses \(h_1 = \sigma(6x_1 - 6x_2 - 3)\) ("is \(x_1 - x_2 > 0.5\)?") and \(h_2 = \sigma(-6x_1 + 6x_2 - 3)\) ("is \(x_2 - x_1 > 0.5\)?"), then \(p = \sigma(8h_1 + 8h_2 - 4)\), which is a soft OR. Counting knobs: \(3k\) for the hidden layer plus \(k+1\) for the output.

🐍 Python

  

This is the core idea of deep learning in miniature: each layer computes features of the previous layer's features. The first layer finds simple things (which side of a line am I on?), the next combines them into shapes, and so on. In an image network, early layers end up detecting edges, later ones textures, then eyes and wheels, then faces and cars. Nobody programs those detectors in; they emerge from training.

Knowing that a good setting of the knobs exists is the easy part, though. I picked the XOR weights by staring at the problem. Nobody can stare at a billion knobs. We need the computer to find them, and for that it needs a way to score how good a setting is.

Measuring wrongness: the loss

The loss is a single number that says how wrong the network is on the training examples. Lower is better, 0 is perfect. Training is nothing more than making this number small. For yes/no problems the standard choice is cross-entropy (also called log loss). For one example whose true label is 1 and the network says probability p:

loss = −log(p)    (and −log(1 − p) if the true label is 0)
Demo 6 · How much does a guess hurt?
true label
∑ Math $$\ell(p, y) = -\big[\,y\log p + (1-y)\log(1-p)\,\big], \qquad L = \frac{1}{N}\sum_{n=1}^{N}\ell(p_n, y_n)$$

Its slope with respect to the guess is \(\dfrac{\partial \ell}{\partial p} = -\dfrac{y}{p} + \dfrac{1-y}{1-p}\), which blows up as a confident guess gets it wrong. Now chain it with the sigmoid, \(p = \sigma(z)\), whose slope is \(p(1-p)\):

$$\begin{aligned}\frac{\partial \ell}{\partial z} &= \left(-\frac{y}{p} + \frac{1-y}{1-p}\right)p(1-p) \\ &= -y(1-p) + (1-y)p \\ &= p - y\end{aligned}$$

Guess minus truth. This tidy result is why sigmoid outputs and cross-entropy are almost always used together, and it's the \((p - y)\) you'll keep seeing in every gradient formula below.

Why not just squared error \((p-y)^2\)? You can, but combined with a sigmoid its slope includes a factor \(p(1-p)\) that vanishes when the network is confidently wrong, exactly when it most needs a push.

🐍 Python

  

When the network is right and confident, loss is near 0. When it's unsure (p = 0.5), loss is about 0.69. When it's confidently wrong, loss shoots toward infinity. That's the personality we want: being sure and wrong should hurt a lot. The loss of the whole dataset is the average over all examples, the loss number you saw in Demo 2.

Now the problem is concrete: we have a function of the knobs, loss(w₁, w₂, b, …), and we want knob values that make it small.

Rolling downhill: gradient descent

Imagine standing on a foggy hillside, trying to reach the valley. You can't see far, but you can feel which way the ground slopes under your feet. So you take a step downhill. Then feel again, and step again. That's gradient descent. The slope tells you which way is uphill; you step the other way:

w ← w − learning rate × slope
Demo 7 · A ball looking for the valley
knobs
Click anywhere to drop the ball there. With 1 knob, start on the right at learning rate 0.1: it settles in the shallow valley (a local minimum) and misses the deeper one. Drag the learn rate and the dashed preview shows where the ball will go: try 0.02 (painfully slow), 0.7 (zigzags), 1.2 (bounces forever) and 1.9 (💥). With 2 knobs the landscape is a map: darker is lower, the arrow is the downhill direction. Try ~0.7 to watch it zigzag across the narrow valley, and anything above ~0.83 to send it flying.
∑ Math

The 1-knob landscape and its slope:

$$f(w) = 0.08w^4 - 0.55w^2 + 0.25w + 1.2, \qquad f'(w) = 0.32w^3 - 1.1w + 0.25$$

With many knobs \(\boldsymbol\theta = (\theta_1, \dots, \theta_m)\) the slope becomes the gradient, the vector of partial derivatives, which points straight uphill:

$$\nabla L = \left(\frac{\partial L}{\partial \theta_1}, \dots, \frac{\partial L}{\partial \theta_m}\right), \qquad \boldsymbol\theta \leftarrow \boldsymbol\theta - \eta\,\nabla L$$

The 2-knob landscape is the same curve along one diagonal direction and a narrow bowl across it: with \(u = 0.8w_1 + 0.6w_2\) and \(s = -0.6w_1 + 0.8w_2\),

$$f(w_1, w_2) = f(u) + 1.2\,s^2, \qquad \frac{\partial f}{\partial w_1} = 0.8f'(u) - 1.44\,s, \qquad \frac{\partial f}{\partial w_2} = 0.6f'(u) + 1.92\,s$$

Across the bowl the curvature is \(2.4\), so any learning rate above \(2/2.4 \approx 0.83\) makes the zigzag grow instead of shrink: the "💥" threshold is predictable. Real optimizers like momentum and Adam exist mostly to tame this zigzag.

🐍 Python

  

Three lessons from the ball:

  1. The learning rate is a balancing act. Too small and training takes forever; too big and you overshoot and bounce around or fly off.
  2. Steps shrink on their own near the bottom, because the slope flattens out.
  3. You can get stuck in a local valley. With millions of knobs this turns out to be less scary than it looks: in very high dimensions there's almost always some direction that still goes down.

With many knobs it works the same way, one slope per knob, every knob stepping at once. That's exactly what let it learn in Demo 2 was doing. For a single neuron the slope has a simple formula (see its ∑ drawer). But for a weight buried inside a hidden layer, how do we get its slope?

Passing the blame back: backpropagation

Backpropagation computes the slope for every weight in the network, no matter how deep. Despite its reputation it's just the chain rule from calculus, applied patiently from the output backward:

If A affects B and B affects C, then (how much A affects C) = (how much A affects B) × (how much B affects C).

Here's a tiny network: one input, a hidden layer of 1 to 3 neurons, and one output. Press next to go forward (black, computing the guess), then backward (red, computing slopes from right to left).

Demo 8 · Backprop, one step at a time
hidden neurons input x = 1.5, true label y = 1
Every red number is computed from red numbers to its right, multiplied by a local slope that only needs values from the forward pass. With 2 or 3 hidden neurons, notice that each one gets blamed in proportion to its outgoing weight v. After the backward pass, apply update moves every weight downhill (learning rate 0.5); click it a few times and watch the loss fall.
∑ Math

Forward, for hidden neurons \(i = 1..k\):

$$z_i = w_i x, \quad h_i = \sigma(z_i), \quad z = \sum_i v_i h_i, \quad p = \sigma(z), \quad L = -\log p$$

Backward, each line reusing the previous one:

$$\frac{\partial L}{\partial z} = p - y$$ $$\frac{\partial L}{\partial v_i} = \frac{\partial L}{\partial z}\,h_i, \qquad \frac{\partial L}{\partial h_i} = \frac{\partial L}{\partial z}\,v_i$$ $$\frac{\partial L}{\partial z_i} = \frac{\partial L}{\partial h_i}\,h_i(1-h_i), \qquad \frac{\partial L}{\partial w_i} = \frac{\partial L}{\partial z_i}\,x$$

For a full network with layers \(\ell = 1..L\), the same pattern in matrix form, where \(\delta^{(\ell)} = \partial L / \partial \mathbf{z}^{(\ell)}\):

$$\delta^{(L)} = \mathbf{p} - \mathbf{y}, \qquad \frac{\partial L}{\partial W^{(\ell)}} = \delta^{(\ell)}\,\mathbf{a}^{(\ell-1)\top}, \qquad \frac{\partial L}{\partial \mathbf{b}^{(\ell)}} = \delta^{(\ell)}$$ $$\delta^{(\ell-1)} = \big(W^{(\ell)\top}\delta^{(\ell)}\big)\odot f'\big(\mathbf{z}^{(\ell-1)}\big)$$

One matrix multiply per layer going backward, just like going forward. So the cost of all gradients is about the cost of one extra forward pass.

▦ Numbers

Every number from the steps above in two tables (all of them, without stepping): the forward pass, then the blame passed back.

🐍 Python

  

Look at what happened. To get the slope for a w deep inside, we never had to wiggle it and re-run the network. We reused the slope already computed for h, which reused the one for the output. That's the magic: one forward pass plus one backward pass gives the slope for every single weight, at a cost of roughly running the network twice. The Python drawer does it the slow way too (wiggle each weight, measure), and the numbers match. With a billion weights, "twice" versus "a billion times" is the difference between possible and impossible.

It also explains the step function's problem: its slope is zero everywhere, so the blame multiplied through it is always zero, and nothing upstream ever learns. Smooth activations let the blame flow.

Put all the pieces together and you have the training loop every neural network on Earth runs, from this page to the largest language models:

for step in range(many):
    batch  = pick_some_examples(data)
    guess  = network(batch.inputs)                    # 1. forward pass
    loss   = average_wrongness(guess, batch.answers)  # 2. score it
    grads  = backprop(loss)                           # 3. slope for every weight
    for w in network.weights:
        w -= learning_rate * grads[w]                 # 4. step downhill

Using a random batch each step instead of the whole dataset is called stochastic gradient descent (SGD). It's noisier but much cheaper per step, and the noise even helps shake the ball out of shallow valleys.

Playground: train one yourself

Everything at once: a real network with configurable layers, trained with exactly the loop above, in plain JavaScript. The boxes show what each neuron has learned to detect. The 🐍 drawer contains the same network in about 40 lines of NumPy; run it and its trained weights replace the ones in the picture.

Demo 9 · Playground
data activation
hidden layers neurons / layer
active / class 1negative / class 0edge: red +, teal −, thickness = |weight|
epoch 0loss –accuracy –knobs –
speed
∑ Math

For layers \(\ell = 1..L\) with activation \(f\) in the hidden layers and a sigmoid at the output, on a mini-batch of \(B\) examples stacked as rows of \(A^{(0)} = X\):

$$Z^{(\ell)} = A^{(\ell-1)}W^{(\ell)\top} + \mathbf{b}^{(\ell)}, \qquad A^{(\ell)} = f\big(Z^{(\ell)}\big), \qquad \mathbf{p} = \sigma\big(Z^{(L)}\big)$$ $$\Delta^{(L)} = \mathbf{p} - \mathbf{y}, \qquad \frac{\partial L}{\partial W^{(\ell)}} = \frac{1}{B}\,\Delta^{(\ell)\top}A^{(\ell-1)}, \qquad \Delta^{(\ell-1)} = \big(\Delta^{(\ell)}W^{(\ell)}\big)\odot f'\big(Z^{(\ell-1)}\big)$$

Weights start random, scaled by \(\sqrt{1/n_\text{in}}\) (\(\sqrt{2/n_\text{in}}\) for ReLU) so signals neither explode nor fade as they pass through layers. Starting all weights at zero would fail: every neuron in a layer would compute the same thing and receive the same update forever.

▦ Numbers

Every weight in the network, layer by layer: row = neuron, column = what it reads from. Watch them change while it trains.

🐍 Python

  

Some experiments worth running:

  1. circle, 0 hidden layers: a single neuron again. It draws its best line and gives up around 60%.
  2. circle, 1 layer, 3 neurons: each hidden box becomes a line, and the output combines three lines into a rough triangle around the center.
  3. XOR, 1 layer, 2 neurons: the same shape as Demo 5, found by the computer. Press reset weights a few times; sometimes it gets stuck in a local valley. A third neuron makes it far more reliable. Extra knobs make the landscape friendlier, one reason big networks train surprisingly well.
  4. spiral, 2 layers, 8 neurons, tanh: a genuinely hard shape. Give it time (speed 25×). The second-layer boxes show curvier shapes than the first: features of features.
  5. ReLU: boundaries become polygons made of straight pieces, like the kinks in Demo 4.
  6. learning rate 3 or 10: the loss chart turns into a seismograph. That's the 💥 ball from Demo 7.

From here to the big ones

The playground network has a few dozen knobs. Big language models have hundreds of billions. What changes between the two?

What stays exactly the same: neurons computing weighted sums plus a bias, nonlinear activations, a loss that measures wrongness, backpropagation to get every slope, and gradient descent stepping downhill. The loop above. Really.

What changes:

Cheat sheet

TermMeaningWhere you touched it
neuronweighted sum of inputs plus bias, passed through an activationDemo 1
layerseveral neurons reading the same inputs; one matrix multiplyDemos 1, 5
weight / biasthe knobs; what training learnsDemos 1, 2
decision boundarywhere the output is 50/50; a straight line for one neuronDemo 2
activationthe nonlinear squash; makes stacking worthwhileDemos 3, 4
hidden layerneurons between input and output that build intermediate featuresDemos 4, 5, 9
lossone number for "how wrong"; cross-entropy for classificationDemo 6
gradientthe slope of the loss for each knobDemos 7, 8
learning ratehow big a step downhill to takeDemos 7, 9
backpropagationchain rule from output back to input; all gradients in one passDemo 8
epochone full pass over the training dataDemo 9
SGDgradient descent on small random batchesDemo 9

Conclusion

A neural network is not a brain in a jar. It's a big function made of tiny, boring pieces: multiply, add, bend. What makes it powerful is that every piece is smooth, so the chain rule can tell each of millions of knobs which way to turn to be a little less wrong, and repeating that tiny correction millions of times turns a random function into one that recognizes faces or writes sentences.

Ready to build one yourself? The companion workshop walks you through it step by step: pick a challenge (XOR from scratch, fitting a curve, or a deep network for a spiral), write each piece in Python right in the browser, and get instant checks and visualizations of your own code.

If you want to go further: copy the playground's Python into a notebook and train it on handwritten digits (MNIST, 784 inputs instead of 2), then read about convolutions and attention, knowing they're "just" new ways of wiring the same neurons. Happy learning, and may your loss always go down! 🧠📉✨