graphclust.manifold.GeodesicNLPNG#
- class graphclust.manifold.GeodesicNLPNG(n_nodes=100, *, n_components=2, max_iter=None, eps=(0.3, 0.05), lam=None, n_links=1, alpha=(0.3, 0.01), sigma=None, random_state=None)[source]#
Bases:
_NodeMapperGeodesic nonlinear projection neural gas (GNLP-NG; Estévez, Chong, Held and Pérez 2006).
First learns the codebook with neural gas and links every sample’s
n_links + 1nearest nodes (competitive Hebbian learning), connects the graph and computes geodesic distances \(\delta_{js}\) between nodes. Then the map positions are adapted online: for the winner \(s\) of each drawn sample,\[\mathbf{z}_j \leftarrow \mathbf{z}_j + \alpha(t)\,e^{-(r_j/\sigma(t))^2}\, \frac{D_{js}-\delta_{js}}{D_{js}}(\mathbf{z}_s-\mathbf{z}_j),\]with \(r_j\) the rank of node \(j\) by geodesic distance from \(s\). Geodesic distances let the map unfold curved manifolds.