
In computer science, learning vector quantization (LVQ) is a prototype-based supervised classification algorithm. LVQ is the supervised counterpart of vector quantization systems. LVQ can be understood as a special case of an artificial neural network, more precisely, it applies a winner-take-all Hebbian learning-based approach. It is a precursor to self-organizing maps (SOM) and related to neural gas and the k-nearest neighbor algorithm (k-NN). LVQ was invented by Teuvo Kohonen.[1]
An LVQ system is represented by prototypes
W=(w(i),...,w(n))
An advantage of LVQ is that it creates prototypes that are easy to interpret for experts in the respective application domain.LVQ systems can be applied to multi-class classification problems in a natural way.
A key issue in LVQ is the choice of an appropriate measure of distance or similarity for training and classification. Recently, techniques have been developed which adapt a parameterized distance measure in the course of training the system, see e.g. (Schneider, Biehl, and Hammer, 2009)[2] and references therein.
LVQ can be a source of great help in classifying text documents.
The algorithms are presented as in.
Set up:
xi\in\RD
yi\in\{1,2,...,C\}
\{(xi,yi)\}
| N | |
| i=1 |
wj\in\RD
t
\alphat
w
\epsilon
\epsilon\in[0.1,0.5]
w\in[0.2,0.3]
Initialize several code vectors per label. Iterate until convergence criteria is reached.
xi
wj
xi
wj
yi
wj
wj\leftarrowwj+\alphat(xi-wj)
wj\leftarrowwj-\alphat(xi-wj)
LVQ2 is the same as LVQ3, but with this sentence removed: "If
wj
wk
xi
wj\leftarrowwj-\alphat(xi-wj)
wk\leftarrowwk+\alphat(xi-wk)
wj
wk
xi
Initialize several code vectors per label. Iterate until convergence criteria is reached.
xi
wj,wk
dj:=\|xi-wj\|,dk:=\|xi-wk\|
min\left(
| dj | |
| dk |
,
| dk | |
| dj |
\right)>s
| s= | 1-w |
| 1+w |
wj
xi
wk
xi
wj\leftarrowwj+\alphat(xi-wj)
wk\leftarrowwk-\alphat(xi-wk)
wk
xi
wj
xi
wj\leftarrowwj-\alphat(xi-wj)
wk\leftarrowwk+\alphat(xi-wk)
wj
wk
xi
wj\leftarrowwj-\epsilon\alphat(xi-wj)
wk\leftarrowwk+\epsilon\alphat(xi-wk)
wk
xi
wj
xi
Note that condition
min\left(
| dj | |
| dk |
,
| dk | |
| dj |
\right)>s
| s= | 1-w |
| 1+w |
xi