graphclust.manifold#

Dimensionality reduction and visualization of high-dimensional data.

Distance-based mappings

classical_mds(), MetricMDS, NonMetricMDS, SammonMapping.

Neighborhood-based mappings

LocalityPreservingProjection, SelfOrganizingMap, IncrementalGridGrowing.

Topology-based (graph distance) mappings

Isomap, Isotop, CurvilinearComponentAnalysis (CCA, and CDA with geodesic=True), OnlineVisualizationNG (OVI-NG), GeodesicNLPNG (GNLP-NG) and TRNMap.

Neighbor-graph embeddings (post-2013 state of the art)

LaplacianEigenmap, DiffusionMap, UMAPEmbedding (a NumPy implementation of the UMAP algorithm) and tsne() (a thin wrapper of scikit-learn’s Barnes–Hut t-SNE).

Every class has fit(X) and fit_transform(X) and stores the map in embedding_. The methods that first quantize the data (OVI-NG, GNLP-NG, TRNMap, Isotop with n_nodes) map the nodes: their embedding_ has one row per node and transform(X) places samples at the position of their nearest node.

Distance-, neighborhood- and topology-based maps and neighbor-graph embeddings.

Classes#

CurvilinearComponentAnalysis([n_components, ...])

Curvilinear component analysis (CCA; Demartines and Hérault 1997) and curvilinear distance analysis (CDA).

DiffusionMap([n_components, k, epsilon, ...])

Diffusion maps (Coifman and Lafon 2006).

GeodesicNLPNG([n_nodes, n_components, ...])

Geodesic nonlinear projection neural gas (GNLP-NG; Estévez, Chong, Held and Pérez 2006).

IncrementalGridGrowing(*[, max_nodes, ...])

Incremental grid growing (Blackmore and Miikkulainen 1993).

Isomap([n_components, k, eps, graph])

Isomap (Tenenbaum, de Silva and Langford 2000).

Isotop([n_components, n_nodes, k, n_iter, ...])

Isotop (Lee and Verleysen 2002, 2004).

LaplacianEigenmap([n_components, k, t])

Laplacian eigenmaps (Belkin and Niyogi 2003).

LocalityPreservingProjection([n_components, ...])

Locality preserving projections (He and Niyogi 2003): a linear map that keeps neighbors close.

MetricMDS([n_components, method, ...])

Metric multidimensional scaling.

NonMetricMDS([n_components, dissimilarity, ...])

Non-metric (ordinal) MDS (Kruskal 1964): preserves the rank order of the dissimilarities.

OnlineVisualizationNG([n_nodes, ...])

Online visualization neural gas (OVI-NG; Estévez and Figueroa 2006).

SammonMapping([n_components, dissimilarity, ...])

Sammon's nonlinear mapping (1969).

SelfOrganizingMap([grid, topology, ...])

Kohonen's self-organizing map (batch training).

TRNMap([n_nodes, n_components, mapping, ...])

Topology representing network map (Vathy-Fogarassy, Kiss and Abonyi 2008).

UMAPEmbedding([n_components, k, min_dist, ...])

Uniform manifold approximation and projection (UMAP; McInnes, Healy and Melville 2018), NumPy implementation.

Functions#

classical_mds(D[, n_components])

Classical (Torgerson) MDS of a distance matrix.

tsne(X[, n_components, perplexity, metric, ...])

t-distributed stochastic neighbor embedding (van der Maaten and Hinton 2008) via scikit-learn.