Perceptron Training Rule
The objective of perceptron learning is to find a set of weights that makes the perceptron correctly classify all training examples, provided that the training data are linearly separable.
For a training example , the perceptron computes
and produces the output
where:
- = input vector
- = weight vector
- = bias
- = output produced by the perceptron
- = target (desired) output
- = learning rate
1. Perceptron Weight Update Rule
The perceptron training rule updates each weight according to
The bias can similarly be updated as
Therefore, in vector form:
and
2. Meaning of the Error Term
The quantity
determines how the weights should be changed.
Case 1: Correct classification
If
then
Therefore,
and
So no weight update is made.
Case 2: Target , predicted
Suppose
Then
Therefore,
The weights associated with positive inputs increase, helping the perceptron produce a larger value of for this example.
Case 3: Target , predicted
Suppose
Then
Therefore,
The weights associated with positive inputs decrease, helping reduce for this example.
3. Example of Weight Update
Suppose
and
Suppose the target is
but the perceptron produces
Then:
For the first weight:
For the second weight:
Bias:
Thus,
4. Perceptron Training Algorithm
The complete training process can be summarized as:
5. Convergence Condition
The important theoretical result emphasized in the perceptron learning approach is:
That means after a finite number of updates, the perceptron can find a weight vector that correctly classifies all training examples.
However, if the data are not linearly separable, convergence is not guaranteed.
For example:
because XOR is not linearly separable.
🧠 Student takeaway
The central rule to remember is:
and
This is the perceptron training rule.

Comments
Post a Comment