graphclust.vq.WeightedIncrementalNetwork#

class graphclust.vq.WeightedIncrementalNetwork(n_nodes=100, *, n_signals=None, n_winners=2, eps_b=0.05, eps_n=0.0006, alpha=0.5, d=0.9995, max_age=None, init='sample', random_state=None)[source]#

Bases: BaseTopologyLearner

Weighted incremental neural network (WINN; Muhammed 2004).

A growing network in the spirit of GNG that also estimates local densities: every drawn sample increments the weight of its n_winners nearest nodes and the weight of the edges between the winner and the other winners, so that node and edge weights become proportional to the local data density. Nodes are inserted every lambda_ signals between the node of largest error and its neighbor of largest error (the new node inherits the averaged node weight and the old edge weight). The original paper proposes max_age = N / 10; much smaller values (3–10) remove spurious links on curved manifolds.

Attributes:
node_weights_ndarray (n_nodes,)
edge_weights_ndarray (n_nodes, n_nodes)