LVQ
LVQ Training Algorithm:
NOTE: EXAMPLE: APPLES AND ORANGES Suppose we measure the weight and height of three apples and three oranges. The input vector in this case would be x = (height, weight). These input vectors are shown in the graph below.
EXAMPLE: THREE CLASSES Suppose there are three classes { red, blue and green}. The applet animation below shows how an LVQ with two neurons per color, is able to adjust the weight vectors of its neurons so that they become typical red, blue and green reference or codebook vectors. As in the previous example, the input vector x has only two elements, which can then be shown on a 2D plot.
EXAMPLE
TRAINING Take the first two input vectors (since only 2 categories) to set the weight vectors as follows: Let us set
For the input vector 0011 , Hence J = 2 since is the minimum value Now since
For the input vector 1000 Find J = 1 Now since
For the input vector 0110 Find J = 1 Now since STEP 5: Now reduce the learning rate STEP 6: Test Stopping condition. : This may be a fixed number of iterations (excluding step 0 of course) or the learning rate reaching a sufficiently small value |
LVQ2 : First Improvement Let = current input vector Let = weight (or reference) vector that is closest to i.e the weight vector of the winner neuron in the output layer. Let = weight (or reference) vector that is the next closest to i.e. the weight vector of the runner-up neuron in the output layer. Let = distance between and Let = distance between and Both vectors are updated if all of the following three conditions are satisfied:
If the above three conditions are satisfied, then i.e move weight vector away from input vector. i.e move weight vector towards from input vector. EXAMPLE: APPLES AND ORANGES
LVQ2.1 : Second Improvement Consider the two closest reference vectors and The requirement for updating these vectors is that one of them belongs to the correct class (for the current input vector ) and the other does not belong to the same class as
If these conditions are met, and suppose belongs to the correct class, the reference vector that belongs to the same class as is updated using i.e move weight vector towards from input vector. and the reference vector that does not belong to the same class as is updated according to i.e move weight vector away from input vector. EXAMPLE: APPLES AND ORANGES
LVQ3 : Third Improvement Allow the two closest vectors to learn if the following condition is met:
EXAMPLE: APPLES AND ORANGES |
Reading paper:
An online learning vector quantization algorithm
A methodology for constructing fuzzy algorithms for learning vector quantization