graphclust.vq#
Vector quantization and topology learning.
The estimators of this module replace the \(N\) samples by
\(n\ll N\) representatives (codebook vectors, nodes, neurons)
\(\mathbf{w}_1,\dots,\mathbf{w}_n\) and, except for LBG, also
learn a graph over them that reflects the topology of the data. They share
one interface (BaseTopologyLearner):
fit(X)setsnodes_(n, D) representatives,adjacency_symmetric sparse graph weighted by the Euclidean edge lengths,labels_index of the nearest node of every training sample,n_nodes_,n_edges_.
Fitted learners provide predict(X), transform(X),
quantization_error(X) and graph_distances().
All the incremental algorithms draw one sample per iteration, so their
results depend on random_state; the parameter schedules use
graphclust._utils.decay().
LBG, neural gas, topology representing networks and growing networks.
Classes#
Common interface of the vector quantizers and topology learners. |
|
|
Dynamic topology representing network (DTRN; Si, Lin and Vuong 2000). |
|
Grow when required network (GWR; Marsland, Shapiro and Nehmzow 2002). |
|
Growing neural gas (GNG; Fritzke 1995). |
|
Linde--Buzo--Gray vector quantizer: k-means with codebook splitting. |
|
Neural gas vector quantization (Martinetz and Schulten 1991). |
|
Topology representing network (TRN; Martinetz and Schulten 1994). |
|
Weighted incremental neural network (WINN; Muhammed 2004). |