graphclust.manifold.TRNMap#
- class graphclust.manifold.TRNMap(n_nodes=100, *, n_components=2, mapping='metric', fine_tune=False, normalize=True, max_iter=None, eps=(0.3, 0.05), lam=None, lifetime=None, prune=True, alpha=(0.3, 0.01), sigma=None, random_state=None)[source]#
Bases:
_NodeMapperTopology representing network map (Vathy-Fogarassy, Kiss and Abonyi 2008).
The data are scaled to the unit hypercube (
normalize=True).A
TopologyRepresentingNetworkwithn_nodesnodes (initialized on random samples) quantizes the data and learns their topology;pruneremoves links that no sample supports at the end of training.Disconnected parts of the graph are joined by their shortest inter-component edges.
Geodesic distances between the nodes are computed along the graph.
The graph is mapped to
n_componentsdimensions by metric MDS (mapping="metric", the distance-preserving DP-TRNMap), non-metric MDS ("nonmetric", the neighborhood-preserving NP-TRNMap) or classical MDS ("classical").Optionally (
fine_tune=True) the positions are refined online towards the geodesic distances as in GNLP-NG.
The node vectors provide component planes (
graphclust.plotting.plot_component_planes()); the nodes are natural prototypes for clustering the map.- Attributes:
- nodes_ (in the scale of the input data), adjacency_ (original TRN graph),
- connected_adjacency_, dist_matrix_ (geodesic), embedding_, trn_ (fitted network).