graphclust.manifold.CurvilinearComponentAnalysis#
- class graphclust.manifold.CurvilinearComponentAnalysis(n_components=2, *, geodesic=False, k=8, n_nodes=None, n_epochs=50, alpha=(0.5, 0.01), lam=(None, 0.01), weighting='step', random_state=None)[source]#
Bases:
_NodeMapperCurvilinear component analysis (CCA; Demartines and Hérault 1997) and curvilinear distance analysis (CDA).
Minimizes \(E=\tfrac12\sum_{i\ne j}(\delta_{ij}-d_{ij})^2F(d_{ij},\lambda)\) with the stochastic rule: pick a sample \(i\) and move every other point,
\[\mathbf{y}_j \leftarrow \mathbf{y}_j + \alpha(t)\,F(d_{ij},\lambda(t))\, \frac{\delta_{ij}-d_{ij}}{d_{ij}}(\mathbf{y}_j-\mathbf{y}_i),\]with the step weighting \(F(d,\lambda)=\mathbb{1}[d<\lambda]\) (or \(e^{-d/\lambda}\)). Because only short map distances are enforced, long distances can stretch and manifolds unfold. With
geodesic=Truethe input distances \(\delta_{ij}\) are graph distances on thek-NN graph, which turns CCA into CDA (Lee, Lendasse and Verleysen 2004).n_nodesquantizes the data with neural gas first.