The Single-Layer Perceptron

Animated connection between the biological neuron and the linear classifier

© 2026 Theodore P. Pavlic
MIT License

Synaptic weights w
Input signals x
Bias weight b  (w₀ on fixed input x₀ = −1)
Presets:
The Biological Neuron Model
Drag slider ↕ to set xᵢ  ·  Click/right-click wᵢ label ±weight
The Lever (Torque) Analogy
Drag ↔ moves weight (xᵢ)  ·  Drag ↕ changes mass (wᵢ or b)
Linear Classifier — Feature Space View
Drag x₁ ball ↔ or x₂ ball ↕ to set inputs  ·  Click/right-click axis balls ±wᵢ  ·  Drag ✦ input point freely  ·  Drag threshold ● along w axis to set bias
Feature Space (x₁, x₂)
2-Input Balance
Chaining Neurons — The Lever Linkage
Drag the upstream handle ↕  ·  See how vertical output converts to horizontal input position via a bell crank