fuzzyclust.graph.isomap_embedding#

fuzzyclust.graph.isomap_embedding(D, n_components=2)[source]#

Classical multidimensional scaling of a (geodesic) distance matrix (the Isomap projection).

The doubly centered matrix of squared distances \(\mathbf{B}=-\tfrac12\mathbf{H}\mathbf{D}^{(2)}\mathbf{H}\), \(\mathbf{H}=\mathbf{I}-\tfrac1N\mathbf{1}\mathbf{1}^T\), is decomposed and the coordinates are \(\mathbf{Y}=\mathbf{Q}_q\boldsymbol\Lambda_q^{1/2}\) from its \(q\) largest eigenpairs.

Parameters:
Dndarray of shape (n_samples, n_samples)

Finite, symmetric distance matrix (e.g. geodesic_distances(X).distances).

n_componentsint, default=2
Returns:
Yndarray of shape (n_samples, n_components)
eigenvaluesndarray of shape (n_samples,)

All eigenvalues of \(\mathbf{B}\) in decreasing order; the residual variance of the embedding is the share of the discarded ones.