graphclust.vq.DynamicTopologyRepresentingNetwork#
- class graphclust.vq.DynamicTopologyRepresentingNetwork(*, max_iter=1000, alpha=(0.05, 0.0005), rho=(None, 0.1), max_age=5, random_state=None)[source]#
Bases:
BaseTopologyLearnerDynamic topology representing network (DTRN; Si, Lin and Vuong 2000).
Grows from a single node by a vigilance test: if the winner \(\mathbf{w}_c\) of the drawn sample is farther than the vigilance threshold \(\rho(t)\), the sample itself becomes a new node linked to the winner. Otherwise the winner and its graph neighbors move towards the sample with Gaussian-normalized steps
\[\Delta\mathbf{w}_i = \alpha(t)\,\frac{s_{ci}\,e^{-\beta\|\mathbf{x}-\mathbf{w}_i\|^2}} {\sum_j s_{cj}\,e^{-\beta\|\mathbf{x}-\mathbf{w}_j\|^2}}\,(\mathbf{x}-\mathbf{w}_i),\](\(s_{ci}=1\) for the winner and its neighbors) and the winner is linked to the second nearest node. Links of the winner older than
max_ageare deleted and isolated nodes are removed. \(\rho\) decays fromrho[0](default: mean standard deviation of the features) torho[1]; the annealing parameter \(\beta\) grows by a factor 100.