graphclust.manifold.OnlineVisualizationNG#
- class graphclust.manifold.OnlineVisualizationNG(n_nodes=100, *, n_components=2, max_iter=None, eps=(0.3, 0.05), lam=None, lifetime=None, alpha=(0.3, 0.01), sigma=None, random_state=None)[source]#
Bases:
_NodeMapperOnline visualization neural gas (OVI-NG; Estévez and Figueroa 2006).
Learns a topology representing network (neural gas + competitive Hebbian rule) and, simultaneously, 2-D positions \(\mathbf{z}_j\) for the nodes. After each adaptation step with winner \(s\), every other node moves in the map so that its map distance to \(s\) approaches the distance of the codebook vectors,
\[\mathbf{z}_j \leftarrow \mathbf{z}_j + \alpha(t)\,e^{-r_j/\sigma(t)}\, \frac{D_{js}-d_{js}}{D_{js}}(\mathbf{z}_s-\mathbf{z}_j),\]where \(D_{js}=\|\mathbf{z}_j-\mathbf{z}_s\|\), \(d_{js}=\|\mathbf{w}_j-\mathbf{w}_s\|\) and \(r_j\) is the rank of node \(j\) by map distance from \(s\). Only the rank ordering enters the neighborhood function, so nearby relations dominate. The input distances are Euclidean, so curved manifolds are not unfolded.