Introduction to Artificial Neural Networks: Perceptron — Beginner-Friendly Notes
1. What a Perceptron Is (the first neural network)
Perceptron = simplest binary classifier inspired by a single neuron: takes features , weights , bias , computes weighted sum and fires if above threshold.
Biology: dendrites (inputs) → sum → axon fires. Perceptron mimics that.
2. Model (one line + formula)
- Weights : importance of feature .
- Bias : threshold shift.
- Activation: step (binary). Later replaced by sigmoid/ReLU, but perceptron uses step.
Geometrically: perceptron draws a hyperplane that separates classes (linear classifier).
3. How It Learns (concept — Perceptron learning rule)
If prediction wrong: , where = learning rate. Repeat over data until no errors (if linearly separable).
Guarantee: converges if data is linearly separable; otherwise never converges — needs multilayer nets.
4. Limitations (must-know for exam)
- Can only separate linearly separable data (e.g., AND, OR) — fails on XOR (needs hidden layer).
- Single layer → cannot learn non-linear boundaries.
- Step activation not differentiable → cannot use gradient descent as in modern nets.
5. Why Still Taught
- Building block of multilayer perceptron (MLP) and deep networks (next topic).
- Historical milestone (Rosenblatt 1957) showing learning from data.
6. One-Line Summary
A perceptron classifies via , learning by error-correction and converging only for linearly separable data, failing on XOR and motivating multilayer architectures.
7. Quick Self-Check
- What decision boundary does a perceptron learn?
- Why does it fail on XOR?