Inside a neuron
02 / The building block

One small decision.

Inputs carry information. decide how much it matters. Adjust them to see a compute its output.

The neuron workbench

Adjust weights. Inspect the signal.
w₁ = 0.8w₂ = -0.5σ(z)0.7Input x₁0.3Input x₂ΣWeighted sumz = 0.510bias +0.10.62Activation62.5% probability
Input x₁0.70
Input x₂0.30
Select a node to understand its role. No training happens when you move these sliders.
Differentiable neuron demonstrationForward pass · weights edited manually
01 / The intuition

In plain language

A multiplies each input by a , adds a , and applies an . A can strengthen an input or reverse its effect.

02 / Under the hood

The technical idea

The original uses a hard threshold and a mistake-driven learning rule. A is a differentiable alternative; it is not identical to the historical .

03 / The biology connection

From data to proteins

In a simple protein classifier, two inputs could encode normalized hydrophobicity and charge. The numbers in this exhibit are generic , not a validated biological prediction.

Look deeper: mathematics, methods & limitations

z = w₁x₁ + w₂x₂ + b; a = f(z)

A positive increases z when its input increases. A negative decreases z. The shifts the response even when both inputs are zero.

Threshold outputs 1 for z ≥ 0 and 0 otherwise. maps z to (0,1). returns max(0,z), so its output is not inherently a probability.

uses the chain rule to compute derivatives through differentiable operations. A hard step is not useful for ordinary -based ; the original uses a different update rule.

Go to the original research

A moment to connect the dots

What does the bias change?