ML0044 Perceptron

Describe the Perceptron and its limitations.

Answer

The perceptron is a simple linear classifier that computes a weighted sum of input features, adds a bias, and applies a step function to produce a binary decision. It works well only for data that is linearly separable, where a straight line (or hyperplane in higher dimensions) can separate the classes.

(1) Linear Score: The perceptron combines inputs linearly as w^T x + b; geometry-wise this defines one hyperplane.
(2) Step Activation: A threshold turns the score into a hard 0/1 output. Note this non-linearity at the output still leaves the decision boundary linear.
(3) Limitations: It cannot solve non-linearly-separable problems like XOR, a single layer cannot model complex patterns, and it outputs bare binary values with no confidence or probability.

Perceptron diagram with three inputs and a constant one bias input feeding weighted arrows into a step activation output node

Figure 1: Perceptron structure: inputs x_1, x_2, x_3 and a constant 1 (for the bias) feed through weights into a single unit whose step activation emits the binary output.

Mathematical Formulation:
y = f(w^T x + b)
f(z) = 1 \text{ if } z \geq 0;\quad f(z) = 0 \text{ otherwise}

Where:

  • y is the predicted output (0 or 1).
  • w is the weight vector, x the input vector, b the bias term.
  • f(\cdot) is the step activation; z = w^T x + b is the linear pre-activation whose sign alone decides the class.
Left panel linearly separable data split by one straight line, right panel XOR pattern that no single line can separate

Figure 2: What one hyperplane can and cannot do: the left data is linearly separable and a perceptron solves it; the right XOR pattern defeats every single straight line, the classic motivation for hidden layers.


Login to view more content


Log in to track your progress

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *