Perceptron

Perceptron

Deep Learning

Definition

The simplest artificial neuron: it adds up the inputs with weights, adds a bias, then applies a threshold function to output 0 or 1.

Core idea

It is the historical building block of neural networks (Rosenblatt, 1958). It learns by adjusting the weights whenever it makes a mistake, and it can only separate classes that are linearly separable (it cannot solve XOR).

Σw₁w₂w₃
Weighted inputs are summed with the bias, then passed through a threshold function.

How it works

  1. We initialize the weights
  2. We compute the weighted sum and apply the threshold
  3. If it is wrong, we adjust the weights in the direction of the correction
  4. We repeat over the data for several passes

Data type and problem type

Data typeNumeric
Problem typeLinear binary classification

Strengths

  • Very simple and ideal for understanding neural networks
  • Fast

Limitations

  • Linear boundaries only
  • Does not converge if the data is not linearly separable

Key parameters

  • The learning rate
  • The number of passes

Evaluation metrics

  • Accuracy

Supporting tools

WEKAfunctions.VotedPerceptron
OrangeNeural Network (with a small layer as an educational substitute)
KNIMERProp MLP Learner (a multilayer network as a substitute)

Applied examples

  • The AND and OR logic gates
  • Separating two linearly separable classes

Alternative algorithms

Try it in the lab