Question

In: Advanced Math

Given a set of samples which belong to two classes C1 and C2, assume C1 and...

Given a set of samples which belong to two classes C1 and C2, assume C1 and C2 are linearly separable, please prove that perceptron learning algorithm applied to the samples will terminate after a finite number of iterations.

Solutions

Expert Solution

Given that the input variables come from
two linearly separable classes C1& C2
Let T1& T2 be subsets of training vectors which
belong to the classes C1 & C2 respectively.
Then T1 U T2 is the complete training set.

As we have seen, the learning algorithms
purpose is to find a weight vector w such that

w⋅x > 0 ∀ x∈C1
w⋅x ≤ 0 ∀ x∈C2
(x is an input vector)

If the kth member of the training set, x(k), is
correctly classified by the weight vector w(k)
computed at the kth iteration of the algorithm,
then we do not adjust the weight vector.
However, if it is incorrectly classified, we use the
modifier

w(k+1)=w (k)+ηd (k)x (k)

So we get

w(k+1) = w(k )−ηx (k ) if w(k )⋅x (k ) > 0, x (k )∈C2
w(k+1) = w(k )+η(k ) if w(k )⋅x (k ) ≤ 0, x (k)∈C1

Wecan set η = 1, as for η ≠ 1 (>0) just scales

the vectors.
We can also set the initial condition w(0) = 0, as
any non-zero value will still converge, just
decrease or increase the number of iterations.

Suppose that w(k)⋅x(k) < 0 for k = 1, 2, ... where
x(k) ∈ T1
, so with an incorrect classification we
get
By expanding iteratively, we get

w(k+1)=x (k)+w(k )
=x (k )+x (k – 1)+w(k – 1)

:

:
=x (k )+...+x (1)+w(0)

As we assume linear separability, ∃ a solution w*
where w⋅x(k) > 0, x(1)...x(k) ∈ T1. Multiply both sidesby the solution w*
to get

hus it is proved that for ηk= 1,∀ k, w(0) = 0,
given that a solution vector w*exists, the
perceptron learning rule will terminate after at
most kmax iterations


Related Solutions

Given two circles C1 and C2 in the same plane where C1 has a radius of...
Given two circles C1 and C2 in the same plane where C1 has a radius of a and C2 has a radius of b and the centers of the C1 and C2 have a distance of c apart. In terms of a,b, and c describe when the intersection of C1 and C2 would be zero points. prove this
Two separate capacitors, C1 and C2 C1 = 36 micro-Coulomb on 3 micro-Farad C2 = 72...
Two separate capacitors, C1 and C2 C1 = 36 micro-Coulomb on 3 micro-Farad C2 = 72 uC on X 2uF, , if zero 1 C2 had a gap of 0.2m maintained by a compressed plastic spring inside the gap, the natural spring length was 0.5m, the compressed spring length was 0.2 m. Spring constant = 8,000 micro-Newton/ meter Action: Connected the two capacitors in parallel Part A Find Q2-new, C2-new, new gap, Hint: Capacitance has geometry parameters, build an equation...
Two separate capacitors, C1 and C2 C1 = 36 micro-Coulomb on 3 micro-Farad C2 = 72...
Two separate capacitors, C1 and C2 C1 = 36 micro-Coulomb on 3 micro-Farad C2 = 72 uC on 5 uF C2 had a gap of 0.2m maintained by a compressed plastic spring inside the gap, the natural spring length was 0.5m, the compressed spring length was 0.2 m. Spring constant = 8,000 micro-Newton/ meter Action: Connected the two capacitors in parallel Part A Find Q2-new, C2-new, new gap, Part B Find the initial total energy, the final total energy -use...
An electrical system consists of 2 components (C1 and C2) functioning independently and are set in...
An electrical system consists of 2 components (C1 and C2) functioning independently and are set in a parallel layout. The failure time of each component follows an exponential distribution with rate 2 every year. Identify the failure density of system if i) the system functions if and only if both components function. Hence, calculate the probability of the system failing in less than 8 months. ii) the system can function only on anyone functioning component. Hence, determine the probability of...
An electrical system consist of 2 components (C1 and C2) functioning independently, and are set in...
An electrical system consist of 2 components (C1 and C2) functioning independently, and are set in a series layout. The failure time of each component follows an exponential distribution with rate 2 in every year.Suppose the system will operate if both components function, and it will fail if any one component fails. calculate i) the probability that the system fails in less than 8 months. ii) the expected time to failure of the system.
Q1: An electrical system consists of 2 components (C1 and C2) functioning independently, and are set...
Q1: An electrical system consists of 2 components (C1 and C2) functioning independently, and are set in a serial layout. The failure time of each component follows an exponential distribution with rate 2 in every year. Thus the system will operate if both components function, and it will fail if any one component fails. (a) Obtain the failure density and distribution of the system (b) Obtain the survival function/distribution of the system. (c) Based on your answer in (a) and...
You cross the following two individuals: Individual 1: A/a;B/b;C1/C2 Individual 2: a/a;B/b;C1/C2 A is fully dominant,...
You cross the following two individuals: Individual 1: A/a;B/b;C1/C2 Individual 2: a/a;B/b;C1/C2 A is fully dominant, B is dominant lethal, whereas C1 and C2 are incompletely dominant The proportion of offspring that are expected to have the same phenotype as individual 1 is _________
Two capacitors, C1 and C2, are connected in series and a battery, providing a voltage V,...
Two capacitors, C1 and C2, are connected in series and a battery, providing a voltage V, is connected across the two capacitors. (a) Find the equivalent capacitance, the energy stored in this equivalent capacitance, and the energy stored in each capacitor. (b) Show that the sum of the energy stored in each capacitor is the same as the energy stored in the equivalent capacitor. Will this equality always be true, or does it depend on the number of capacitors and...
. Let two circles C1 and C2 intersect at X and Y. Prove that a point...
. Let two circles C1 and C2 intersect at X and Y. Prove that a point P is on the line XY if and only if the power of P with respect to C1 is equal to the power of P with respect to C
1. Draw the Newman projections for ethane and the C1-C2 bond of propane. 2. Which of...
1. Draw the Newman projections for ethane and the C1-C2 bond of propane. 2. Which of the projection in #1 would have the highest energy? Why? 3. A chiral molecule requires a stereogenic center. What must be true about a carbon atom in a molecule for it to be a stereogenic center? 4. Based on the answer to #3, Draw the smallest acyclic chiral alkane and using wedges, show it in the S configuration.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT